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