Measure a set of qubits 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( IEnumerable<int> Indexes, ClassicalResult ReturnValue )
Sub Measure ( _ Indexes As IEnumerable(Of Integer), _ ReturnValue As ClassicalResult _ )
void Measure( IEnumerable<int>^ Indexes, ClassicalResult^ ReturnValue )
Parameters
- Indexes (IEnumerable<(Of <(Int32>)>))
- Indexes of the qubits to measure
- ReturnValue (ClassicalResult)
- The object which will contain the result of the measurement.
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if any of the
indexes are invalid. |