The Language-Integrated Quantum Operations (LIQUi|>) Simulator
Bit Class |
Represents the measured value, in the computational basis, of a qubit.
Inheritance Hierarchy
Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
[<SealedAttribute>] [<SerializableAttribute>] type Bit = class interface IEquatable<Bit> interface IStructuralEquatable interface IComparable<Bit> interface IComparable interface IStructuralComparable end
The Bit type exposes the following members.
Properties
Name | Description | |
---|---|---|
v |
The integer value of a measured qubit, either 0 or 1.
Note that this property will throw an exception if the value is unknown.
|
Methods
Name | Description | |
---|---|---|
Dump |
Dumps the measured value.
| |
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.) | |
ToString |
Gets a string representation of this value.
The string will be "Zero", "One", or "?".
(Overrides ObjectToString.) |
Remarks
Possible values are:
- Unknown: The qubit has not been measured since it was initialized or since the last time it was reanimated.
- Zero: The qubit was last measured as |0> in the computational basis and has not been reanimated since.
- One: The qubit was last measured as |1> in the computational basis and has not been reanimated since.
See Also