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
-
-
Constructor Summary
Constructors Constructor and Description DensityMatrix(KetVector[] kets, double[] probs)Constructs a density matrix.DensityMatrix(Projector[] projs, double[] probs)Constructs a density matrix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisPureState()Returns true if this density matrix is a pure state.
-
-
-
Constructor Detail
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG