Skip to main content
KetQat

Appearance

Proof · advanced

Proof of the transversal Clifford gates of two-dimensional color codes

Each gate maps the stabilizer generators to products of generators and maps the logical Pauli operators as the corresponding logical gate does; the phase factors from the phase gate cancel on every face because of the balanced split of its 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.

Principle. A unitary UU that maps the stabilizer group to itself under conjugation maps the code space to itself. Its action on the encoded qubit is then fixed, up to a phase, by the images of Xˉ\bar X and Zˉ\bar Z, because these two operators generate all operators on the encoded qubit.

Preliminaries. Xˉ=X⊗n\bar X = X^{\otimes n} commutes with every ZfZ_f because ∣f∣\abs{f} is even, and XˉZˉ=(−1)nZˉXˉ=−ZˉXˉ\bar X \bar Z = (-1)^n \bar Z \bar X = -\bar Z \bar X because nn is odd. The single-qubit identities used are HXH=ZH X H = Z, SXS†=Y=iXZS X S\dagg = Y = iXZ, S†XS=−Y=−iXZS\dagg X S = -Y = -iXZ, and SZS†=ZS Z S\dagg = Z.

1. Hadamard. H⊗nXfH⊗n=ZfH^{\otimes n} X_f H^{\otimes n} = Z_f and H⊗nZfH⊗n=XfH^{\otimes n} Z_f H^{\otimes n} = X_f, so the set of generators is mapped to itself. Also H⊗nXˉH⊗n=ZˉH^{\otimes n} \bar X H^{\otimes n} = \bar Z and conversely, which is the action of a logical Hadamard.

2. Alternating phase gate. UTU_T commutes with every ZfZ_f. For an XX check,

UT Xf UT†=∏v∈f∩T(iXvZv)∏v∈f∩Tc(−iXvZv)=i∣f∩T∣ (−i)∣f∩Tc∣  XfZf,U_T\, X_f\, U_T\dagg = \prod_{v \in f \cap T} (i X_v Z_v) \prod_{v \in f \cap T^{c}} (-i X_v Z_v) = i^{\abs{f \cap T}}\, (-i)^{\abs{f \cap T^{c}}}\; X_f Z_f ,

where the last step uses that Pauli operators on different qubits commute, so ∏v∈fXvZv=XfZf\prod_{v \in f} X_v Z_v = X_f Z_f. By assumption ∣f∩T∣=∣f∩Tc∣\abs{f \cap T} = \abs{f \cap T^{c}}, so the prefactor is (i⋅(−i))∣f∩T∣=1(i \cdot (-i))^{\abs{f \cap T}} = 1 and UTXfUT†=XfZfU_T X_f U_T\dagg = X_f Z_f, a product of generators. Hence UTU_T preserves the stabilizer group. On the logical operators, UTZˉUT†=ZˉU_T \bar Z U_T\dagg = \bar Z and

UT Xˉ UT†=i∣T∣(−i)∣Tc∣ X⊗nZ⊗n=i ∣T∣−∣Tc∣  XˉZˉ.U_T\, \bar X\, U_T\dagg = i^{\abs{T}} (-i)^{\abs{T^{c}}}\, X^{\otimes n} Z^{\otimes n} = i^{\,\abs{T} - \abs{T^{c}}}\; \bar X \bar Z .

The exponent is odd because n=∣T∣+∣Tc∣n = \abs{T} + \abs{T^{c}} is odd. A logical SS gate maps Xˉ↦iXˉZˉ\bar X \mapsto i \bar X \bar Z and a logical S†S\dagg maps Xˉ↦−iXˉZˉ\bar X \mapsto -i \bar X \bar Z; both fix Zˉ\bar Z. So UTU_T is the logical SS when ∣T∣−∣Tc∣≡1(mod4)\abs{T} - \abs{T^{c}} \equiv 1 \pmod 4 and the logical S†S\dagg when it is ≡3(mod4)\equiv 3 \pmod 4.

3. Uniform phase gate. The same computation with TT the set of all qubits gives S⊗nXfS†⊗n=i∣f∣XfZfS^{\otimes n} X_f S^{\dagger \otimes n} = i^{\abs{f}} X_f Z_f, which is XfZfX_f Z_f exactly when ∣f∣≡0(mod4)\abs{f} \equiv 0 \pmod 4, and S⊗nXˉS†⊗n=inXˉZˉS^{\otimes n} \bar X S^{\dagger \otimes n} = i^{n} \bar X \bar Z.

4. Controlled-NOT. A controlled-NOT with control cc and target tt maps Xc↦XcXtX_c \mapsto X_c X_t, Zt↦ZcZtZ_t \mapsto Z_c Z_t and fixes XtX_t and ZcZ_c. Applied qubit-wise to two blocks it maps Xf⊗I↦Xf⊗XfX_f \otimes I \mapsto X_f \otimes X_f, I⊗Zf↦Zf⊗ZfI \otimes Z_f \mapsto Z_f \otimes Z_f and fixes I⊗XfI \otimes X_f and Zf⊗IZ_f \otimes I, so the stabilizer group of the pair of blocks is preserved. The same rule applied to the logical operators gives Xˉ⊗I↦Xˉ⊗Xˉ\bar X \otimes I \mapsto \bar X \otimes \bar X and I⊗Zˉ↦Zˉ⊗ZˉI \otimes \bar Z \mapsto \bar Z \otimes \bar Z, the action of a logical controlled-NOT. This step holds for every CSS code.

The assumptions hold for triangular color codes. Faces are even and overlap evenly by the definition of the lattice, nn is odd and k=1k = 1. The lattice of a triangular code is a subgraph of a three-valent lattice on the sphere all of whose faces are even; a graph drawn on the sphere with all faces even is bipartite, so its vertices split into two classes with every edge joining different classes. Going around a face, the vertices alternate between the classes, so every face is split evenly.

Check on the Steane code. Label the qubits so that the faces are {1,3,5,7}\{1,3,5,7\}, {2,3,6,7}\{2,3,6,7\}, {4,5,6,7}\{4,5,6,7\}. The two classes are T={1,2,4,7}T = \{1, 2, 4, 7\} and Tc={3,5,6}T^{c} = \{3, 5, 6\}, each face having two qubits in each. Then ∣T∣−∣Tc∣=1\abs{T} - \abs{T^{c}} = 1, so SS on qubits 1,2,4,71,2,4,7 and S†S\dagg on 3,5,63,5,6 is the logical SS. All faces have 4 qubits and n=7≡3(mod4)n = 7 \equiv 3 \pmod 4, so by item 3 the uniform S⊗7S^{\otimes 7} is the logical S†S\dagg. The two statements agree: S⊗7=UT⋅Z3Z5Z6S^{\otimes 7} = U_T \cdot Z_3 Z_5 Z_6, and Z3Z5Z6Z_3 Z_5 Z_6 times the three ZZ checks is Z⊗7=ZˉZ^{\otimes 7} = \bar Z, while SZ=S†S Z = S\dagg.

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. H. Bombin, M. A. Martin-Delgado (2006). Topological Quantum Distillation. Physical Review Letters 97, 180501. doi:10.1103/PhysRevLett.97.180501arXiv:quant-ph/0605138
  2. Aleksander Kubica, Michael E. Beverland (2015). Universal transversal gates with color codes: A simplified approach. Physical Review A 91, 032330. doi:10.1103/PhysRevA.91.032330arXiv:1410.0069

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)

    Each step re-derived against theorem/color-code-transversal-clifford-gates (conjugation identities, the prefactor i^{|f cap T|}(-i)^{|f cap T^c|} = 1, logical action i^{|T|-|T^c|} Xbar Zbar, uniform-S case, transversal CNOT). Own numerical check on the Steane code with the stated faces: U_T with T = {1,2,4,7} acts as diag(1, i) (logical S) and S^{(x)7} as diag(1, -i) (logical S^dag) on the code space. Compared with Kubica and Beverland, arXiv:1410.0069, Sec. II (bipartite argument via the sphere lattice L*_0, R_2^k on T and R_2^{-k} on T^c with k = |T|-|T^c| mod 4, transversal H and CNOT) and Bombin and Martin-Delgado, arXiv:quant-ph/0605138 (transversal H and CNOT; K^{(x)n} needs plaquettes of size 4m and acts as K^dag when n = 3 mod 4).

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 cd1dc2a5a3dfa7b0. Source file knowledge/records/proof/color-code-transversal-clifford-gates.md in the content repository (readable there once it is public).