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.
Quantum Computing Basics for Developers
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.