JSci.physics.quantum
Class DensityMatrix

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

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 JSci.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 JSci.physics.quantum.Operator
add, dimension, equals, 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.