Measure one qubit in the register.. A user
can subclass ClassicalResult with their own class and pass that in if
needed.
Declaration Syntax
C# | Visual Basic | Visual C++ |
void Measure( int Index, ClassicalResult ReturnValue )
Sub Measure ( _ Index As Integer, _ ReturnValue As ClassicalResult _ )
void Measure( int Index, ClassicalResult^ ReturnValue )
Parameters
- Index (Int32)
- Index of the qubit to measure.
- ReturnValue (ClassicalResult)
- The classical information extracted from the qubit, false (0) or true (1).
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if the index specified
is invalid. |