|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.physics.quantum.Operator
The Operator class provides an object for encapsulating quantum mechanical operators.
Field Summary | |
protected AbstractComplexSquareMatrix |
representation
|
Constructor Summary | |
Operator(AbstractComplexSquareMatrix rep)
Constructs an operator given a matrix representation. |
Method Summary | |
Operator |
add(Operator op)
Returns the addition of this operator and another. |
int |
dimension()
Returns the dimension. |
boolean |
equals(java.lang.Object a)
Compares two operators for equality. |
AbstractComplexSquareMatrix |
getRepresentation()
Returns the representation. |
int |
hashCode()
Returns a hashcode for this operator. |
boolean |
isSelfAdjoint()
Returns true if this operator is self-adjoint. |
boolean |
isUnitary()
Returns true if this operator is unitary. |
KetVector |
multiply(KetVector ket)
Returns the multiplication of this operator and a ket vector. |
Operator |
multiply(Operator op)
Returns the multiplication of this operator and another. |
double |
norm()
Returns the operator norm. |
Operator |
subtract(Operator op)
Returns the subtraction of this operator and another. |
java.lang.String |
toString()
Returns a string representing this operator. |
Complex |
trace()
Returns the trace. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AbstractComplexSquareMatrix representation
Constructor Detail |
public Operator(AbstractComplexSquareMatrix rep)
rep
- a matrix representationMethod Detail |
public boolean equals(java.lang.Object a)
a
- an operatorpublic java.lang.String toString()
public int hashCode()
public AbstractComplexSquareMatrix getRepresentation()
public boolean isSelfAdjoint()
public boolean isUnitary()
public Complex trace()
public double norm()
public int dimension()
public Operator add(Operator op)
op
- an operator
MatrixDimensionException
- If the operators have different dimensions.public Operator subtract(Operator op)
op
- an operator
MatrixDimensionException
- If the operators have different dimensions.public Operator multiply(Operator op)
op
- an operator
MatrixDimensionException
- If the operators have different dimensions.public KetVector multiply(KetVector ket)
ket
- a ket vector
DimensionException
- If the operator and vector have different dimensions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |