Returns a slice (subset) of the quantum register containing the qubits
specified in Indexes, and in that order.
| C# | Visual Basic | Visual C++ |
IQuantumRegister SliceSubset( IEnumerable<int> Indexes )
Function SliceSubset ( _ Indexes As IEnumerable(Of Integer) _ ) As IQuantumRegister
IQuantumRegister^ SliceSubset( IEnumerable<int>^ Indexes )
- Indexes (IEnumerable<(Of <(Int32>)>))
- The indexes of the qubits in the register being returned.
The quantum register representing the subset.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if any of the indexes specified are
outside of the allowable range. |
| DuplicateIndexesException | Thrown if the same index is specified more than
once. |