Class JSci.physics.quantum.QuantumMath
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.physics.quantum.QuantumMath

java.lang.Object
   |
   +----JSci.physics.quantum.QuantumMath

public final class QuantumMath
extends Object
The Quantum math library. This class cannot be subclassed or instantiated because all methods are static.

Method Index

 o anticommutator(Operator, Operator)
Returns the anticommutator {A,B}.
 o commutator(Operator, Operator)
Returns the commutator [A,B].
 o expectation(DensityMatrix, Operator)
Returns the expectation value.
 o expectation(Operator, KetVector)
Returns the expectation value.
 o multiply(BraVector, KetVector)
Returns the multiplication of a ket vector by a bra vector.
 o multiply(BraVector, Operator)
Returns the multiplication of an operator by a bra vector.
 o multiply(KetVector, BraVector)
Returns the multiplication of a bra vector by a ket vector.
 o multiply(Operator, KetVector)
Returns the multiplication of a ket vector by an operator.
 o multiply(Operator, Operator)
Returns the multiplication of two operators.
 o probability(DensityMatrix, Projector)
Returns the probability.
 o probability(Projector, KetVector)
Returns the probability.

Methods

 o multiply
  public static Complex multiply(BraVector bra,
                                 KetVector ket)
Returns the multiplication of a ket vector by a bra vector.
Parameters:
bra - a bra vector
ket - a ket vector
Throws: VectorDimensionException
If the vectors have different dimensions.
 o multiply
  public static Operator multiply(KetVector ket,
                                  BraVector bra)
Returns the multiplication of a bra vector by a ket vector.
Parameters:
ket - a ket vector
bra - a bra vector
Throws: VectorDimensionException
If the vectors have different dimensions.
 o multiply
  public static BraVector multiply(BraVector bra,
                                   Operator op)
Returns the multiplication of an operator by a bra vector. (Acts an operator on a bra vector).
Parameters:
bra - a bra vector
op - an operator
Throws: DimensionException
If the operator and vector have different dimensions.
 o multiply
  public static KetVector multiply(Operator op,
                                   KetVector ket)
Returns the multiplication of a ket vector by an operator. (Acts an operator on a ket vector).
Parameters:
op - an operator
ket - a ket vector
Throws: DimensionException
If the operator and vector have different dimensions.
 o multiply
  public static Operator multiply(Operator op1,
                                  Operator op2)
Returns the multiplication of two operators.
Parameters:
op1 - an operator
op2 - an operator
Throws: MatrixDimensionException
If the operators have different dimensions.
 o commutator
  public static Operator commutator(Operator A,
                                    Operator B)
Returns the commutator [A,B].
Parameters:
A - an operator
B - an operator
 o anticommutator
  public static Operator anticommutator(Operator A,
                                        Operator B)
Returns the anticommutator {A,B}.
Parameters:
A - an operator
B - an operator
 o expectation
  public static Complex expectation(Operator op,
                                    KetVector ket)
Returns the expectation value.
Parameters:
op - an operator
ket - a ket vector
Throws: DimensionException
If the operator and vector have different dimensions.
 o expectation
  public static Complex expectation(DensityMatrix dm,
                                    Operator op)
Returns the expectation value.
Parameters:
dm - a density matrix
op - an operator
Throws: MatrixDimensionException
If the operator and matrix have different dimensions.
 o probability
  public static Complex probability(Projector p,
                                    KetVector ket)
Returns the probability.
Parameters:
p - a projector
ket - a ket vector
Throws: DimensionException
If the projector and vector have different dimensions.
 o probability
  public static Complex probability(DensityMatrix dm,
                                    Projector p)
Returns the probability.
Parameters:
dm - a density matrix
p - a projector
Throws: MatrixDimensionException
If the projector and matrix have different dimensions.

All Packages  Class Hierarchy  This Package  Previous  Next  Index