Set the indexes of qubits in a register when this operation is applied.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IOperationFredkin SetIndexes( int ControlIndex, int FirstSwapIndex, int SecondSwapIndex )
Public Function SetIndexes ( _ ControlIndex As Integer, _ FirstSwapIndex As Integer, _ SecondSwapIndex As Integer _ ) As IOperationFredkin
public: virtual IOperationFredkin^ SetIndexes( int ControlIndex, int FirstSwapIndex, int SecondSwapIndex ) sealed
Parameters
- ControlIndex (Int32)
- The index of the control qubit.
- FirstSwapIndex (Int32)
- The index of the first qubit to swap.
- SecondSwapIndex (Int32)
- The index of the second qubit to swap.
Return Value
A reference to this operation after this method has been performed.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if any
of the parameters are less than 0. |
DuplicateIndexesException | Thrown if the same index is specified
for more than one parameter. |