Cove - A Practical Quantum Computer Programming Framework
SliceReverse Method (StartIndex, StopIndex, Operations)
NamespacesCove.LocalSimulationQuantumRegisterSliceReverse(Int32, Int32, IEnumerable<(Of <(IQuantumOperation>)>))
Returns a slice (subset) of the quantum register, but the ordering of the qubits in the returned register are reversed then have the specified operations applied.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister SliceReverse(
	int StartIndex,
	int StopIndex,
	IEnumerable<IQuantumOperation> Operations
Public Function SliceReverse ( _
	StartIndex As Integer, _
	StopIndex As Integer, _
	Operations As IEnumerable(Of IQuantumOperation) _
) As IQuantumRegister
virtual IQuantumRegister^ SliceReverse(
	int StartIndex, 
	int StopIndex, 
	IEnumerable<IQuantumOperation^>^ Operations
) sealed
StartIndex (Int32)
Starting index in the register to get the slice of.
StopIndex (Int32)
Ending 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 operations applied.
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: (