    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class JSci.physics.quantum.DensityMatrix

    java.lang.Object
       |
       +----JSci.physics.quantum.Operator
               |
               +----JSci.physics.quantum.DensityMatrix

public final class DensityMatrix
extends Operator

The DensityMatrix class provides an object for encapsulating density matrices.

##

DensityMatrix(KetVector[], double[])
  Constructs a density matrix.
DensityMatrix(Projector[], double[])
  Constructs a density matrix.

##

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

##

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.

##

isPureState

     public boolean isPureState()

  Returns true if this density matrix is a pure state.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index