Measure a set of qubits in the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public ClassicalResult Measure( IEnumerable<int> Indexes )
Public Function Measure ( _ Indexes As IEnumerable(Of Integer) _ ) As ClassicalResult
public: virtual ClassicalResult^ Measure( IEnumerable<int>^ Indexes ) sealed
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. |