Cove - A Practical Quantum Computer Programming Framework
OperationSwap Method (Indexes)
Perform the swap operation on the qubits specified.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationSwap(
	int[] Indexes
Public Function OperationSwap ( _
	Indexes As Integer() _
) As IQuantumRegister
virtual IQuantumRegister^ OperationSwap(
	array<int>^ Indexes
) sealed
Indexes (array< Int32 >[]()[])
Indexes of the qubits to swap.
Return Value
A reference to this register after the operation has been applied.
ArgumentNullExceptionThrown if the parameter is null.
IndexOutOfRangeExceptionThrown if the indexes are out of range.
SizeMismatchExceptionThrown if 2 indexes are not specified in the array.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.

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