All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.physics.quantum.Operator

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

public class Operator
extends Object
implements Member, Serializable
The Operator class provides an object for encapsulating quantum mechanical operators.


Variable Index

 o representation

Constructor Index

 o Operator(ComplexSquareMatrix)
Constructs an operator given a matrix representation.

Method Index

 o add(Operator)
Returns the addition of this operator and another.
 o dimension()
Returns the dimension.
 o equals(Object)
Compares two operators for equality.
 o getRepresentation()
Returns the representation.
 o hashCode()
Returns a hashcode for this operator.
 o isSelfAdjoint()
Returns true if this operator is self-adjoint.
 o isUnitary()
Returns true if this operator is unitary.
 o multiply(KetVector)
Returns the multiplication of this operator and a ket vector.
 o multiply(Operator)
Returns the multiplication of this operator and another.
 o subtract(Operator)
Returns the subtraction of this operator and another.
 o toString()
Returns a string representing this operator.
 o trace()
Returns the trace.

Variables

 o representation
 protected ComplexSquareMatrix representation

Constructors

 o Operator
 public Operator(ComplexSquareMatrix rep)
Constructs an operator given a matrix representation.

Parameters:
rep - a matrix representation

Methods

 o equals
 public boolean equals(Object a)
Compares two operators for equality.

Parameters:
a - an operator
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a string representing this operator.

Overrides:
toString in class Object
 o hashCode
 public int hashCode()
Returns a hashcode for this operator.

Overrides:
hashCode in class Object
 o getRepresentation
 public ComplexSquareMatrix getRepresentation()
Returns the representation.

 o isSelfAdjoint
 public boolean isSelfAdjoint()
Returns true if this operator is self-adjoint.

 o isUnitary
 public boolean isUnitary()
Returns true if this operator is unitary.

 o trace
 public Complex trace()
Returns the trace.

 o dimension
 public int dimension()
Returns the dimension.

 o add
 public Operator add(Operator op)
Returns the addition of this operator and another.

Parameters:
op - an operator
Throws: MatrixDimensionException
If the operators have different dimensions.
 o subtract
 public Operator subtract(Operator op)
Returns the subtraction of this operator and another.

Parameters:
op - an operator
Throws: MatrixDimensionException
If the operators have different dimensions.
 o multiply
 public Operator multiply(Operator op)
Returns the multiplication of this operator and another.

Parameters:
op - an operator
Throws: MatrixDimensionException
If the operators have different dimensions.
 o multiply
 public KetVector multiply(KetVector ket)
Returns the multiplication of this operator and a ket vector.

Parameters:
ket - a ket vector
Throws: DimensionException
If the operator and vector have different dimensions.

All Packages  Class Hierarchy  This Package  Previous  Next  Index