The Language-Integrated Quantum Operations (LIQUi|>) Simulator
CVec Methods |
The CVec type exposes the following members.

Name | Description | |
---|---|---|
![]() |
AddMCC |
Calculates the norm of this vector.
The norm is the square root of the sum of the complex magnitudes of the vector elements.
|
![]() |
Copy |
Creates an exact copy of this vector.
|
![]() |
Dump |
Dumps this vector using the provided function.
|
![]() |
DumpMCC |
Dump vector MCC with provided function
|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
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.
|
![]() |
Kron |
Computes the Kronecker product of this vector and another.
|
![]() |
NonZeros |
Gets non-zero indices upto a max count
|
![]() |
Normalize |
Normalizes this vector to length 1.0.
|
![]() ![]() |
Read |
Reads a new vector from a binary file.
Note that this routine is only intended to read vectors written with the
Write method.
|
![]() |
Scale |
Scale all elements of the vector (unsafe)
|
![]() |
ToString |
Converts this vector to a string.
At most the first 512 entries are displayed.
(Overrides ObjectToString.) |
![]() |
Write |
Writes this vector to a binary file.
|
![]() |
Zero |
Zeroes this vector.
Note that this also densely fills in the vector.
|
