Documentation of 'jsci.physics.quantum.KetVector' Java class
KetVector
jsci.physics.quantum

Class KetVector

    • Constructor Detail

      • KetVector

        public KetVector(AbstractComplexVector rep)
        Constructs a ket vector given a vector representation.
        Parameters:
        rep - a vector representation
    • Method Detail

      • equals

        public boolean equals(java.lang.Object a)
        Compares two ket vectors for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        a - a ket vector
      • toString

        public java.lang.String toString()
        Returns a comma delimited string representing the value of this ket vector.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hashcode for this ket vector.
        Overrides:
        hashCode in class java.lang.Object
      • toBraVector

        public BraVector toBraVector()
        Map this ket vector to a bra vector.
      • norm

        public double norm()
        Returns the norm.
        Specified by:
        norm in class MathVector
      • getSet

        public java.lang.Object getSet()
      • scalarMultiply

        public Module.Member scalarMultiply(Ring.Member x)
        Returns the multiplication of this ket vector by a scalar.
        Parameters:
        x - a ring member
      • 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.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.