Qubit Class |
Namespace: Microsoft.Research.Liquid
[<SerializableAttribute>] type Qubit = class end
The Qubit type exposes the following members.
Name | Description | |
---|---|---|
Bit |
The measured value of a qubit in the computational basis.
This will be Unknown if the qubit has not been measured since it last interacted.
| |
Entangled |
Whether or not this qubit is entangled.
| |
Id |
Wire number in Ket vector
| |
Ket |
State we belong to
| |
One |
A Complex vector that represents the state |1> in the computational basis.
| |
Prob1 |
The probability of this qubit being 1.
| |
State |
The state vector for this qubit, if it is unentangled.
This property will raise an exception if the qubit is entangled.
| |
Type |
The type of the qubit.
This is only used for noise modeling.
| |
Zero |
A Complex vector that represents the state |0> in the computational basis.
|
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.) |