Measure a set of qubits in the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
ClassicalResult Measure( IEnumerable<int> Indexes )
Function Measure ( _ Indexes As IEnumerable(Of Integer) _ ) As ClassicalResult
ClassicalResult^ Measure( IEnumerable<int>^ Indexes )
Parameters
- Indexes (IEnumerable<(Of <(Int32>)>))
- Indexes of the qubits to measure
Return Value
An array of booleans (bits), which are the qubits collapsed to
false (0) or true (1).
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if any of the
indexes are invalid. |