Cove - A Practical Quantum Computer Programming Framework
OperationSwap Method (FirstSwapIndex, SecondSwapIndex)
NamespacesCove.BaseIQuantumRegisterOperationSwap(Int32, Int32)
Perform the swap operation on the two qubits specified.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister OperationSwap(
	int FirstSwapIndex,
	int SecondSwapIndex
Function OperationSwap ( _
	FirstSwapIndex As Integer, _
	SecondSwapIndex As Integer _
) As IQuantumRegister
IQuantumRegister^ OperationSwap(
	int FirstSwapIndex, 
	int SecondSwapIndex
FirstSwapIndex (Int32)
Index of the first qubit to swap.
SecondSwapIndex (Int32)
Index of the second qubit to swap.
Return Value
A reference to this register after the operation has been applied.
IndexOutOfRangeExceptionThrown if one of the indexes is out of range.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.

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