Skip to main content
KetQat

Appearance

Theorem · advanced

Transversal Clifford gates of two-dimensional color codes

On a triangular color code the Hadamard gate applied to every qubit is the logical Hadamard, the phase gate applied with alternating orientation on the two sublattices is the logical phase gate up to inversion, and the qubit-wise controlled-NOT between two blocks is the logical controlled-NOT.

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 CC be a code satisfying the assumptions, for instance a triangular two-dimensional color code. Then each of the following unitaries maps the code space to itself and acts on the encoded qubit as stated.

  1. Hadamard. H⊗nH^{\otimes n} acts as the logical Hadamard gate.
  2. Phase gate. UT=⨂v∈TSv⊗⨂v∈TcSv†U_T = \bigotimes_{v \in T} S_v \otimes \bigotimes_{v \in T^{c}} S_v\dagg acts as the logical SS gate if ∣T∣−∣Tc∣≡1(mod4)\abs{T} - \abs{T^{c}} \equiv 1 \pmod 4 and as the logical S†S\dagg if ∣T∣−∣Tc∣≡3(mod4)\abs{T} - \abs{T^{c}} \equiv 3 \pmod 4.
  3. Uniform phase gate. If every face has a number of qubits divisible by 4, then S⊗nS^{\otimes n} acts as the logical SS if n≡1(mod4)n \equiv 1 \pmod 4 and as the logical S†S\dagg if n≡3(mod4)n \equiv 3 \pmod 4.
  4. Controlled-NOT. For two copies of CC, the product of controlled-NOT gates from each qubit of the first block to the matching qubit of the second acts as the logical controlled-NOT.

Since HH, SS and the controlled-NOT generate the Clifford group, every logical Clifford gate on blocks of such a code is a product of transversal gates.

That color codes implement the Clifford group transversally is due to Bombin and Martin-Delgado; the alternating pattern for phase gates, which also works when faces are not divisible by 4, follows the presentation of Kubica and Beverland.

Holds when

  • A CSS code on an odd number nn of qubits with checks XfX_f and ZfZ_f for every ff in a family of even-size subsets ("faces") of the qubits, any two of which share an even number of qubits, encoding k=1k = 1 qubit with Xˉ=X⊗n\bar X = X^{\otimes n} and Zˉ=Z⊗n\bar Z = Z^{\otimes n}.
  • For the phase gate, the qubits are split into two classes TT and TcT^{c} so that every face has equally many qubits in each. Triangular color codes satisfy all of these conditions.

Proof

Proof of the transversal Clifford gates of two-dimensional color codesMachine-checked

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.

Related
Mentioned in
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. 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)

    Statement checked against its proof record (re-derived step by step) and an own numerical check on the Steane code (U_T with T = {1,2,4,7} acts as logical S; S^{(x)7} as logical S^dag, matching the mod-4 rules of items 2-3). Compared with Bombin and Martin-Delgado, arXiv:quant-ph/0605138 (transversal H and CNOT on triangular codes; K^{(x)n} requires plaquettes of size 4m and acts as K^dag for n = 3 mod 4) and Kubica and Beverland, arXiv:1410.0069, Sec. II (bipartition T, T^c with R_2^k on T and R_2^{-k} on T^c, k = |T| - |T^c| mod 4). H, S and CNOT generating the Clifford group is standard. Metadata matched Crossref.

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