|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.physics.quantum.Operator
public class 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. |
java.lang.Object |
getSet()
|
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)
equals
in class java.lang.Object
a
- an operatorpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AbstractComplexSquareMatrix getRepresentation()
public boolean isSelfAdjoint()
public boolean isUnitary()
public Complex trace()
public double norm()
public int dimension()
public java.lang.Object getSet()
getSet
in interface Member
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 |