Cove - A Practical Quantum Computer Programming Framework
SliceTo Method (EndIndex, Operations)
NamespacesCove.LocalSimulationQuantumRegisterSliceTo(Int32, List<(Of <(IQuantumOperation>)>))
Returns a slice (subset) of the register from the beginning to EndIndex, then has the operations applied to it.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister SliceTo(
	int EndIndex,
	List<IQuantumOperation> Operations
)
Public Function SliceTo ( _
	EndIndex As Integer, _
	Operations As List(Of IQuantumOperation) _
) As IQuantumRegister
public:
virtual IQuantumRegister^ SliceTo(
	int EndIndex, 
	List<IQuantumOperation^>^ Operations
) sealed
Parameters
EndIndex (Int32)
The ending index of the slice.
Operations (List<(Of <(IQuantumOperation>)>))
The operations to apply to the slice.
Return Value
The quantum register representing the slice.
Exceptions
ExceptionCondition
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: 1.0.0.0 (1.0.0.0)