Qubit Methods

Liquid Quantum Simulator

Qubit Methods

The Qubit type exposes the following members.

Methods
  Name Description
Public method Dump
Dump this qubit's state.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method 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.
Public method 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.
Public method ShowMag
Creates a string representation of this Qubit. The representation shows the probabilities of measuring this Qubit in the computational |0> and |1> states.
Public method 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.
Public method StateSet(CVec)
Sets the state vector for this qubit, if it is unentangled. This method will raise an exception if the qubit is entangled.
Public method 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.
Public method 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.
Public method ToString
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