Click or drag to resize
Qubit Methods

The Qubit type exposes the following members.

Methods
  NameDescription
Public methodDump
Dump this qubit's state.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodReAnimate(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.
Public methodReAnimate(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.
Public methodShowMag
Creates a string representation of this Qubit. The representation shows the probabilities of measuring this Qubit in the computational |0> and |1> states.
Public methodStateSet(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.
Public methodStateSet(CVec)
Sets the state vector for this qubit, if it is unentangled. This method will raise an exception if the qubit is entangled.
Public methodStateSet(Complex, Complex)
Sets the state vector for this qubit, if it is unentangled. This method will raise an exception if the qubit is entangled.
Public methodStateSet(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.
Public methodToString
Creates a string representation of this Qubit. The representation shows the current state of the qubit if it is unentangled.
(Overrides ObjectToString.)
Top
See Also