Skip to main content
KetQat

Appearance

Theorem · intermediate

Equivalence of Clifford circuits is decidable in polynomial time

Two Clifford circuits implement the same unitary up to a global phase if and only if they conjugate every single-qubit X and Z to the same signed Pauli operator, which stabilizer tableaux check in time linear in the number of gates times the number of qubits.

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

Let C1,C2C_1, C_2 be Clifford circuits with m1m_1 and m2m_2 gates and unitaries U1,U2U_1, U_2. Then U1=eiφU2U_1 = e^{i\varphi}U_2 for some φ\varphi if and only if

U1PU1†=U2PU2†for all P∈{X1,…,Xn,Z1,…,Zn},U_1 P U_1\dagg = U_2 P U_2\dagg \qquad \text{for all } P \in \{X_1, \dots, X_n, Z_1, \dots, Z_n\},

where both sides are signed Pauli strings. The 2n2n conjugated generators, with their signs, form the stabilizer tableau of the circuit, which can be computed by updating O(n)O(n) bits per gate (Aaronson and Gottesman). Equivalence is therefore decided in time O(n(m1+m2)+n2)O\big(n(m_1 + m_2) + n^2\big). The tableau formalism goes back to the Heisenberg-picture description of stabilizer circuits by Gottesman.

Holds when

  • Circuits on nn qubits built from H, S and CNOT gates (any Clifford gate set compiles to these with constant overhead per gate).
  • Equivalence means equality up to a global phase.

Proof

Proof that Clifford circuit equivalence is efficientMachine-checked

Only if. If U1=eiφU2U_1 = e^{i\varphi}U_2, the phases cancel in U1PU1†U_1 P U_1\dagg.

If. Put W=U2†U1W = U_2\dagg U_1. The hypothesis gives WPW†=PW P W\dagg = P, i.e. WP=PWWP = PW, for each generator PP, hence for every product of generators, which (up to phases) are all 4n4^n Pauli strings. The Pauli strings form a basis of the space of 2n×2n2^n \times 2^n complex matrices, so WW commutes with every matrix. Taking the matrix units Ejk=∣j⟩⟨k∣E_{jk} = \ketbra{j}{k}: WEjk=EjkWW E_{jk} = E_{jk} W applied to ∣k⟩\ket{k} gives W∣j⟩=⟨k∣W∣k⟩ ∣j⟩W\ket{j} = \bra{k}W\ket{k}\,\ket{j} for all j,kj, k, so WW is diagonal with all diagonal entries equal, W=cIW = c I. Since WW is unitary, ∣c∣=1\abs c = 1, so c=eiφc = e^{i\varphi} and U1=eiφU2U_1 = e^{i\varphi}U_2.

Algorithm. Represent a signed Pauli string on nn qubits by 2n2n bits and a sign bit. Starting from the identity tableau (row jj is XjX_j, row n+jn + j is ZjZ_j), apply the gates of C1C_1 in order, conjugating every row: H, S and CNOT map each Pauli string to another one with a sign given by a simple Boolean formula, and only the columns of the one or two qubits the gate touches change, so each gate costs O(n)O(n) operations on the 2n2n rows (Aaronson and Gottesman). Do the same for C2C_2 and compare the two tableaux, O(n2)O(n^2) bits. The total time is O(n(m1+m2)+n2)O(n(m_1 + m_2) + n^2).

Builds on

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. Scott Aaronson, Daniel Gottesman (2004). Improved simulation of stabilizer circuits. Physical Review A 70, 052328. doi:10.1103/PhysRevA.70.052328arXiv:quant-ph/0406196
  2. Daniel Gottesman (1998). The Heisenberg Representation of Quantum Computers. arXiv:quant-ph/9807006

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)

    Criterion proved directly (U2^dag U1 commuting with all X_i, Z_i is a scalar) and checked numerically with numpy on 3000 random pairs of 2-qubit H/S/CNOT circuits (tableau equality and phase-equivalence agree in every case). O(n) tableau update per gate confirmed in Aaronson and Gottesman, arXiv quant-ph/0406196 (PRA 70, 052328, 2004); O(n^2) comparison and total bound re-derived. Gottesman, arXiv quant-ph/9807006 abstract (Heisenberg-picture stabilizer formalism). Crossref metadata match.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 616efe435c79a60f. Source file knowledge/records/theorem/clifford-circuit-equivalence-is-efficient.md in the content repository (readable there once it is public).