org.jscience.physics.quantum
Class QuantumMathUtils

java.lang.Object
  extended by org.jscience.physics.quantum.QuantumMathUtils

public final class QuantumMathUtils
extends java.lang.Object

The Quantum math library. This class cannot be subclassed or instantiated because all methods are static.


Method Summary
static Operator anticommutator(Operator A, Operator B)
          Returns the anticommutator {A,B}.
static Operator commutator(Operator A, Operator B)
          Returns the commutator [A,B].
static Complex expectation(DensityMatrix dm, Operator op)
          Returns the expectation value.
static Complex expectation(Operator op, KetVector ket)
          Returns the expectation value.
static Complex probability(DensityMatrix dm, Projector p)
          Returns the probability.
static Complex probability(Projector p, KetVector ket)
          Returns the probability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

commutator

public static Operator commutator(Operator A,
                                  Operator B)
Returns the commutator [A,B].

Parameters:
A - an operator
B - an operator
Returns:
DOCUMENT ME!

anticommutator

public static Operator anticommutator(Operator A,
                                      Operator B)
Returns the anticommutator {A,B}.

Parameters:
A - an operator
B - an operator
Returns:
DOCUMENT ME!

expectation

public static Complex expectation(Operator op,
                                  KetVector ket)
Returns the expectation value.

Parameters:
op - an operator
ket - a ket vector
Returns:
DOCUMENT ME!

expectation

public static Complex expectation(DensityMatrix dm,
                                  Operator op)
Returns the expectation value.

Parameters:
dm - a density matrix
op - an operator
Returns:
DOCUMENT ME!

probability

public static Complex probability(Projector p,
                                  KetVector ket)
Returns the probability.

Parameters:
p - a projector
ket - a ket vector
Returns:
DOCUMENT ME!

probability

public static Complex probability(DensityMatrix dm,
                                  Projector p)
Returns the probability.

Parameters:
dm - a density matrix
p - a projector
Returns:
DOCUMENT ME!