Perform the Toffoli (controlled controlled not) operation to the register.
| C# | Visual Basic | Visual C++ |
public IQuantumRegister OperationToffoli( int[] Indexes )
Public Function OperationToffoli ( _ Indexes As Integer() _ ) As IQuantumRegister
public: virtual IQuantumRegister^ OperationToffoli( array<int>^ Indexes ) sealed
- Indexes (array< Int32 >[]()[])
- The indexes of the qubits that the operation applies to. The first two indexes are the control and the third is the target.
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if any of the indexes are
out of range. |
| SizeMismatchException | Thrown if there are not three
elements in the Indexes array. |
| DuplicateIndexesException | Thrown if the indexes specified
refer to the same qubit. |
| ArgumentNullException | Thrown if Indexes is null |