CVec Methods

Liquid Quantum Simulator

CVec Methods

The CVec type exposes the following members.

Methods
  Name Description
Public method AddMCC
Calculates the norm of this vector. The norm is the square root of the sum of the complex magnitudes of the vector elements.
Public method Copy
Creates an exact copy of this vector.
Public method Dump
Dumps this vector using the provided function.
Public method DumpMCC
Dump vector MCC with provided function
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GlobalPhase
Estimates the global phase of a vector that represents a quantum state. The estimate is computed as the complex phase of the vector element with the greatest amplitude.
Public method Kron
Computes the Kronecker product of this vector and another.
Public method NonZeros
Gets non-zero indices upto a max count
Public method Normalize
Normalizes this vector to length 1.0.
Public method Static member Read
Reads a new vector from a binary file. Note that this routine is only intended to read vectors written with the Write method.
Public method Scale
Scale all elements of the vector (unsafe)
Public method ToString
Converts this vector to a string. At most the first 512 entries are displayed.
(Overrides ObjectToString.)
Public method Write
Writes this vector to a binary file.
Public method Zero
Zeroes this vector. Note that this also densely fills in the vector.
Top
See Also