QCET

Circuits
Gates
Hardware
Documentation

Toffoli Gate

\begin{bmatrix}1&0&0&0&0&0&0&0\\0&1&0&0&0&0&0&0\\0&0&1&0&0&0&0&0\\0&0&0&1&0&0&0&0\\0&0&0&0&1&0&0&0\\0&0&0&0&0&1&0&0\\0&0&0&0&0&0&0&1\\0&0&0&0&0&0&1&0\end{bmatrix}
control
0
1
target
2

The Toffoli gate is a three-qubit quantum gate that flips a target qubit if both control qubits are in state , otherwise it leaves it unaltered.

Resources

See the Qiskit documentation for the cnot gate: https://quantum.cloud.ibm.com/docs/en/api/qiskit/qiskit.circuit.library.CCXGate