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++ |
public void Measure( int Index, ClassicalResult ReturnValue )
Public Sub Measure ( _ Index As Integer, _ ReturnValue As ClassicalResult _ )
public: virtual void Measure( int Index, ClassicalResult^ ReturnValue ) sealed
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. |