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 U 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ˉ and Zˉ, because these two
operators generate all operators on the encoded qubit.
Preliminaries.Xˉ=X⊗n commutes with every Zf because
∣f∣ is even, and XˉZˉ=(−1)nZˉXˉ=−ZˉXˉ because n is
odd. The single-qubit identities used are HXH=Z, SXS†=Y=iXZ,
S†XS=−Y=−iXZ, and SZS†=Z.
1. Hadamard.H⊗nXfH⊗n=Zf and
H⊗nZfH⊗n=Xf, so the set of generators is mapped to itself.
Also H⊗nXˉH⊗n=Zˉ and conversely, which is the
action of a logical Hadamard.
2. Alternating phase gate.UT commutes with every Zf. For an X check,
where the last step uses that Pauli operators on different qubits commute, so
∏v∈fXvZv=XfZf. By assumption
∣f∩T∣=∣f∩Tc∣, so the prefactor is
(i⋅(−i))∣f∩T∣=1 and UTXfUT†=XfZf, a product of
generators. Hence UT preserves the stabilizer group. On the logical operators,
UTZˉUT†=Zˉ and
UTXˉUT†=i∣T∣(−i)∣Tc∣X⊗nZ⊗n=i∣T∣−∣Tc∣XˉZˉ.
The exponent is odd because n=∣T∣+∣Tc∣ is odd. A logical S gate
maps Xˉ↦iXˉZˉ and a logical S† maps
Xˉ↦−iXˉZˉ; both fix Zˉ. So UT is the logical S
when ∣T∣−∣Tc∣≡1(mod4) and the logical S† when it is
≡3(mod4).
3. Uniform phase gate. The same computation with T the set of all qubits
gives S⊗nXfS†⊗n=i∣f∣XfZf, which is
XfZf exactly when ∣f∣≡0(mod4), and
S⊗nXˉS†⊗n=inXˉZˉ.
4. Controlled-NOT. A controlled-NOT with control c and target t maps
Xc↦XcXt, Zt↦ZcZt and fixes Xt and Zc. Applied
qubit-wise to two blocks it maps Xf⊗I↦Xf⊗Xf,
I⊗Zf↦Zf⊗Zf and fixes I⊗Xf and Zf⊗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ˉ and
I⊗Zˉ↦Zˉ⊗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, n is odd and k=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}, {2,3,6,7}, {4,5,6,7}. The two classes are
T={1,2,4,7} and Tc={3,5,6}, each face having two qubits in
each. Then ∣T∣−∣Tc∣=1, so S on qubits 1,2,4,7 and S† on
3,5,6 is the logical S. All faces have 4 qubits and n=7≡3(mod4),
so by item 3 the uniform S⊗7 is the logical S†. The two statements
agree: S⊗7=UT⋅Z3Z5Z6, and Z3Z5Z6 times the three
Z checks is Z⊗7=Zˉ, while SZ=S†.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
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
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
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).