Skip to main content
KetQat

Appearance

Equation · intermediate

Physical footprint and runtime of a surface-code computation

First-order estimate of the physical qubit count and wall-clock time of a lattice-surgery computation from the number of patches, the code distance, the factory design and the sequence of logical time steps, including the number of factories needed to keep up with magic-state consumption.

Peer-reviewed resultMachine-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.

Qphys≈(2d2−1) npatch+Nf Qf,Nf=⌈τfkf τc⌉,t≈Nsteps  τc  tcycQ_{\mathrm{phys}} \approx (2d^{2}-1)\, n_{\mathrm{patch}} + N_{f}\, Q_{f}, \qquad N_{f} = \Big\lceil \frac{\tau_{f}}{k_f\, \tau_{\mathrm{c}}} \Big\rceil, \qquad t \approx N_{\mathrm{steps}}\; \tau_{\mathrm{c}}\; t_{\mathrm{cyc}}

This is an accounting model, not a theorem: it multiplies out the quantities that a lattice-surgery layout fixes. The data and routing region holds npatchn_{\mathrm{patch}} patches; in the block designs of Litinski, nn data qubits occupy between 1.5n+31.5n + 3 and 2n+8n+12n + \sqrt{8n} + 1 patch-sized tiles depending on the desired speed. One factory supplies kf/τfk_f/\tau_f magic states per code cycle and the computation needs up to 1/τc1/\tau_{\mathrm{c}}, so NfN_f factories are needed to avoid stalling. If fewer factories are built, the step time becomes τf/(kfNf)\tau_f/(k_f N_f) cycles instead of τc\tau_{\mathrm{c}} and the runtime grows accordingly. The product Qphys⋅tQ_{\mathrm{phys}} \cdot t is the space-time volume, the quantity that design choices trade against each other: doubling the factories halves a factory-limited runtime, at roughly constant volume when the factories dominate the footprint and at a smaller volume otherwise.

Terms that the formula leaves out and that published estimates include when they matter: the classical reaction time between dependent steps, patches used only for a part of the computation, idle storage in denser codes, and the classical control and decoding hardware, whose size scales with QphysQ_{\mathrm{phys}}.

Holds when

  • Rotated surface-code patches with one measurement ancilla per check (2d2−12d^2 - 1 qubits each), npatchn_{\mathrm{patch}} of them for data and routing.
  • A factory uses QfQ_f qubits and emits kfk_f magic states every τf\tau_f code cycles; the computation consumes at most one magic state per logical time step of τc\tau_{\mathrm{c}} code cycles (often τc≈d\tau_{\mathrm{c}} \approx d).
  • The schedule has NstepsN_{\mathrm{steps}} sequential logical steps and tcyct_{\mathrm{cyc}} is the duration of one syndrome round; classical reaction time is assumed hidden within a step.
Related
Stated 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. 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
  2. Austin G. Fowler, Matteo Mariantoni, John M. Martinis, Andrew N. Cleland (2012). Surface codes: Towards practical large-scale quantum computation. Physical Review A 86, 032324. doi:10.1103/PhysRevA.86.032324arXiv:1208.0928

Contributors

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

Review history

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

    Accounting model re-derived (factory count from supply k_f/tau_f vs demand 1/tau_c, stalled step time, 2d^2-1 qubits per rotated patch); tile counts 1.5n+3 (compact) and 2n+sqrt(8n)+1 (fast) compared with Litinski, A Game of Surface Codes (arXiv:1808.02892), Section 3 and Fig. 9.

    The record said doubling the factories halves a factory-limited runtime at roughly constant volume; that holds only when the factories dominate the qubit count (otherwise volume decreases). Sentence qualified accordingly.

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 3799ec6813af27a4. Source file knowledge/records/equation/surface-code-footprint-and-runtime.md in the content repository (readable there once it is public).