Cove - A Practical Quantum Computer Programming Framework
OperationSwap Method (Indexes)
NamespacesCove.LocalSimulationQuantumRegisterOperationSwap(array<Int32>[]()[])
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
public:
virtual IQuantumRegister^ OperationSwap(
	array<int>^ Indexes
) sealed
Parameters
Indexes (array< Int32 >[]()[])
Indexes of the qubits to swap.
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
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: 1.0.0.0 (1.0.0.0)