Measure one qubit in the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
ClassicalResult Measure( int Index )
Function Measure ( _ Index As Integer _ ) As ClassicalResult
ClassicalResult^ Measure( int Index )
Parameters
- Index (Int32)
- Index of the qubit to measure.
Return Value
The classical information extracted from the qubit, false (0) or
true (1).
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if the index specified
is invalid. |