|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.quantum.Operator
public class Operator
The Operator class provides an object for encapsulating quantum mechanical operators.
| Field Summary | |
|---|---|
protected AbstractComplexSquareMatrix |
representation
DOCUMENT ME! |
| 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. |
boolean |
equals(java.lang.Object a)
Compares two operators for equality. |
int |
getDimension()
Returns the dimension. |
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 representation| Method Detail |
|---|
public boolean equals(java.lang.Object a)
equals in class java.lang.Objecta - an operator
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic AbstractComplexSquareMatrix getRepresentation()
public boolean isSelfAdjoint()
public boolean isUnitary()
public Complex trace()
public double norm()
public int getDimension()
public Operator add(Operator op)
op - an operator
public Operator subtract(Operator op)
op - an operator
public Operator multiply(Operator op)
op - an operator
public KetVector multiply(KetVector ket)
ket - a ket vector
IllegalDimensionException - If the operator and vector have
different dimensions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||