org.jscience.physics.quantum
Class DensityMatrix

java.lang.Object
  extended by org.jscience.physics.quantum.Operator
      extended by org.jscience.physics.quantum.DensityMatrix
All Implemented Interfaces:
java.io.Serializable, Member

public final class DensityMatrix
extends Operator

The DensityMatrix class provides an object for encapsulating density matrices.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.physics.quantum.Operator
representation
 
Constructor Summary
DensityMatrix(KetVector[] kets, double[] probs)
          Constructs a density matrix.
DensityMatrix(Projector[] projs, double[] probs)
          Constructs a density matrix.
 
Method Summary
 boolean isPureState()
          Returns true if this density matrix is a pure state.
 
Methods inherited from class org.jscience.physics.quantum.Operator
add, equals, getDimension, getRepresentation, hashCode, isSelfAdjoint, isUnitary, multiply, multiply, norm, subtract, toString, trace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DensityMatrix

public DensityMatrix(KetVector[] kets,
                     double[] probs)
Constructs a density matrix.

Parameters:
kets - an array of ket vectors
probs - the probabilities of being in the ket vector states.

DensityMatrix

public DensityMatrix(Projector[] projs,
                     double[] probs)
Constructs a density matrix.

Parameters:
projs - an array of projectors
probs - the probabilities of being in the projector states.
Method Detail

isPureState

public boolean isPureState()
Returns true if this density matrix is a pure state.

Returns:
DOCUMENT ME!