Click or drag to resize
Qubit Class
Represents a quantum bit. New Qubits are created using the Ket Add methods.
Inheritance Hierarchy
SystemObject
  Microsoft.Research.LiquidQubit

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
[<SerializableAttribute>]
type Qubit =  class end

The Qubit type exposes the following members.

Properties
  NameDescription
Public propertyBit
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.
Public propertyEntangled
Whether or not this qubit is entangled.
Public propertyId
Wire number in Ket vector
Public propertyKet
State we belong to
Public propertyStatic memberOne
A Complex vector that represents the state |1> in the computational basis.
Public propertyProb1
The probability of this qubit being 1.
Public propertyState
The state vector for this qubit, if it is unentangled. This property will raise an exception if the qubit is entangled.
Public propertyType
The type of the qubit. This is only used for noise modeling.
Public propertyStatic memberZero
A Complex vector that represents the state |0> in the computational basis.
Top
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