JSci.physics.quantum
Class DensityMatrix
java.lang.Object
JSci.physics.quantum.Operator
JSci.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
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, getSet, hashCode, isSelfAdjoint, isUnitary, multiply, multiply, norm, subtract, toString, trace |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DensityMatrix
public DensityMatrix(KetVector[] kets,
double[] probs)
- Constructs a density matrix.
- Parameters:
kets
- an array of ket vectorsprobs
- 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 projectorsprobs
- the probabilities of being in the projector states.
isPureState
public boolean isPureState()
- Returns true if this density matrix is a pure state.