Cove - A Practical Quantum Computer Programming Framework
SliceFrom Method (StartIndex, Operations)
NamespacesCove.LocalSimulationQuantumRegisterSliceFrom(Int32, IEnumerable<(Of <(IQuantumOperation>)>))
Returns a slice (subset) of the register from StartIndex to the end, then has the operations applied to it.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister SliceFrom(
	int StartIndex,
	IEnumerable<IQuantumOperation> Operations
)
Public Function SliceFrom ( _
	StartIndex As Integer, _
	Operations As IEnumerable(Of IQuantumOperation) _
) As IQuantumRegister
public:
virtual IQuantumRegister^ SliceFrom(
	int StartIndex, 
	IEnumerable<IQuantumOperation^>^ Operations
) sealed
Parameters
StartIndex (Int32)
Starting index in the register to get the slice of.
Operations (IEnumerable<(Of <(IQuantumOperation>)>))
The operations to apply to the slice.
Return Value
The quantum register representing the slice with the operation then applied.
Exceptions
ExceptionCondition
SizeMismatchExceptionThrown if the number of qubits any of the operations operates on does not match the size of the slice.
IndexOutOfRangeExceptionThrown if the start 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.
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)