Skip to main content
KetQat

Appearance

Definition · intermediate

T count, T depth and Toffoli count

The cost measures of a fault-tolerant circuit. T count and Toffoli count are the numbers of non-Clifford gates, each needing a magic state; T depth is the number of layers of them that must run one after another, which bounds the runtime when Clifford operations are cheap.

Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Let a circuit be written over Clifford gates, TT gates and Toffoli (or CCZ) gates, with Pauli measurements and classical feed-forward allowed.

  • The T count NTN_T is the number of TT and T†T\dagg gates; the Toffoli count NTofN_{\mathrm{Tof}} is the number of Toffoli or CCZ gates. Each non-Clifford gate consumes one magic state (T state or CCZ state) in a fault-tolerant implementation.
  • The T depth DTD_T is the smallest number of layers into which the non-Clifford gates can be partitioned so that the gates within a layer can be applied simultaneously, given the circuit's dependencies, with Clifford gates allowed anywhere in between.

The counts are linked by gate identities: a Toffoli gate costs seven TT gates in the standard ancilla-free circuit and four with an ancilla and a measurement (Jones); a temporary logical AND computes the AND of two qubits into a fresh ancilla with four TT gates and uncomputes it with none, using a measurement (Gidney). Arbitrary single-qubit ZZ rotations are approximated to precision ε\varepsilon by Clifford+T sequences with T count about 3log⁡2(1/ε)3 \log_2(1/\varepsilon) (Ross and Selinger).

In architectures where Clifford operations are absorbed into Pauli measurements (Litinski), the T count sets the number of magic states and the T depth, multiplied by the time per non-Clifford layer, bounds the runtime from below. When each layer must wait for decoded measurement results before the next can start, the relevant depth is the number of such dependent steps (the reaction depth or measurement depth), and the time per step includes the reaction time of the classical control system, as in the estimate of Gidney and Ekerå.

Mentions
Mentioned in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Neil J. Ross, Peter Selinger (2016). Optimal ancilla-free Clifford+T approximation of z-rotations. Quantum Information and Computation 16(11-12), 901-953. arXiv:1403.2975
  2. Cody Jones (2013). Novel constructions for the fault-tolerant Toffoli gate. Physical Review A 87, 022328. doi:10.1103/PhysRevA.87.022328arXiv:1212.5069
  3. Craig Gidney (2018). Halving the cost of quantum addition. Quantum 2, 74. doi:10.22331/q-2018-06-18-74arXiv:1709.06648
  4. Craig Gidney, Martin Ekerå (2021). How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits. Quantum 5, 433 (arXiv preprint 2019). doi:10.22331/q-2021-04-15-433arXiv:1905.09749
  5. Daniel Litinski (2019). A Game of Surface Codes: Large-Scale Quantum Computing with Lattice Surgery. Quantum 3, 128. doi:10.22331/q-2019-03-05-128arXiv:1808.02892

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Definitions checked for consistency; Toffoli 7 T conventional vs 4 T compared with Jones abstract (arXiv:1212.5069); temporary logical-AND 4 T to compute and 0 to erase compared with Gidney abstract (arXiv:1709.06648); 3 log2(1/eps) compared with Ross-Selinger abstract (arXiv:1403.2975); Clifford absorption compared with Litinski arXiv:1808.02892; 10 microsecond reaction time in the Gidney-Ekera estimate compared with arXiv:1905.09749 abstract and Section 2.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 989da1efa58a975d. Source file knowledge/records/definition/t-count-and-t-depth.md in the content repository (readable there once it is public).