SliceTo Method (EndIndex, Operation)
Cove - A Practical Quantum Computer Programming Framework
SliceTo Method (EndIndex, Operation)
NamespacesCove.BaseIQuantumRegisterSliceTo(Int32, IQuantumOperation)
Returns a slice (subset) of the register from the beginning to EndIndex, then has the operation applied to it.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister SliceTo(
	int EndIndex,
	IQuantumOperation Operation
Function SliceTo ( _
	EndIndex As Integer, _
	Operation As IQuantumOperation _
) As IQuantumRegister
IQuantumRegister^ SliceTo(
	int EndIndex, 
	IQuantumOperation^ Operation
EndIndex (Int32)
The ending index of the slice.
Operation (IQuantumOperation)
The operation to apply to the slice.
Return Value
The quantum register representing the slice.
IndexOutOfRangeExceptionThrown if the end index is out of range.
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.

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