|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsci.physics.quantum.Operator
public class Operator
The Operator class provides an object for encapsulating quantum mechanical operators.
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(Object a)
Compares two operators for equality. |
AbstractComplexSquareMatrix |
getRepresentation()
Returns the representation. |
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. |
String |
toString()
Returns a string representing this operator. |
Complex |
trace()
Returns the trace. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Operator(AbstractComplexSquareMatrix rep)
rep
- a matrix representationMethod Detail |
---|
public boolean equals(Object a)
equals
in class Object
a
- an operatorpublic String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public AbstractComplexSquareMatrix getRepresentation()
public boolean isSelfAdjoint()
public boolean isUnitary()
public Complex trace()
public double norm()
public int dimension()
public 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 | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |