OperationSwap Method (Indexes)
Cove - A Practical Quantum Computer Programming Framework
OperationSwap Method (Indexes)
NamespacesCove.BaseIQuantumRegisterOperationSwap(array<Int32>[]()[])
Perform the swap operation on the qubits specified.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister OperationSwap(
	int[] Indexes
)
Function OperationSwap ( _
	Indexes As Integer() _
) As IQuantumRegister
IQuantumRegister^ OperationSwap(
	array<int>^ Indexes
)
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.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)