Skip to main content
KetQat

Appearance

Topic · introductory

Quantum Circuit Model

The standard model of quantum computation - qubits, gates from a fixed set, and measurement - together with exact and approximate universality, the Solovay–Kitaev theorem, standard gate sets, circuit identities and the cost measures size, depth and width.

ExpositionMachine-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.

Overview

In the circuit model a computation prepares a register of qubits in ∣0⟩⊗n\ket{0}^{\otimes n}, applies a sequence of gates (unitaries on one or two qubits drawn from a fixed set) and measures some qubits in the computational basis. The model was formulated by Deutsch as "quantum computational networks"; Yao showed that uniform families of polynomial-size circuits are as powerful as quantum Turing machines, which is why circuits became the default language for quantum algorithms, error correction and complexity theory.

Three questions organise the subject. Which gate sets can build every unitary (universality)? How many gates does it take, as a function of the target accuracy (Solovay–Kitaev and its successors)? And which cost measure matters: total size, depth, width, or the count of one expensive gate type? This page answers the first two precisely and sets up the third; synthesis over the Clifford+T set is the subject of Clifford+T synthesis, and what polynomial-size circuits can compute is the subject of quantum complexity theory.

Intuition

A gate set is like an alphabet and a circuit like a word. With a continuous family of single-qubit rotations and one entangling gate, every unitary can be spelled exactly. With a finite alphabet only countably many words exist, so exact spelling of arbitrary rotations is impossible, but words can come arbitrarily close: if one gate rotates by an angle that is an irrational fraction of a full turn, its powers wind densely around the circle. The surprise of the Solovay–Kitaev theorem is that closeness is cheap. Doubling the number of correct digits costs only a constant factor more gates, not exponentially more, because errors can be cancelled recursively with group commutators.

Universality is, however, almost free and says nothing about efficiency. Almost every nn-qubit unitary needs a number of gates exponential in nn; algorithms are the rare unitaries with short circuits.

The lessons Gates and unitaries and Circuits and simulation build and simulate small circuits by hand.

Prerequisites

Unitary matrices and the tensor product, the Pauli matrices and the Bloch sphere (quantum states), and projective measurement in the computational basis (quantum measurements).

Mathematical Definitions

DefinitionQuantum circuit, size, depth and widthEstablished definition

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.

DefinitionUniversal gate set (exact and approximate)Established definition

Let G\mathcal{G} be a set of gates, each a unitary on a fixed number of qubits, and let ⟨G⟩n\langle \mathcal{G} \rangle_n denote the set of nn-qubit unitaries implemented by circuits over G\mathcal{G} (on any choice of qubits, in any order). Two unitaries are identified when they differ by a global phase eiφe^{i\varphi}, since no measurement distinguishes them.

  • G\mathcal{G} is exactly universal if for every n≥n0n \ge n_0 (with n0n_0 the largest number of qubits a gate in G\mathcal{G} acts on) and every U∈U(2n)U \in U(2^n) there is a circuit W∈⟨G⟩nW \in \langle \mathcal{G} \rangle_n and a phase φ\varphi with U=eiφWU = e^{i\varphi} W. An exactly universal set is necessarily infinite, because a finite set yields only countably many circuits.
  • G\mathcal{G} is approximately universal if for every such nn, every U∈U(2n)U \in U(2^n) and every ε>0\varepsilon > 0 there are W∈⟨G⟩nW \in \langle \mathcal{G} \rangle_n and φ\varphi with
∥U−eiφW∥≤ε,\norm{U - e^{i\varphi} W} \le \varepsilon ,

where ∥⋅∥\norm{\cdot} is the operator norm. Equivalently, the image of ⟨G⟩n\langle \mathcal{G} \rangle_n in the projective unitary group PU(2n)PU(2^n) is dense.

Variants restrict the target: a set may be universal on a subgroup (for instance real orthogonal matrices) or computationally universal, meaning it simulates every circuit with polynomial overhead using an encoding into more qubits, which is weaker than density in PU(2n)PU(2^n). The operator-norm error is the natural one because errors add along a circuit: replacing each gate UjU_j by WjW_j with ∥Uj−Wj∥≤εj\norm{U_j - W_j} \le \varepsilon_j changes the product by at most ∑jεj\sum_j \varepsilon_j in operator norm (section 4.5.3 of Nielsen and Chuang). How many gates an approximation needs is the subject of the Solovay–Kitaev theorem.

Standard gates

With the conventions of the notation guide: H=(X+Z)/2H = (X + Z)/\sqrt{2}, S=diag⁡(1,i)S = \operatorname{diag}(1, i), T=diag⁡(1,eiπ/4)T = \operatorname{diag}(1, e^{i\pi/4}), RP(θ)=e−iθP/2R_P(\theta) = e^{-i\theta P/2} for a Pauli PP, and CXc→t\mathrm{CX}_{c\to t} the controlled-NOT. Frequently used gate sets are:

Gate set Universality Role
CNOT + all single-qubit gates exact textbook decompositions, hardware with continuous rotations
{H,T,CNOT}\{H, T, \mathrm{CNOT}\}, or Clifford+T {H,S,T,CNOT}\{H, S, T, \mathrm{CNOT}\} approximate fault-tolerant computation
{H,S,CNOT}\{H, S, \mathrm{CNOT}\} (Clifford) not universal efficiently simulable classically

The Clifford group is generated by HH, SS and CNOT; by the Gottesman–Knill theorem Clifford circuits acting on computational basis states and followed by Pauli measurements can be simulated efficiently on a classical computer, so the non-Clifford gate TT is what supplies computational power. TT lies in the third level of the Clifford hierarchy.

Theorems

TheoremZ–Y–Z decomposition of a single-qubit unitaryEstablished result

For every U∈U(2)U \in U(2) there are real numbers α,β,γ,δ\alpha, \beta, \gamma, \delta such that

U=eiα Rz(β) Ry(γ) Rz(δ).U = e^{i\alpha}\, R_z(\beta)\, R_y(\gamma)\, R_z(\delta) .

One may take γ∈[0,π]\gamma \in [0, \pi]. Moreover, with

A=Rz(β)Ry(γ/2),B=Ry(−γ/2)Rz ⁣(−δ+β2),C=Rz ⁣(δ−β2),A = R_z(\beta) R_y(\gamma/2), \qquad B = R_y(-\gamma/2) R_z\!\left(-\tfrac{\delta + \beta}{2}\right), \qquad C = R_z\!\left(\tfrac{\delta - \beta}{2}\right),

one has ABC=IABC = I and U=eiαAXBXCU = e^{i\alpha} A X B X C. The second form shows that a controlled-UU gate needs only two CNOTs, the single-qubit gates A,B,CA, B, C on the target and a phase gate diag⁡(1,eiα)\operatorname{diag}(1, e^{i\alpha}) on the control.

Any two distinct orthogonal rotation axes may replace zz and yy. This is Theorem 4.1 and Corollary 4.2 of Nielsen and Chuang; the controlled-gate construction is from Barenco et al.

Holds when
  • RP(θ)=e−iθP/2R_P(\theta) = e^{-i\theta P/2} for P∈{Y,Z}P \in \{Y, Z\}, as in the notation conventions.
Proof · Proof of the Z–Y–Z decomposition

Step 1: reduce to determinant one. Since UU is unitary, ∣det⁡U∣=1\abs{\det U} = 1, so det⁡U=eiθ\det U = e^{i\theta} for some real θ\theta. Put α=θ/2\alpha = \theta/2 and V=e−iαUV = e^{-i\alpha} U. Then det⁡V=e−2iαdet⁡U=1\det V = e^{-2i\alpha}\det U = 1, so V∈SU(2)V \in SU(2).

Step 2: the form of a special unitary. Let the first column of VV be (a,b)T(a, b)^T. It has unit norm, ∣a∣2+∣b∣2=1\abs{a}^2 + \abs{b}^2 = 1. The second column is a unit vector orthogonal to the first. In C2\C^2 the orthogonal complement of (a,b)T(a, b)^T is spanned by (−b∗,a∗)T(-b^*, a^*)^T, which is itself a unit vector, so the second column is λ(−b∗,a∗)T\lambda (-b^*, a^*)^T with ∣λ∣=1\abs{\lambda} = 1. Then det⁡V=λ(∣a∣2+∣b∣2)=λ\det V = \lambda(\abs{a}^2 + \abs{b}^2) = \lambda, and det⁡V=1\det V = 1 forces λ=1\lambda = 1:

V=(a−b∗ba∗).V = \begin{pmatrix} a & -b^* \\ b & a^* \end{pmatrix}.

Step 3: the product of three rotations. With c=cos⁡(γ/2)c = \cos(\gamma/2) and s=sin⁡(γ/2)s = \sin(\gamma/2), Rz(ϕ)=diag⁡(e−iϕ/2,eiϕ/2)R_z(\phi) = \operatorname{diag}(e^{-i\phi/2}, e^{i\phi/2}) and Ry(γ)=(c−ssc)R_y(\gamma) = \begin{pmatrix} c & -s \\ s & c \end{pmatrix}. Multiplying out,

Rz(β)Ry(γ)Rz(δ)=(c e−i(β+δ)/2−s e−i(β−δ)/2s ei(β−δ)/2c ei(β+δ)/2).R_z(\beta) R_y(\gamma) R_z(\delta) = \begin{pmatrix} c\, e^{-i(\beta + \delta)/2} & -s\, e^{-i(\beta - \delta)/2} \\ s\, e^{i(\beta - \delta)/2} & c\, e^{i(\beta + \delta)/2} \end{pmatrix}.

This has the form of Step 2 with a=c e−i(β+δ)/2a = c\, e^{-i(\beta+\delta)/2} and b=s ei(β−δ)/2b = s\, e^{i(\beta - \delta)/2}.

Step 4: matching. Choose γ∈[0,π]\gamma \in [0, \pi] with cos⁡(γ/2)=∣a∣\cos(\gamma/2) = \abs{a}; then sin⁡(γ/2)=1−∣a∣2=∣b∣\sin(\gamma/2) = \sqrt{1 - \abs{a}^2} = \abs{b}, and both are non-negative. Write a=∣a∣eiμa = \abs{a} e^{i\mu} and b=∣b∣eiνb = \abs{b} e^{i\nu} (if aa or bb is zero, its phase is arbitrary). The two linear equations −(β+δ)/2=μ-(\beta + \delta)/2 = \mu and (β−δ)/2=ν(\beta - \delta)/2 = \nu have the solution β=ν−μ\beta = \nu - \mu, δ=−μ−ν\delta = -\mu - \nu. With these values the product in Step 3 equals VV, hence U=eiαRz(β)Ry(γ)Rz(δ)U = e^{i\alpha} R_z(\beta) R_y(\gamma) R_z(\delta).

Step 5: the ABCABC form. Rotations about the same axis add their angles, so ABC=Rz(β)Ry(γ/2)Ry(−γ/2)Rz(−δ+β2)Rz(δ−β2)=Rz(β)Rz(−β)=IABC = R_z(\beta) R_y(\gamma/2) R_y(-\gamma/2) R_z(-\tfrac{\delta+\beta}{2}) R_z(\tfrac{\delta-\beta}{2}) = R_z(\beta) R_z(-\beta) = I. Since XYX=−YX Y X = -Y and XZX=−ZX Z X = -Z, conjugation by XX reverses the angle of a yy- or zz-rotation: XRy(ϕ)X=Ry(−ϕ)X R_y(\phi) X = R_y(-\phi) and XRz(ϕ)X=Rz(−ϕ)X R_z(\phi) X = R_z(-\phi). Hence XBX=Ry(γ/2)Rz(δ+β2)X B X = R_y(\gamma/2) R_z(\tfrac{\delta + \beta}{2}) and

AXBXC=Rz(β)Ry(γ/2)Ry(γ/2)Rz ⁣(δ+β2)Rz ⁣(δ−β2)=Rz(β)Ry(γ)Rz(δ).A X B X C = R_z(\beta) R_y(\gamma/2) R_y(\gamma/2) R_z\!\left(\tfrac{\delta+\beta}{2}\right) R_z\!\left(\tfrac{\delta-\beta}{2}\right) = R_z(\beta) R_y(\gamma) R_z(\delta) .

Multiplying by eiαe^{i\alpha} gives UU.

Controlled-UU. Apply CC to the target, a CNOT from control to target, BB to the target, a second CNOT and AA to the target, then diag⁡(1,eiα)\operatorname{diag}(1, e^{i\alpha}) to the control. If the control is ∣0⟩\ket{0}, the target receives ABC=IABC = I; if it is ∣1⟩\ket{1}, the target receives AXBXCA X B X C and the control picks up eiαe^{i\alpha}, giving eiαAXBXC=Ue^{i\alpha} A X B X C = U. The argument follows section 4.2 and 4.3 of Nielsen and Chuang.

TheoremExact universality of CNOT and single-qubit gatesEstablished result

The set consisting of CNOT and all single-qubit unitaries is exactly universal: for every n≥2n \ge 2 and every U∈U(2n)U \in U(2^n) there is a finite circuit of CNOT gates and single-qubit gates that implements UU.

The standard constructive proof writes UU as a product of at most 2n−1(2n−1)2^{n-1}(2^n - 1) two-level unitaries (each acting nontrivially on a two-dimensional subspace spanned by two computational basis states), then implements each two-level unitary with a Gray-code sequence of multiply-controlled NOT gates around one multiply-controlled single-qubit gate, and finally expands the controlled gates into CNOTs and single-qubit gates using the Z–Y–Z decomposition. This yields O(n24n)O(n^2 4^n) gates (section 4.5 of Nielsen and Chuang). The reduction of controlled gates to CNOT and single-qubit gates is due to Barenco et al.; that two-qubit gates suffice was shown by DiVincenzo.

Sharper counts are known. Every two-qubit unitary can be implemented with three CNOTs and single-qubit gates (Vidal and Dawson). For nn qubits, Shende, Bullock and Markov give a construction whose CNOT count grows as O(4n)O(4^n) and is within a factor of about two of a lower bound that holds for generic unitaries.

Holds when
  • Arbitrary single-qubit unitaries are available exactly, so the gate set is infinite.
  • Equality is up to a global phase.
TheoremApproximate universality of {H, T, CNOT}Established result

The set {H,T,CNOT}\{H, T, \mathrm{CNOT}\} is approximately universal: for every n≥2n \ge 2, every U∈U(2n)U \in U(2^n) and every ε>0\varepsilon > 0 there is a circuit WW over these three gates and a phase φ\varphi with ∥U−eiφW∥≤ε\norm{U - e^{i\varphi} W} \le \varepsilon.

The single-qubit part is the heart of the matter. Up to global phases, TT is the rotation Rz(π/4)R_z(\pi/4) and HTHHTH is Rx(π/4)R_x(\pi/4), and their product T HTHT\,HTH is, up to phase, a rotation Rn^(θ)R_{\hat n}(\theta) about the axis n^∝(cos⁡π8,sin⁡π8,cos⁡π8)\hat n \propto (\cos\tfrac{\pi}{8}, \sin\tfrac{\pi}{8}, \cos\tfrac{\pi}{8}) by an angle θ\theta defined by

cos⁡θ2=cos⁡2π8.\cos\frac{\theta}{2} = \cos^2\frac{\pi}{8} .

This θ\theta is an irrational multiple of π\pi, so the powers of Rn^(θ)R_{\hat n}(\theta) are dense in the rotations about n^\hat n. Conjugating by HH gives a dense set of rotations about a second, non-parallel axis, and rotations about two non-parallel axes generate all of SU(2)SU(2) (an Euler decomposition, as in the Z–Y–Z decomposition). Combined with the exact universality of CNOT and single-qubit gates and the fact that operator-norm errors add along a circuit, this gives the theorem.

The result and the irrationality of θ\theta are due to Boykin, Mor, Pulver, Roychowdhury and Vatan; a textbook account is section 4.5.3 of Nielsen and Chuang. The same statement holds with {H,S,CNOT,T}\{H, S, \mathrm{CNOT}, T\}, the usual Clifford+T set, since S=T2S = T^2.

Holds when
  • H=(X+Z)/2H = (X + Z)/\sqrt{2}, T=diag⁡(1,eiπ/4)T = \operatorname{diag}(1, e^{i\pi/4}), CNOT on any ordered pair of qubits.
  • Approximation in operator norm up to a global phase.
TheoremSolovay–Kitaev theoremEstablished result

Let G⊂SU(d)\mathcal{G} \subset SU(d) satisfy the assumptions. There is a constant cc such that for every U∈SU(d)U \in SU(d) and every ε∈(0,1/2)\varepsilon \in (0, 1/2) there is a sequence g1,…,gℓ∈Gg_1, \dots, g_\ell \in \mathcal{G} with

∥U−gℓ⋯g1∥≤ε,ℓ=O ⁣(log⁡c(1/ε)),\norm{U - g_\ell \cdots g_1} \le \varepsilon , \qquad \ell = O\!\left(\log^{c}(1/\varepsilon)\right),

where the implied constant depends on G\mathcal{G} but not on UU or ε\varepsilon. The sequence is produced by a classical algorithm whose running time is also polylogarithmic in 1/ε1/\varepsilon.

The recursive construction analysed by Dawson and Nielsen gives c=log⁡5/log⁡(3/2)≈3.97c = \log 5 / \log(3/2) \approx 3.97 and running time O(log⁡c′(1/ε))O(\log^{c'}(1/\varepsilon)) with c′=log⁡3/log⁡(3/2)≈2.71c' = \log 3 / \log(3/2) \approx 2.71; see the exponent equation. Refined versions reach c=3+δc = 3 + \delta for every δ>0\delta > 0, and a 2023 preprint of Kuperberg, which summarises that earlier state, lowers the exponent to 1.44042…+δ1.44042\ldots + \delta (as of 2026-11 this improvement is known from the preprint). A volume-counting argument shows that no finite gate set can do better than ℓ=Ω(log⁡(1/ε))\ell = \Omega(\log(1/\varepsilon)).

The theorem is due to R. Solovay (an unpublished 1995 manuscript) and, independently, to Kitaev; textbook proofs are in Kitaev, Shen and Vyalyi and in Appendix 3 of Nielsen and Chuang. Its practical meaning is that the choice of a universal gate set changes circuit sizes by at most a polylogarithmic factor: a circuit of mm gates from one set, each approximated to ε/m\varepsilon/m, becomes a circuit of O(mlog⁡c(m/ε))O(m \log^{c}(m/\varepsilon)) gates from another with total error at most ε\varepsilon.

Holds when
  • The gate set G⊂SU(d)\mathcal{G} \subset SU(d) is finite and closed under inverses (g∈G⇒g†∈Gg \in \mathcal{G} \Rightarrow g\dagg \in \mathcal{G}).
  • The group generated by G\mathcal{G} is dense in SU(d)SU(d); dd is fixed while ε→0\varepsilon \to 0.
  • Accuracy is measured in operator norm.
EquationSolovay–Kitaev sequence lengthEstablished result
ℓ(ε)=O ⁣(log⁡c(1/ε)),c=log⁡5log⁡(3/2)≈3.97\ell(\varepsilon) = O\!\left(\log^{c}(1/\varepsilon)\right), \qquad c = \frac{\log 5}{\log (3/2)} \approx 3.97

Level k+1k+1 of the recursion approximates a target UU by the level-kk approximation UkU_k followed by a group commutator VWV†W†V W V\dagg W\dagg of two level-kk approximations, so the length obeys ℓk+1=5 ℓk\ell_{k+1} = 5\,\ell_k while the error obeys εk+1≤C εk3/2\varepsilon_{k+1} \le C\,\varepsilon_k^{3/2}. Eliminating kk gives the length above; the same recursion gives a classical running time O(log⁡c′(1/ε))O(\log^{c'}(1/\varepsilon)) with c′=log⁡3/log⁡(3/2)≈2.71c' = \log 3/\log(3/2) \approx 2.71, because each level makes three recursive calls. Both exponents are from Dawson and Nielsen. The ratio of logarithms does not depend on the base. It is used to bound the overhead of translating a circuit from one universal gate set into another.

Holds when
  • Finite inverse-closed gate set generating a dense subgroup of SU(2)SU(2) (or SU(d)SU(d), dd fixed).
  • The basic recursion in which each level calls the previous level five times and the error obeys εk+1≤C εk3/2\varepsilon_{k+1} \le C\,\varepsilon_k^{3/2}.

Counting lower bounds

Universality does not mean efficiency. Knill showed that approximating most nn-qubit unitaries to a fixed accuracy requires a number of gates exponential in nn, and section 4.5.4 of Nielsen and Chuang gives the corresponding counting argument for states. The same counting idea in a single qubit gives the lower bound in the next section.

Detailed Derivations and Proofs

Where the Solovay–Kitaev exponent comes from

The recursion assumes a balanced commutator fact: if Δ∈SU(2)\Delta \in SU(2) satisfies ∥Δ−I∥≤ϵ\norm{\Delta - I} \le \epsilon, then Δ=VWV†W†\Delta = V W V\dagg W\dagg with ∥V−I∥,∥W−I∥≤C0ϵ\norm{V - I}, \norm{W - I} \le C_0\sqrt{\epsilon}, and replacing V,WV, W by approximations within ϵ\epsilon changes the commutator by O(ϵ3/2)O(\epsilon^{3/2}). Both facts are proved in Dawson and Nielsen; the second holds because to first order the commutator of near-identity elements depends on the Lie-algebra commutator, so an error of size ϵ\epsilon in a factor of size ϵ\sqrt{\epsilon} contributes only ϵ⋅ϵ\epsilon \cdot \sqrt{\epsilon}.

Given these, suppose level kk produces words of length ℓk\ell_k approximating every element of SU(2)SU(2) to εk\varepsilon_k. For a target UU, take its level-kk approximation UkU_k, set Δ=UUk†\Delta = U U_k\dagg, write Δ=VWV†W†\Delta = V W V\dagg W\dagg, and approximate VV and WW at level kk. The level-(k+1)(k+1) word is V~W~V~†W~†Uk\tilde V \tilde W \tilde V\dagg \tilde W\dagg U_k, so

ℓk+1=5 ℓk,εk+1≤C εk3/2.\ell_{k+1} = 5\,\ell_k , \qquad \varepsilon_{k+1} \le C\, \varepsilon_k^{3/2} .

The base case ε0\varepsilon_0 comes from a finite lookup table of short words, chosen so that C2ε0<1C^2 \varepsilon_0 < 1. Writing ηk=C2εk\eta_k = C^2 \varepsilon_k, the error recursion becomes ηk+1≤ηk3/2\eta_{k+1} \le \eta_k^{3/2}, so ηk≤η0(3/2)k\eta_k \le \eta_0^{(3/2)^k}. To reach ε\varepsilon it suffices that (3/2)k≥log⁡(1/(C2ε))/log⁡(1/η0)(3/2)^k \ge \log(1/(C^2\varepsilon)) / \log(1/\eta_0), and then

ℓk=5kℓ0=ℓ0((3/2)k)log⁡5/log⁡(3/2)=O ⁣(log⁡log⁡5/log⁡(3/2)(1/ε)).\ell_k = 5^k \ell_0 = \ell_0 \left( (3/2)^k \right)^{\log 5/\log(3/2)} = O\!\left( \log^{\log 5/\log(3/2)}(1/\varepsilon) \right).

The algorithm makes three recursive calls per level (for UkU_k, VV and WW; the inverses are free because G\mathcal{G} is inverse-closed), giving the running time exponent log⁡3/log⁡(3/2)\log 3/\log(3/2).

No finite gate set beats log⁡(1/ε)\log(1/\varepsilon)

Let G\mathcal{G} have gg elements. There are at most (g+1)ℓ(g+1)^\ell words of length at most ℓ\ell. An operator-norm ball of radius ε\varepsilon in SU(2)SU(2), a three-dimensional manifold, has Haar volume at most a ε3a\,\varepsilon^3 for a constant aa. If every element of SU(2)SU(2) lies within ε\varepsilon of some word, the balls around the words cover the group, so (g+1)ℓ a ε3≥1(g+1)^\ell \, a\,\varepsilon^3 \ge 1, i.e.

ℓ  ≥  3log⁡2(1/ε)−log⁡2alog⁡2(g+1).\ell \;\ge\; \frac{3\log_2(1/\varepsilon) - \log_2 a}{\log_2(g+1)} .

So the Solovay–Kitaev length is polynomially, not exponentially, far from optimal. Number-theoretic synthesis for Clifford+T attains the linear form of this bound: Ross and Selinger approximate a typical zz-rotation with T-count 3log⁡2(1/ε)+O(log⁡log⁡(1/ε))3\log_2(1/\varepsilon) + O(\log\log(1/\varepsilon)).

Worked Examples

Euler angles of the Hadamard gate

Use Ry(π/2)=12(1−111)R_y(\pi/2) = \tfrac{1}{\sqrt2}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} and Rz(π)=diag⁡(−i,i)R_z(\pi) = \operatorname{diag}(-i, i). Then

Ry(π/2) Rz(π)=12(−i−i−ii)=−i H,R_y(\pi/2)\, R_z(\pi) = \frac{1}{\sqrt2}\begin{pmatrix} -i & -i \\ -i & i \end{pmatrix} = -i\, H ,

so H=eiπ/2Rz(0) Ry(π/2) Rz(π)H = e^{i\pi/2} R_z(0)\, R_y(\pi/2)\, R_z(\pi): the Z–Y–Z angles are (α,β,γ,δ)=(π/2,0,π/2,π)(\alpha, \beta, \gamma, \delta) = (\pi/2, 0, \pi/2, \pi). Similarly T=eiπ/8Rz(π/4)T = e^{i\pi/8} R_z(\pi/4), since eiπ/8diag⁡(e−iπ/8,eiπ/8)=diag⁡(1,eiπ/4)e^{i\pi/8}\operatorname{diag}(e^{-i\pi/8}, e^{i\pi/8}) = \operatorname{diag}(1, e^{i\pi/4}).

The irrational rotation inside {H,T}\{H, T\}

Up to phase, T⋅HTH=Rz(π/4)Rx(π/4)T \cdot HTH = R_z(\pi/4) R_x(\pi/4). With c=cos⁡(π/8)c = \cos(\pi/8) and s=sin⁡(π/8)s = \sin(\pi/8), and using ZX=iYZX = iY,

(cI−isZ)(cI−isX)=c2I−i(sc X+s2 Y+sc Z).(c I - i s Z)(c I - i s X) = c^2 I - i\left( sc\, X + s^2\, Y + sc\, Z \right).

The identity component gives cos⁡(θ/2)=c2=(2+2)/4≈0.8536\cos(\theta/2) = c^2 = (2 + \sqrt2)/4 \approx 0.8536, so θ/2≈0.5480\theta/2 \approx 0.5480 and θ≈1.0960\theta \approx 1.0960 rad, about 62.8∘62.8^\circ. The axis is (sc,s2,sc)(sc, s^2, sc) normalised, i.e. proportional to (c,s,c)≈(0.924,0.383,0.924)(c, s, c) \approx (0.924, 0.383, 0.924). Since θ/π\theta/\pi is irrational, Rn^(θ)mR_{\hat n}(\theta)^m for m=1,2,…m = 1, 2, \dots never repeats and fills the circle of rotations about n^\hat n densely.

Size, depth and width of a GHZ preparation

Quantum circuit on 3 wires (q0, q1, q2). step 1: H on q0. step 2: CNOT, control q0, target q1. step 3: CNOT, control q0, target q2.q0q1q2H
Preparing (|000⟩ + |111⟩)/√2: a Hadamard on q0, then two CNOTs from q0.

Size 3, width 3. The two CNOTs share qubit q0q_0, so they cannot be in one layer and the depth is 3. Replacing the second CNOT by CXq1→q2\mathrm{CX}_{q_1 \to q_2} gives the same state (after the first CNOT, q1q_1 equals q0q_0 in each branch) but still depth 3; for nn qubits, a fan-out tree reaches depth 1+⌈log⁡2n⌉1 + \lceil \log_2 n \rceil instead of nn.

Three circuit identities

  1. Hadamard conjugation. HXH=ZHXH = Z, HZH=XHZH = X, HYH=−YHYH = -Y. Hence (H⊗H) CX0→1 (H⊗H)=CX1→0(H \otimes H)\, \mathrm{CX}_{0\to1}\, (H \otimes H) = \mathrm{CX}_{1\to0}: Hadamards on both wires reverse a CNOT. Check on ∣++⟩\ket{++}-type states: in the XX basis the roles of control and target exchange.
  2. SWAP from three CNOTs. CX0→1CX1→0CX0→1\mathrm{CX}_{0\to1}\mathrm{CX}_{1\to0}\mathrm{CX}_{0\to1} maps ∣a,b⟩↦∣a,a⊕b⟩↦∣b,a⊕b⟩↦∣b,a⟩\ket{a, b} \mapsto \ket{a, a\oplus b} \mapsto \ket{b, a \oplus b} \mapsto \ket{b, a}.
  3. Controlled-ZZ is symmetric. CZ=(I⊗H) CX0→1 (I⊗H)\mathrm{CZ} = (I \otimes H)\,\mathrm{CX}_{0\to1}\,(I \otimes H), and CZ=diag⁡(1,1,1,−1)\mathrm{CZ} = \operatorname{diag}(1, 1, 1, -1) is unchanged by swapping qubits.

Applications

Every quantum algorithm on this site is stated as a circuit family, and its cost is a statement about size, depth or T-count. Fault-tolerant architectures expose Clifford+T as the logical gate set (fault-tolerant quantum computing), so compilers translate arbitrary rotations into it; that translation is Clifford+T synthesis. Other models of computation, measurement-based and topological, are compared with the circuit model by mutual simulation with polynomial overhead.

Limitations and Common Pitfalls

  • Universality is not efficiency. Density of a gate set says every unitary is reachable; it says nothing about how many gates are needed. An algorithmic claim needs an explicit polynomial-size circuit family.
  • Uniformity matters. Non-uniform families can hard-code non-computable information; complexity statements always assume a classical polynomial-time description of the circuits.
  • Global phases are invisible, controlled phases are not. TT and Rz(π/4)R_z(\pi/4) differ by a phase and are interchangeable as standalone gates, but their controlled versions differ by a relative phase on the control.
  • Solovay–Kitaev is rarely the method of choice. Its constants and exponent make it a statement about asymptotic overhead; for Clifford+T, number-theoretic methods (Ross and Selinger) give much shorter sequences.
  • Different counts for different stages. On physical hardware the two-qubit gate count and depth dominate errors; inside a fault-tolerant computation non-Clifford gates dominate the cost. Optimising the wrong measure is a common mistake.
  • Inverse-closure is an assumption. The standard Solovay–Kitaev proof uses the inverses of the gates, which are free for Clifford+T (T†=T7T\dagg = T^7) but not for an arbitrary hardware gate set.

State of the Art

As of 2026-11: the lowest exponent we found for the general Solovay–Kitaev algorithm in fixed dimension is 1.44042…+δ1.44042\ldots + \delta in Kuperberg, a preprint; for two-qubit unitaries three CNOTs suffice (Vidal and Dawson); and generic nn-qubit synthesis of Shende, Bullock and Markov uses O(4n)O(4^n) CNOTs, within a factor of about two of their lower bound. These statements summarise the cited papers, not a survey of circuit synthesis.

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. Adriano Barenco, Charles H. Bennett, Richard Cleve, … Harald Weinfurter (1995). Elementary gates for quantum computation. Physical Review A 52, 3457-3467. doi:10.1103/PhysRevA.52.3457
  4. David P. DiVincenzo (1995). Two-bit gates are universal for quantum computation. Physical Review A 51, 1015-1022. doi:10.1103/PhysRevA.51.1015
  5. P. Oscar Boykin, Tal Mor, Matthew Pulver, … Farrokh Vatan (2000). A new universal and fault-tolerant quantum basis. Information Processing Letters 75, 101-107. doi:10.1016/S0020-0190(00)00084-3
  6. A. Yu. Kitaev (1997). Quantum computations: algorithms and error correction. Russian Mathematical Surveys 52, 1191-1249. doi:10.1070/RM1997v052n06ABEH002155
  7. Christopher M. Dawson, Michael A. Nielsen (2006). The Solovay-Kitaev algorithm. Quantum Information and Computation 6, 81-95. doi:10.26421/QIC6.1-6arXiv:quant-ph/0505030
  8. A. Yu. Kitaev, A. H. Shen, M. N. Vyalyi (2002). Classical and Quantum Computation. Graduate Studies in Mathematics 47, American Mathematical Society. doi:10.1090/gsm/047
  9. Greg Kuperberg (2023). Breaking the cubic barrier in the Solovay-Kitaev algorithm. arXiv:2306.13158
  10. 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
  11. E. Knill (1995). Approximation by Quantum Circuits. arXiv:quant-ph/9508006
  12. G. Vidal, C. M. Dawson (2004). Universal quantum circuit for two-qubit transformations with three controlled-NOT gates. Physical Review A 69, 010301. doi:10.1103/PhysRevA.69.010301arXiv:quant-ph/0307177
  13. Vivek V. Shende, Stephen S. Bullock, Igor L. Markov (2006). Synthesis of quantum-logic circuits. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 25, 1000-1010. doi:10.1109/TCAD.2005.855930arXiv:quant-ph/0406176
  14. 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 · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Topic body only (embedded records carry their own states). Re-derived: Solovay-Kitaev recursion with eta = C^2 eps and the length exponent (compared with Dawson-Nielsen arXiv:quant-ph/0505030 eqs. (1)-(9)), the covering lower bound (g+1)^l a eps^3 >= 1, Hadamard Euler angles (-iH = R_y(pi/2) R_z(pi)), T = e^{i pi/8} R_z(pi/4), the T·HTH rotation (angle 1.0961 rad = 62.80 deg, axis proportional to (c, s, c), computed numerically), GHZ size/depth/width and fan-out depth, and the three circuit identities. Knill 1995 lower bounds compared with arXiv:quant-ph/9508006 abstract; Kuperberg exponent with arXiv:2306.13158 abstract (no journal reference on arXiv); Vidal-Dawson and Shende-Bullock-Markov with their abstracts; Ross-Selinger with arXiv:1403.2975 abstract.

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