SliceSubset Method (Indexes)
Cove - A Practical Quantum Computer Programming Framework
SliceSubset Method (Indexes)
NamespacesCove.BaseIQuantumRegisterSliceSubset(IEnumerable<(Of <(Int32>)>))
Returns a slice (subset) of the quantum register containing the qubits specified in Indexes, and in that order.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister SliceSubset(
	IEnumerable<int> Indexes
)
Function SliceSubset ( _
	Indexes As IEnumerable(Of Integer) _
) As IQuantumRegister
IQuantumRegister^ SliceSubset(
	IEnumerable<int>^ Indexes
)
Parameters
Indexes (IEnumerable<(Of <(Int32>)>))
The indexes of the qubits in the register being returned.
Return Value
The quantum register representing the subset.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if any of the indexes specified are outside of the allowable range.
DuplicateIndexesExceptionThrown if the same index is specified more than once.

Assembly: Cove.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)