Set the indexes of qubits in a register when this operation is applied.

C# | Visual Basic | Visual C++ |
void SetIndexes( int FirstControlIndex, int SecondControlIndex, int TargetIndex )
Sub SetIndexes ( _ FirstControlIndex As Integer, _ SecondControlIndex As Integer, _ TargetIndex As Integer _ )
void SetIndexes( int FirstControlIndex, int SecondControlIndex, int TargetIndex )

- FirstControlIndex (Int32)
- The index of the first control qubit.
- SecondControlIndex (Int32)
- The index of the second control qubit.
- TargetIndex (Int32)
- The index of the target qubit. The Not operation will be applied to this qubit if the control indexes are |1>.

A reference to this operation after this method has been performed.

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. |