Back to course

The Toffoli Gate (CCNOT)

Quantum Computing Basics for Developers

The 3-Qubit Gate

The Toffoli gate is a 'Controlled-Controlled-NOT'. It flips the third qubit only if the first two are both $|1⟩$. It is a universal gate for classical logic.