Apply the Toffoli (controlled controlled not) operation to the register.
The lowest two indexes are the control and the highest is the target.
| C# | Visual Basic | Visual C++ |
IQuantumRegister OperationToffoli()
Function OperationToffoli As IQuantumRegister
IQuantumRegister^ OperationToffoli()
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| SizeMismatchException | Thrown if the register does not
contain 3 qubits. |
| DuplicateIndexesException | Thrown if the indexes specified
refer to the same qubit. |