Skip to main content
KetQat

Appearance

Definition · introductory

Quantum circuit, size, depth and width

A finite sequence of gates from a fixed gate set acting on a register of qubits, followed by measurement; its size counts gates, its depth counts layers of gates on disjoint qubits, and its width counts qubits. Uniform circuit families model algorithms.

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.

Fix a finite or infinite set G\mathcal{G} of unitaries, each acting on a fixed number of qubits (in practice one or two): the gate set. A quantum circuit over G\mathcal{G} on nn qubits is a finite sequence (g1,S1),…,(gL,SL)(g_1, S_1), \dots, (g_L, S_L) where each gj∈Gg_j \in \mathcal{G} is a kjk_j-qubit gate and SjS_j is an ordered list of kjk_j distinct qubits from {0,…,n−1}\{0, \dots, n-1\} on which it acts. The circuit implements the unitary

U=ULUL−1⋯U1,Uj=gj acting on Sj and I on the other qubits.U = U_L U_{L-1} \cdots U_1 , \qquad U_j = g_j \text{ acting on } S_j \text{ and } I \text{ on the other qubits}.

A run of the circuit prepares ∣0⟩⊗n\ket{0}^{\otimes n}, applies UU and measures a designated set of qubits in the computational basis; by the Born rule the outcome string yy occurs with probability ∥(⟨y∣⊗I)U∣0⟩⊗n∥2\norm{(\bra{y} \otimes I) U \ket{0}^{\otimes n}}^2.

  • The size of the circuit is LL, the number of gates.
  • The width is nn, the number of qubits, ancillas included.
  • The depth is the smallest DD such that the gates can be assigned to DD successive layers in each of which the sets SjS_j are pairwise disjoint, with any two gates that share a qubit kept in their original order (equivalently, the length of the longest chain of gates linked by shared qubits). Gates in one layer commute and can be applied simultaneously.
  • Restricted counts are defined the same way for a subset of G\mathcal{G}, for instance the T-count (number of TT and T†T\dagg gates) and the T-depth (number of layers that contain at least one of them, for a layering that minimises it).

A circuit family {Cx}\{C_x\} assigns a circuit to every input string xx (or to every input length). It is uniform if a deterministic classical Turing machine outputs a description of CxC_x from xx in time polynomial in ∣x∣\abs{x}. Complexity classes such as BQP are defined with uniform families; without uniformity a family can encode the answers to an undecidable problem in its gate choices.

The network formulation goes back to Deutsch; Yao showed that uniform circuit families of polynomial size simulate quantum Turing machines with polynomial overhead. Section 4.6 of Nielsen and Chuang gives a textbook account.

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. David Deutsch (1989). Quantum computational networks. Proceedings of the Royal Society of London A 425, 73-90. doi:10.1098/rspa.1989.0099
  2. Andrew Chi-Chih Yao (1993). Quantum circuit complexity. Proceedings of the 34th Annual Symposium on Foundations of Computer Science (FOCS), 352-361. doi:10.1109/SFCS.1993.366852
  3. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

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)

    Definition re-derived against standard circuit-model definitions; N&C section 4.6 is the circuit-model summary (book not openly readable, cross-checked with Barenco et al. arXiv:quant-ph/9503016). Deutsch (1989) and Yao (1993) titles, authors, venues and pages confirmed with Crossref; attributions are the standard ones.

    The depth definition partitioned the gate sequence into consecutive layers in the given order, which overcounts depth (e.g. A,B on qubit 0 then C,D on qubit 1 gives 3 instead of 2). Changed to layers that keep only gates sharing a qubit in order (longest chain of gates linked by shared qubits).

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 c87a415d827e1422. Source file knowledge/records/definition/quantum-circuit.md in the content repository (readable there once it is public).