Qubit Methods |
The Qubit type exposes the following members.
Name | Description | |
---|---|---|
Dump |
Dump this qubit's state.
| |
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.) | |
ReAnimate(Bit) |
Reanimates this qubit and sets its state vector to |0> or |1>.
Reanimation means that this qubit is treated as unmeasured and eligible
for quantum operations.
This method will raise an exception if the qubit is unmeasured or entangled.
| |
ReAnimate(CVec) |
Reanimates this qubit and sets its state vector.
Reanimation means that this qubit is treated as unmeasured and eligible
for quantum operations.
This method will raise an exception if the qubit is unmeasured or entangled.
| |
ShowMag |
Creates a string representation of this Qubit.
The representation shows the probabilities of measuring this Qubit
in the computational |0> and |1> states.
| |
StateSet(Bit) |
Sets the state vector for this qubit to |0> or |1>, if it is unentangled.
This method will raise an exception if the qubit is entangled.
| |
StateSet(CVec) |
Sets the state vector for this qubit, if it is unentangled.
This method will raise an exception if the qubit is entangled.
| |
StateSet(Complex, Complex) |
Sets the state vector for this qubit, if it is unentangled.
This method will raise an exception if the qubit is entangled.
| |
StateSet(Double, Double, Double, Double) |
Sets the state vector for this qubit, if it is unentangled.
This method will raise an exception if the qubit is entangled.
| |
ToString |
Creates a string representation of this Qubit.
The representation shows the current state of the qubit if it is unentangled.
(Overrides ObjectToString.) |