Cove - A Practical Quantum Computer Programming Framework
OperationSwap Method (FirstSwapIndex, SecondSwapIndex)
NamespacesCove.LocalSimulationQuantumRegisterOperationSwap(Int32, Int32)
Perform the swap operation on the two qubits specified.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationSwap(
	int FirstSwapIndex,
	int SecondSwapIndex
)
Public Function OperationSwap ( _
	FirstSwapIndex As Integer, _
	SecondSwapIndex As Integer _
) As IQuantumRegister
public:
virtual IQuantumRegister^ OperationSwap(
	int FirstSwapIndex, 
	int SecondSwapIndex
) sealed
Parameters
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.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if one of the indexes is out of range.
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)