Overloaded constructor to also set the swap indexes
at the time of construction

Declaration Syntax
public OperationSwap(
int FirstSwapIndex,
int SecondSwapIndex
)
Public Sub New ( _
FirstSwapIndex As Integer, _
SecondSwapIndex As Integer _
)
public:
OperationSwap(
int FirstSwapIndex,
int SecondSwapIndex
)

Parameters
- FirstSwapIndex (Int32)
- The index of the first qubit to swap.
- SecondSwapIndex (Int32)
- The index of the second qubit to swap.

Exceptions
Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown if either parameter
is less than 0.
|
DuplicateIndexesException | Thrown 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)