public final class DensityMatrix extends Operator
representation| Constructor and Description |
|---|
DensityMatrix(KetVector[] kets,
double[] probs)
Constructs a density matrix.
|
DensityMatrix(Projector[] projs,
double[] probs)
Constructs a density matrix.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPureState()
Returns true if this density matrix is a pure state.
|
public DensityMatrix(KetVector[] kets, double[] probs)
kets - an array of ket vectorsprobs - the probabilities of being in the ket vector states.public DensityMatrix(Projector[] projs, double[] probs)
projs - an array of projectorsprobs - the probabilities of being in the projector states.