The result of a measurement from quantum computation.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class ClassicalResult : ICoveObject
Public Class ClassicalResult _ Implements ICoveObject
public ref class ClassicalResult : ICoveObject
Members
All Members | Constructors | Methods | Fields | ||
Icon | Member | Description |
---|---|---|
ClassicalResult()()() |
Default constructor, 0 length result
| |
ClassicalResult(Int32, Int64) |
Constructor to create a classical result based on the number of qubits
in the register and the value of the result. (Which should be treated like
an unsigned long, but long is used since it is CLS compliant.)
| |
ClassicalResult(Int64) |
Constructor to create a classical result based on the number of qubits
in the register and the value of the result. (Which should be treated like
an unsigned long, but long is used since it is CLS compliant.) It will
create the result with the necessary number of qubits to hold the value
and no more.
| |
ClassicalResult(array<Boolean>[]()[]) |
Construct a classical result based on an array of booleans.
| |
baResult |
Since a measurement is just a classical result, a series of 0's and 1's, store it that way.
| |
BoolArrayToString()()() |
Convert the bool array that represents this result to a string
| |
BoolArrayToString(array<Boolean>[]()[]) |
Convert a boolean array to a string of 0's and 1's.
| |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetIndexAsBool(Int32) |
Return the boolean value for the specified index.
| |
GetNumberOfBits()()() |
Get the number of bits returned from the measurement.
| |
GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetLabelOne(String) |
Change the label of 1
| |
SetLabels(String, String) |
Set both the label for |0> and label for |1> in one call
| |
SetLabelZero(String) |
Change the label of 0
| |
ToBool()()() |
Return true if there are any ones in the result, else false.
| |
ToBool(BoolConversionOptions) |
Convert the result to a boolean based on the option specified.
| |
ToBoolArray()()() |
Return an array of booleans that represent the classical bits of
information in this result.
| |
ToSignedInt32()()() |
Assume this number is a 32 bit signed integer (using 2's
compliment and return the signed integer that it represents
| |
ToString()()() |
Return the string representation of this result.
(Overrides Object.ToString()()().) | |
ToUnsignedInt32()()() |
Convert this result to an unsigned 32 bit integer. If this result
contains less than 32 bits, then the extra bits will be set to 0.
| |
ToUnsignedInt32(Boolean) |
Convert this result to an unsigned 32 bit integer. If the result
contains less than 32 bits, then the extra bits will be set to
SetExtraBitsTo.
|
Inheritance Hierarchy
Object | |
ClassicalResult |