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

Class Operator

    • Constructor Detail

      • Operator

        public Operator(AbstractComplexSquareMatrix rep)
        Constructs an operator given a matrix representation.
        Parameters:
        rep - a matrix representation
    • Method Detail

      • equals

        public boolean equals(java.lang.Object a)
        Compares two operators for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        a - an operator
      • toString

        public java.lang.String toString()
        Returns a string representing this operator.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hashcode for this operator.
        Overrides:
        hashCode in class java.lang.Object
      • isSelfAdjoint

        public boolean isSelfAdjoint()
        Returns true if this operator is self-adjoint.
      • isUnitary

        public boolean isUnitary()
        Returns true if this operator is unitary.
      • trace

        public Complex trace()
        Returns the trace.
      • norm

        public double norm()
        Returns the operator norm.
      • dimension

        public int dimension()
        Returns the dimension.
      • getSet

        public java.lang.Object getSet()
        Specified by:
        getSet in interface Member
      • add

        public Operator add(Operator op)
        Returns the addition of this operator and another.
        Parameters:
        op - an operator
        Throws:
        MatrixDimensionException - If the operators have different dimensions.
      • subtract

        public Operator subtract(Operator op)
        Returns the subtraction of this operator and another.
        Parameters:
        op - an operator
        Throws:
        MatrixDimensionException - If the operators have different dimensions.
      • multiply

        public Operator multiply(Operator op)
        Returns the multiplication of this operator and another.
        Parameters:
        op - an operator
        Throws:
        MatrixDimensionException - If the operators have different dimensions.
      • multiply

        public KetVector multiply(KetVector ket)
        Returns the multiplication of this operator and a ket vector.
        Parameters:
        ket - a ket vector
        Throws:
        DimensionException - If the operator and vector have different dimensions.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.