Cove - A Practical Quantum Computer Programming Framework
SetSwapIndexes Method (FirstSwapIndex, SecondSwapIndex)
NamespacesCove.LocalSimulationOperationSwapSetSwapIndexes(Int32, Int32)
Set both target indexes to swap.
Declaration Syntax
C#Visual BasicVisual C++
public void SetSwapIndexes(
	int FirstSwapIndex,
	int SecondSwapIndex
)
Public Sub SetSwapIndexes ( _
	FirstSwapIndex As Integer, _
	SecondSwapIndex As Integer _
)
public:
virtual void SetSwapIndexes(
	int FirstSwapIndex, 
	int SecondSwapIndex
) sealed
Parameters
FirstSwapIndex (Int32)
The index of the first qubit to swap.
SecondSwapIndex (Int32)
The index of the second qubit to swap.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if either parameter is less than 0.
DuplicateIndexesExceptionThrown if the two index parameters are the same. The indexes must be unique.

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