All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.physics.quantum.KetVector

java.lang.Object
   |
   +----JSci.maths.MathVector
           |
           +----JSci.physics.quantum.KetVector

public final class KetVector
extends MathVector
The KetVector class provides an object for encapsulating Dirac ket vectors.


Constructor Index

 o KetVector(ComplexVector)
Constructs a ket vector given a vector representation.

Method Index

 o add(AbelianGroupMember)
Returns the addition of this vector and another.
 o add(KetVector)
Returns the addition of this vector and another.
 o dimension()
Returns the dimension.
 o equals(Object)
Compares two ket vectors for equality.
 o getRepresentation()
Returns the representation.
 o hashCode()
Returns a hashcode for this ket vector.
 o multiply(BraVector)
Returns the multiplication of this ket vector and a bra vector.
 o negate()
Returns the negative of this vector.
 o norm()
Returns the norm.
 o scalarMultiply(RingMember)
Returns the multiplication of this ket vector by a scalar.
 o subtract(AbelianGroupMember)
Returns the subtraction of this vector by another.
 o subtract(KetVector)
Returns the subtraction of this vector by another.
 o toBraVector()
Map this ket vector to a bra vector.
 o toString()
Returns a comma delimited string representing the value of this ket vector.

Constructors

 o KetVector
 public KetVector(ComplexVector rep)
Constructs a ket vector given a vector representation.

Parameters:
rep - a vector representation

Methods

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

Parameters:
a - a ket vector
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a comma delimited string representing the value of this ket vector.

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

Overrides:
hashCode in class Object
 o toBraVector
 public BraVector toBraVector()
Map this ket vector to a bra vector.

 o getRepresentation
 public ComplexVector getRepresentation()
Returns the representation.

 o dimension
 public int dimension()
Returns the dimension.

Overrides:
dimension in class MathVector
 o norm
 public double norm()
Returns the norm.

Overrides:
norm in class MathVector
 o negate
 public AbelianGroupMember negate()
Returns the negative of this vector.

Overrides:
negate in class MathVector
 o add
 public AbelianGroupMember add(AbelianGroupMember v)
Returns the addition of this vector and another.

Overrides:
add in class MathVector
 o add
 public KetVector add(KetVector v)
Returns the addition of this vector and another.

Parameters:
v - a ket vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o subtract
 public AbelianGroupMember subtract(AbelianGroupMember v)
Returns the subtraction of this vector by another.

Overrides:
subtract in class MathVector
 o subtract
 public KetVector subtract(KetVector v)
Returns the subtraction of this vector by another.

Parameters:
v - a ket vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o scalarMultiply
 public ModuleMember scalarMultiply(RingMember x)
Returns the multiplication of this ket vector by a scalar.

Overrides:
scalarMultiply in class MathVector
 o multiply
 public Operator multiply(BraVector bra)
Returns the multiplication of this ket vector and a bra vector.

Parameters:
bra - a bra vector
Throws: VectorDimensionException
If the vectors have different dimensions.

All Packages  Class Hierarchy  This Package  Previous  Next  Index