Gate Synthesis
Toffoli Gate from Clifford+T: quick reference
Builds the three-qubit Toffoli (AND) gate exactly from Hadamard, T and CNOT gates, the way fault-tolerant hardware does.
- Topic
- Gate Synthesis
- Level
- Intermediate
- Circuit size
- 3 Qubits
- Key result
- Universal classical logic from 6 CNOTs and 7 T gates
Concepts covered: Toffoli Gate, Clifford+T Decomposition, Reversible Logic, T-count
How Toffoli Gate from Clifford+T works, step by step
- Prepare the Control Qubits. Put both controls (Q0, Q1) in superposition so all four input combinations are tested at once.
- T-Ladder on the Target. Between two Hadamards on the target, CNOTs from the controls alternate with small T rotations. They cancel unless both controls are 1.
- Phase Fix-Up on the Controls. A last CNOT pair with T gates on the two controls removes a leftover phase so the gate is exact.
- Measure the Truth Table. The target (leftmost bit) is 1 only when both controls are 1: the AND of the two inputs.
Frequently asked questions
What is Toffoli Gate from Clifford+T?
Builds the three-qubit Toffoli (AND) gate exactly from Hadamard, T and CNOT gates, the way fault-tolerant hardware does. It is a intermediate-level topic in gate synthesis.
How many qubits does the Toffoli Gate (CCNOT) circuit use?
The QuanBit tutorial uses a 3 qubits circuit. Key result: Universal classical logic from 6 CNOTs and 7 T gates.
Can I simulate Toffoli Gate (CCNOT) online for free?
Yes. The interactive Toffoli Gate (CCNOT) tutorial at https://www.quanbit.tech/learn/toffoli runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.