Phase-free ZX diagrams are CSS codes (...or how to graphically grok the surface code)
Aleks Kissinger
TL;DR
This work establishes a precise correspondence between phase-free ZX diagrams and CSS stabiliser codes by showing that both are governed by the $\mathbb{F}_2$-linear subspaces, with phase-free ZX normal forms corresponding to code spaces generated by a subspace $S$ and its orthogonal $S^{\perp}$. It extends the translation to non-maximal CSS codes via encoder maps obtained by bending wires, enabling a diagrammatic encoding of logical qubits and their operators. The authors provide a fully graphical derivation of lattice surgery in the surface code, using the ZX embedding to relate physical operations to logical transformations. The results yield a complete ZX picture of CSS codes, including stabilisers, logical operators, and encoders, and point toward extensions to qudits and other stabiliser families, offering a practical, visual toolkit for fault-tolerant quantum computation.
Abstract
In this paper, we demonstrate a direct correspondence between phase-free ZX diagrams, a graphical notation for representing and manipulating a certain class of linear maps on qubits, and Calderbank-Shor-Steane (CSS) codes, a large family of quantum error correcting codes constructed from classical codes, including for example the Steane code, surface codes, and colour codes. The stabilisers of a CSS code have an especially nice structure arising from a pair of orthogonal $\mathbb F_2$-linear subspaces, or in the case of maximal CSS codes, a single subspace and its orthocomplement. On the other hand, phase-free ZX diagrams can always be efficiently reduced to a normal form given by the basis elements of an $\mathbb F_2$-linear subspace. Here, we will show that these two ways of describing a quantum state by an $\mathbb F_2$-linear subspace $S$ are in fact the same. Namely, the maximal CSS code generated by $S$ fixes the quantum state whose ZX normal form is also given by $S$. This insight gives us an immediate translation from stabilisers of a maximal CSS code into a ZX diagram describing its associated state. We show that we can extend this translation to stabilisers and logical operators of any (possibly non-maximal) CSS code by "bending wires". To demonstrate the utility of this translation, we give a simple picture of the surface code and a fully graphical derivation of the action of physical lattice surgery operations on the space of logical qubits, completing the ZX presentation of lattice surgery initiated by de Beudrap and Horsman.
