Click or drag to resize
Bit Class
Represents the measured value, in the computational basis, of a qubit.
Inheritance Hierarchy
SystemObject
  Microsoft.Research.LiquidBit

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
  NameDescription
Public propertyv
The integer value of a measured qubit, either 0 or 1. Note that this property will throw an exception if the value is unknown.
Top
Methods
  NameDescription
Public methodDump
Dumps the measured value.
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 methodToString
Gets a string representation of this value. The string will be "Zero", "One", or "?".
(Overrides ObjectToString.)
Top
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