Apply the Toffoli (controlled controlled not) operation to the register.
| C# | Visual Basic | Visual C++ |
public IQuantumRegister OperationToffoli( int FirstControlIndex, int SecondControlIndex, int TargetIndex )
Public Function OperationToffoli ( _ FirstControlIndex As Integer, _ SecondControlIndex As Integer, _ TargetIndex As Integer _ ) As IQuantumRegister
public: virtual IQuantumRegister^ OperationToffoli( int FirstControlIndex, int SecondControlIndex, int TargetIndex ) sealed
- FirstControlIndex (Int32)
- Index of the first control qubit.
- SecondControlIndex (Int32)
- Index of the second control qubit.
- TargetIndex (Int32)
- Index of the target qubit.
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if any of the indexes
are out of range. |
| DuplicateIndexesException | Thrown if the indexes specified
refer to the same qubit. |