[<SerializableAttribute>] type CVec = class end
Thetype exposes the following members.
Creates a new vector filled with zeroes.
|CVec(Double, FSharpOptionDouble, FSharpOptionBoolean)|
Creates a new vector from initial value vectors, real and imaginary. Note that the length of the new vector must be no more than 2^20.
|CVec(UInt64, FSharpOptionDouble, FSharpOptionDouble, FSharpOptionBoolean)|
Creates a new vector. By default, the vector is all zero. Optionally, the real and impaginary initial values may be provided; in this case, the vector must be no more than 2^20 in length.
Gets the imaginary part of an element of this vector by index.
The length of this vector
Gets the real part of an element of this vector by index.
Gets an element of this vector by index.
Calculates the norm of this vector. The norm is the square root of the sum of the complex magnitudes of the vector elements.
Creates an exact copy of this vector.
Dumps this vector using the provided function.
Dump vector MCC with provided function
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
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.
Computes the Kronecker product of this vector and another.
Gets non-zero indices upto a max count
Normalizes this vector to length 1.0.
Reads a new vector from a binary file. Note that this routine is only intended to read vectors written with the Write method.
Scale all elements of the vector (unsafe)
Converts this vector to a string. At most the first 512 entries are displayed.(Overrides ObjectToString.)
Writes this vector to a binary file.
Zeroes this vector. Note that this also densely fills in the vector.