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