Cove - A Practical Quantum Computer Programming Framework
SliceSubset Method (Indexes, Operation)
NamespacesCove.LocalSimulationQuantumRegisterSliceSubset(IEnumerable<(Of <(Int32>)>), IQuantumOperation)
Returns a slice (subset) of the quantum register containing the qubits specified in Indexes, and in that order. The operation is then applied to the slice.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister SliceSubset(
	IEnumerable<int> Indexes,
	IQuantumOperation Operation
Public Function SliceSubset ( _
	Indexes As IEnumerable(Of Integer), _
	Operation As IQuantumOperation _
) As IQuantumRegister
virtual IQuantumRegister^ SliceSubset(
	IEnumerable<int>^ Indexes, 
	IQuantumOperation^ Operation
) sealed
Indexes (IEnumerable<(Of <(Int32>)>))
The indexes of the qubits in the register being returned.
Operation (IQuantumOperation)
The operation to apply to the slice.
Return Value
The quantum register representing the subset.
IndexOutOfRangeExceptionThrown if any of the indexes specified are outside of the allowable range.
DuplicateIndexesExceptionThrown if the same index is specified more than once.
NotUnitaryOperationExceptionThrown if a non-unitary operation is passed. All quantum operations must be unitary.
SizeMismatchExceptionThrown if the size of one of the operations does not match the size of the register.
ArgumentExceptionThrown if the operation does not have AbstractSimulatedQuantumOperation as a base class.

Assembly: Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: (