betaFeedback

WorksPhysics and Astronomy

Materialised symmetries of 2D translationally invariant codes

Abstract

There has been significant recent interest in near-term qLDPC codes as high-performance alternatives to surface and color codes. One such class of codes is 2-dimensional translationally invariant (TI) codes, such as bivariate bicycle codes, which share similar properties to topological codes. Fundamental objects in the study of such codes are the materialised symmetries, which can be used for the construction of matching-based decoders. These decoders generalise the minimum-weight perfect matching decoder for toric codes and provide similar asymptotic performance guarantees that heuristic decoders such as BP and its variants lack. Despite this, the mathematical structure of symmetries along with their properties under translation and restriction to finite-sized lattices has not been well-studied. We describe a decomposition of symmetry spaces of 2D CSS TI codes on infinite lattices into translation-invariant subspaces which allow us to write an explicit basis of symmetries in a plane-wave-like form. We then describe how to adapt this infinite lattice basis so that any corresponding rectangular periodic lattice basis can be obtained by restriction to basis elements compatible with the periodic boundaries. This allows us to describe how the symmetry space varies with different rectangular dimensions. We illustrate via examples that it is often straightforward in practice to determine a basis of symmetries on twisted boundaries as well, without needing to recompute the decomposition. We comment on the applications of this framework to matching-based decoders and provide examples of symmetries of such codes as the gross code.

Introduction

Quantum error correction has provided a route to suppressing noise in quantum computers beyond the limits of the hardware [1, 2, 3, 4]. Topological codes, particularly those in 2D, have proven a popular choice of error correcting code due to their modest physical demands, especially their sparse connectivity [5, 6]. Such codes are understood to have tradeoffs between locality and performance [7, 8], and thus recent interest has shifted from traditional nearest-neighbour-connected 2D codes, such as the surface and color codes [9, 10], to longer-range codes in the form of bivariate bicycle (BB) codes and tile codes [11, 12, 13, 14, 15, 16]. These families offer codes implementable in near-term quantum computers with improved parameters and provide an intermediary between traditional 2D codes and asymptotically-good qLDPC codes. Although not local in a nearest-neighbour sense, these codes can be thought of as 2D topological when placed in a family of growing lattices [17, 18, 19] and are in addition translationally-invariant (TI). Leveraging topological and TI algebraic machinery to study these codes has led to fault-tolerant gate constructions [20, 21, 22], to architecture designs for platforms such as neutral atoms [23, 24] and superconducting qubits [25, 26, 27, 28], and to decoders [29, 30].

Studies of the structure of topological codes has motivated interest in materialised symmetries [5, 31] and the closely related concept of metachecks [32], where groups of stabilizer generators multiply to give the identity. Materialized symmetries lead to matchable decoding sub-problems, whose solutions are combined to form a decoding [31, 33, 34, 35, 36]. These decoders are of interest as they have provable thresholds and thus can have arbitrarily high error suppression on sufficiently large lattices [30, 37]. This is in contrast to heuristic decoders such as belief propagation (BP) which may hit error floors at low physical error rates. Materialized symmetries are also relevant in decoupling 2D topological phases [38, 39] and designing planar boundaries [15] [40].

Motivated by the rich translational structure of materialized symmetries in quantum error correcting codes of interest, in this paper we explore this structure through the lens of Haah’s formalism for describing 2D CSS TI codes [17] on an infinite lattice. In this formalism, the checks of the code are described by a group algebra over the lattice, and translation corresponds to multiplication. We first highlight some key translational properties of symmetries, particularly their components closed under translation, with a motivating example in Section II and relate it to the concept of anyon-symmetry duality. We cover necessary background in Section III, in particular formally describing anyon-symmetry duality, and then in Section IV describe a decomposition of the space of symmetries into subspaces closed under translation by leveraging anyon-symmetry duality, and obtain an explicit basis for each subspace. Each subspace corresponds to coordinates in some extension field of F2\mathbb{F}_2, and these coordinates describe the horizontal/vertical frequencies of their corresponding symmetries, which in the simplest cases resemble plane waves. In § 1.4, we describe how to use infinite-lattice symmetries to compute a basis of symmetries after compactifying to any periodic rectangular-lattice configuration. We find that after appropriately adapting the infinite-lattice basis for each subspace, we can efficiently determine finite-lattice symmetries and explicitly describe how the symmetry space varies with boundary dimensions. We also discuss how to use these methods to analyse the case of twisted boundary conditions for less complex decompositions.

Motivating example: 2D Color Code

Let us first consider the motivating example of the 2D hexagonal color code, which we will set on an infinite lattice. We pick this example for the relative simplicity of its materialized symmetries, which nevertheless display interesting patterns on the 2D lattice that are not fully described by standard approaches such as Gaussian elimination. These materialized symmetries and related metachecks are well-known for their application in matching-based decoding [33, 35, 36]. We will also informally introduce some preliminaries relevant to the example such as anyon-symmetry duality, starting with the anyons of the color code and seeing how we can construct metachecks from these.

For our purposes, anyons are a classification of syndromes such that two syndromes describe the same anyon if we can deform one into the other via some finite-weight Pauli operator. In the color code, each violated c-colored X check (with c ∈{r,g,b}\in\{\mathrm{r},\mathrm{g},\mathrm{b}\}) hosts an anyon, named cz. Analogously, violated Z checks host cx anyons. We can also fuse anyons; two anyons a and b fuse to give c if some application of finite-weight Pauli operators converts the former pair into the latter. For example, a single Pauli X error converts a pair of adjacent rx and gx anyons into a bx anyon; indeed c1x×c2x=c3xc_1x \times c_2x = c_3x for distinct c1c_1, c2c_2, c3c_3 (and where ×\times represents fusion). A materialised symmetry is an assignment of binary values to anyons that respects the fusion structure. For example, if we assign rx →1\to1 and gx →1\to1, then we must assign 1+1=01 + 1 = 0 to bx = rx ×\times gx. Symmetries describe conservation rules; the total parity of all anyons assigned 1 by a symmetry, within a valid syndrome resulting from finite-weight errors, is even. The above example, which we call the rg Z symmetry (as the violated checks have Pauli label Z), says that the total number of rx and gx anyons is always 0 (mod 2). We analogously have gb and br Z symmetries. We can add symmetries by adding the corresponding assignments pointwise (mod 2); for example the rg and gb Z symmetries add to give to the br Z symmetry.

We can now use these symmetries to construct metachecks, patterns of stabiliser checks that multiply to the identity; these tell us about redundancies between stabiliser checks. In this work, we use the term (materialised) symmetry to describe the objects dual to anyons, and metachecks to refer to subsets of checks that multiply to the identity. Looking at the rg Z symmetry, for example, we know that any error must create rx and gx anyons in pairs. Consider a pattern consisting of all stabilisers whose violations are rx/gx anyons, i.e. the red and green Z checks. Any X error will commute with this pattern due to this corresponding conservation rule (explicitly, it violates an even number of checks in the pattern), and thus the pattern must be a metacheck. Indeed, every symmetry gives a unique metacheck and vice versa, so we regard the two as equivalent. We show the metachecks constructed from the rg, gb, and br Z symmetries in Figure 1.

Figure 1. The rgrg, gbgb, and brbr X or Z symmetries of the hexagonal color code. The arrow is a translation that cycles between symmetries.

A standard way to construct metachecks is as follows: viewing the group of anyons as a vector space with addition corresponding to fusion, we compute a basis of anyons (e.g. {rx, gx}). We can then compute the dual basis of the symmetries: for each basis anyon a, define the dual basis element to assign a to 1 and all other basis anyons to 0. We then acquire a basis of metachecks by including exactly the checks whose violations correspond to anyons assigned 1 (i.e., red and green Z plaquettes for symmetries dual to rx and gx anyons).

What this method does not generally provide, however, is insight into the translational structure of these metachecks. For instance, we can observe that there exists a translation which cycles between the three metachecks of each Pauli label (Figure 1). This suggests a translational periodicity of 3 and thus tells us that when introducing periodic boundary conditions, we need these boundary lengths to be multiples of 3 in order to support these metachecks. As the dimension of the space of metachecks is proportional to the logical dimension; it is very much necessary that the color code is placed on such suitable boundary conditions. We would thus like to explore the symmetries of 2D codes, not just considering the pointwise addition but also the translational data via a multiplication operation. We will decompose the symmetry space into ‘components’; each component is a subspace of symmetries closed under translation such that the entire symmetry space is a direct sum of these components. Loosely speaking, we can think of these components as the frequencies/periodicities that make up an arbitrary symmetry/metacheck. In the color code, there is only one component of X (or Z) symmetries.

Background

In this section, we briefly describe the chain complex formulation of CSS codes, and the additional module structure which the CSS chain complex is equipped with when considering TI codes on a square lattice. We then introduce 2D TI codes in this framework, along with key concepts such as anyons and metachecks/symmetries, which we show to be dual to each other.

CSS codes as chain complexes

A chain complex is a sequence {Cn}\{C_n\} of objects and maps ∂n:Cn→Cn−1\partial_n : C_n \to C_{n-1} called differentials such that ∂n∂n+1=0\partial_{n}\partial_{n+1} = 0. Typically, each CnC_n will be a F2\mathbb{F}_2-vector space and the differentials will be F2\mathbb{F}_2-linear maps. Of interest are length-2 complexes [41]:

C2→∂2C1→∂1C0(1)C_2 \xrightarrow{\partial_2} C_1 \xrightarrow{\partial_1} C_0 \tag*{(1)}

which describe CSS codes [3, 4] after selecting bases of C2C_2, C1C_1, and C0C_0 to represent the X checks, qubits, and Z checks respectively. Here, ∂2\partial_2 takes an X stabiliser to its support in qubits and is represented by the transposed X parity check matrix. Also, ∂1\partial_1 takes the support of an X operator to its Z syndrome, and is represented by the Z parity check matrix. In C1C_1, the X logical operators have no Z syndrome and are thus given as ker⁡∂1\ker\partial_1. When quotiented by the X stabilisers (as their qubit supports) im⁡∂2\operatorname{im}\partial_2 we get the homology H1H_1 at C1C_1 representing the X logical classes. We can also construct the dual complex:

C0→d0C1→d1C2(2)C^0 \xrightarrow{d^0} C^1 \xrightarrow{d^1} C^2 \tag*{(2)}

where d0=∂1Td^0 = \partial_1^{T} and d1=∂2Td^1 = \partial_2^{T}. This is the Z/X flipped counterpart of the original CSS chain complex and takes Z stabilisers to qubits, and qubits to their X syndromes.

2D translationally invariant codes

We briefly review CSS codes on an infinite 2D square lattice, using Haah’s Laurent polynomial formalism [17]. By replacing periodic boundaries with the infinite lattice, we can explore properties that are shared between families of codes across different lattices, particularly anyons and symmetries.

The sites of this lattice are labelled by the group Z2\mathbb{Z}^2, we write the site at co-ordinates (i,j)(i,j) as xiyjx^i y^j; as a group action, these elements describe translations. If we use the elements of Z2\mathbb{Z}^2 to label our checks or qubits, then they form a basis spanning the Laurent polynomial ring R:=F2[x±1,y±1]R := \mathbb{F}_2[x^{\pm1}, y^{\pm1}]. This ring allows us to describe any finite set of co-ordinates in Z2\mathbb{Z}^2. We will consider a setup with two qubits on each site, such that C1=R2C_1 = R^2. Although one can construct examples with more qubits per site, the vast majority of 2D TI codes of interest (e.g., BB codes) fall under this construction. We will demand that all translations of a stabiliser are themselves stabilisers, a condition called translational-invariance. Suppose there is one type of X check, and all X checks are translations of this one type. We may choose to label one such check as 1, and then its (i,j)(i,j)-translations as xiyjx^i y^j. Under this labelling C2=RC_2 = R, and ∂2\partial_2 is not only F2\mathbb{F}_2-linear but RR-linear, that is ∂2(xiyjs)=xiyj∂2(s)\partial_2(x^i y^j s) = x^i y^j\partial_2(s). Similarly, setting one type of Z check we get that C0=RC_0 = R and ∂1\partial_1 is RR-linear. We then have that the CSS chain complex is a complex of RR-modules.

We will additionally demand that the CSS complex is exact at C1C_1, which is to say that H1=0H_1 = 0 (this will ensure that we have a growing distance when compactifying to finite lattices). This then forces the complex to take the following form:

R→[AB]R2→[ B  A ]R(3)R \xrightarrow{\begin{bmatrix} A \\ B \end{bmatrix}} R^2 \xrightarrow{[\,B\ \ A\,]} R \tag*{(3)}

where A,B∈RA,B \in R are Laurent polynomials satisfying gcd⁡(A,B)=1\gcd(A,B)=1 [16, 18]. Swapping X and Z, we get:

R→[B‾A‾]R2→[ A‾ B‾ ]R(4)R \xrightarrow{\begin{bmatrix} \overline{B} \\ \overline{A} \end{bmatrix}} R^2 \xrightarrow{[\,\overline{A}\ \overline{B}\,]} R \tag*{(4)}

where xiyj‾=x−iy−j\overline{x^i y^j}=x^{-i}y^{-j}. We can ‘compactify’ this code to periodic code boundaries by replacing RR with R/bR/\mathfrak{b} where b=(xℓ−1,ym−1)\mathfrak{b}=(x^\ell-1,y^m-1) describes a rectangular torus with dimensions ℓ×m\ell\times m. More generally, we might have b=(xℓ−1,xmyn−1)\mathfrak{b}=(x^\ell-1,x^m y^n-1) describing a twisted torus occupying a parallelogram with corners (0,0),(ℓ,0),(m,n)(0,0),(\ell,0),(m,n), and (m+ℓ,n)(m+\ell,n).

Anyons and symmetries

We will now review the dual notions of anyons and symmetries in the context of Haah’s formalism. In our infinite lattice setting, an anyon refers to any syndrome pattern that can be produced by an infinite-support Pauli operator [17]; for all codes we consider, this is simply all syndrome patterns. Let us start by considering Z check syndrome patterns, which we call m-anyons. We can classify these m-anyons into ‘sectors’; two m-anyons share a sector if we can turn one into the other by some finite-support X operator. We can obtain the space of mm-anyon sectors by quotienting out the space of Z syndromes C0=RC_0 = R by all possible syndromes created by a finite-support X operator, im⁡∂1=(A,B)\operatorname{im}\partial_1 = (A,B) to get R/(A,B)R/(A,B) [17, 18]. Analogously, X syndrome patterns or ee-anyons are classified by R/(Aˉ,Bˉ)R/(\bar{A},\bar{B}).

A metacheck is a pattern of stabiliser checks which multiply to the identity. We call such a pattern of Z checks an mm-metacheck and its X counterpart an ee-metacheck. We can describe the space of finite-support or local mm-metachecks with ker⁡d0\ker d^0 (in our construction, d0d^0 is injective so there are no local metachecks), however as RR only supports finite collections of lattice sites, we need to extend it to consider infinite-support or global metachecks. To this end, we will need to describe the dual M∗M^* of an RR-module MM.

Definition III.1. Given an RR-module MM (with RR a Laurent-polynomial ring), the dual of MM, denoted M∗M^*, is the F2\mathbb{F}_2-vector space dual of MM equipped with the RR-multiplication operation (rϕ)(m)=ϕ(rˉm)(r\phi)(m) = \phi(\bar{r}m) for r∈Rr \in R, ϕ∈M∗\phi\in M^*, and m∈Mm \in M.

In particular, identifying xx and yy with their F2\mathbb{F}_2-vector space duals (the dual of xx being the function taking xx to 1 and all other monomials to 0), we can think of R∗R^* as containing RR; while RR only permits finite sums of monomials, R∗R^* allows any infinite series of monomials as we can map as many monomials to 1 as we like. By replacing RR with R∗R^* in the CSS chain complex, we can then write the space of global mm-metachecks as ker⁡d~0\ker\widetilde{d}^0 where

d~0=[BˉAˉ]\widetilde{d}^0 = \begin{bmatrix} \bar{B} & \bar{A} \end{bmatrix}

is represented by the same matrix as d0d^0 but acts on R∗R^* instead of RR. Analogously, we can describe the space of global ee-metachecks as ker⁡∂~2\ker\widetilde{\partial}_2. We now state a result connecting metachecks to anyons:

Proposition III.2 (Anyon/metacheck duality). The e/me/m-anyons are dual to the e/me/m-metachecks, that is:

ker⁡d~0≅(R/(A,B))∗\ker\widetilde{d}^0 \cong(R/(A,B))^*
ker⁡∂~2≅(R/(Aˉ,Bˉ))∗\ker\widetilde{\partial}_2 \cong(R/(\bar{A},\bar{B}))^*

Proof. See Appendix A.1

As discussed in the motivating example, this picture allows us to think of metachecks as anyon conservation rules, a context in which they are often referred to alternatively as symmetries. We can also think of metachecks as stabiliser patterns following a consistency rule enforced by the anyon structure; if a metacheck has odd overlap with some syndrome pattern, then it must have odd overlap with all syndrome patterns belonging to the same anyon sector and vice versa. As the anyon structure informs the metacheck structure, once we have computed the former the latter follows; a straightforward way to obtain a basis of metachecks is to first compute a basis of anyons and then take the dual. The anyon basis, as demonstrated in recent works [18], can be readily computed by taking the monomials irreducible by a Gröbner basis of (A,B)(A,B), although such a basis does not generally provide insight into the translational structure of metachecks. We therefore take a different approach, outlined below.

Symmetries on the infinite lattice

Overview of the procedure

We will in this section consider symmetries on the infinite lattice. Although these symmetries have infinite support, we will see that upon decomposing the symmetry space into components closed under translation, each component will become ‘local’ under a change of basis and thus admit a compact description.

First, we solve the system of equations A=B=0A = B = 0 as its solutions label the components of the decomposition. The solutions may fall in field extensions of F2\mathbb{F}_2, but there is some sufficiently large finite field K\mathbb{K} that contains all such solutions. Upon extending to this finite field to get what we informally call K\mathbb{K}-anyons (as opposed to the original F2\mathbb{F}_2-anyons), we may decompose our anyon space into a direct sum of components, each of which is labelled by some point (x=α,y=β)(x = \alpha,y = \beta) that is a common root of AA and BB. These points organise into orbits of Galois conjugates, analogous to complex conjugate pairs when solving systems of real polynomials. We then take the dual of each component, to get a similar decomposition of the K\mathbb{K}-symmetry space. We then apply a map called the field trace to return to F2\mathbb{F}_2-symmetries, upon which components within an orbit collapse to a single component. We can thus also associate each component on the F2\mathbb{F}_2-symmetry space with an orbit; the component will describe a subspace closed under translation that is irreducible in the sense that it cannot be further decomposed. The points composing the associated orbit as well as the local structure of the component at these points will allow us to determine properties of the subspace such as translational periodicity.

Decomposing the symmetry space

We will focus on mm-symmetries, which we will for convenience simply refer to as symmetries or metachecks. The procedure for computing ee-symmetries follows analogously.

As we have seen, the mm-symmetries are associated with elements of the ring R/(A,B)R/(A,B). We will from here onwards define:

I=(A,B)⊆R(5)I = (A,B) \subseteq R \tag*{(5)}

so that the symmetries are R/IR/I. In this ring, polynomials AA and BB are identified with zero. Consider, therefore, the system of equations A(x,y)=B(x,y)=0A(x,y) = B(x,y) = 0. There exists some finite field K⊇F2\mathbb{K} \supseteq\mathbb{F}_2 in which all solutions lie. As we are working in the Laurent polynomial ring where xx and yy are invertible, we ignore solutions where x=0x=0 or y=0y=0. Let us denote the set of remaining solutions by Z\mathcal{Z}. Under our assumption that the CSS complex is exact at C1C_1, there will be finitely many such solutions. After extending RR by K\mathbb{K} to get R′=K[x,y,x−1,y−1]⊇RR'=\mathbb{K}[x,y,x^{-1},y^{-1}]\supseteq R, our anyon space extends to R′/JR'/J, where J=IR′:={xr∣x∈I,r∈R′}J=IR':=\{xr\mid x\in I,r\in R'\} is the extension ideal of II. We informally call this space the K\mathbb{K}-anyons. The ideal JJ admits a primary decomposition:

J=⋂(α,β)∈ZJ(α,β)(6)J=\bigcap_{(\alpha,\beta)\in\mathcal{Z}}J_{(\alpha,\beta)} \tag*{(6)}

with a unique ideal J(α,β)J_{(\alpha,\beta)} associated to each point of Z\mathcal{Z} such that J(α,β)=(x−α,y−β)\sqrt{J_{(\alpha,\beta)}}=(x-\alpha,y-\beta) (we define Q:={r∈R∣rn∈Q for some n∈Z≥0}\sqrt{Q}:=\{r\in R\mid r^n\in Q\text{ for some }n\in\mathbb{Z}_{\geq0}\}). This leads to the following decomposition of the K\mathbb{K}-anyon space:

Proposition IV.1 (Chinese remainder theorem decomposition [42]).

R′/J≅⨁(α,β)∈ZR′/J(α,β)(7)R'/J\cong\bigoplus_{(\alpha,\beta)\in\mathcal{Z}}R'/J_{(\alpha,\beta)} \tag*{(7)}

Computing such a decomposition is a standard task in computational commutative algebra. Importantly, each component R′/J(α,β)R'/J_{(\alpha,\beta)} of R′/JR'/J is associated with some point in Z\mathcal{Z}, and can be thought of as describing the local neighbourhood of R′/JR'/J at this point. When

J(α,β)≠(x−α,y−β)J_{(\alpha,\beta)}\ne(x-\alpha,y-\beta), we say that (α,β)(\alpha,\beta) is a fat point (Figure 2), corresponding to a root with non-trivial multiplicity. We will from now onwards, when describing R′/J(α,β)R'/J_{(\alpha,\beta)} centre our coordinates at the relevant point and write its elements in terms of u=x−αu=x-\alpha and v=y−βv=y-\beta instead of xx and yy. Note that each component is closed under translation by virtue of being an R′R'-module. Something that will become relevant later when returning to F2\mathbb{F}_2 is that the points of Z\mathcal{Z} organise themselves in orbits of the form {(α,β),(α2,β2),(α4,β4),…}\{(\alpha,\beta),(\alpha^2,\beta^2),(\alpha^4,\beta^4),\ldots\}. These are the finite field analogue of complex conjugate pairs from solving systems of real polynomials.

Schematic illustration of the decomposition of $R'/J$

Figure 2. Schematic illustration of the decomposition of R′/JR'/J. Each component corresponds to polynomial functions at a point (αi,βi)(\alpha_i,\beta_i), but fat points (i=2,3i=2,3) include additional structure in their neighbourhood. The points occur at the intersection of A=0A=0 (black) and B=0B=0 (blue).

Definition IV.2 (Galois orbits of roots). An orbit of Z\mathcal{Z} is a length-nn sequence of solutions in Z\mathcal{Z} taking the form (αi,βi)i∈Zn(\alpha_i,\beta_i)_{i\in\mathbb{Z}_n} where αi+1=αi2\alpha_{i+1}=\alpha_i^2 and βi+1=βi2\beta_{i+1}=\beta_i^2. Z\mathcal{Z} can be partitioned into finitely many orbits.

The smallest field in which each orbit O\mathcal{O} can be embedded is F2∣O∣\mathbb{F}_{2^{|\mathcal{O}|}}. We can now make the move from K\mathbb{K}-anyons to K\mathbb{K}-symmetries by taking the dual (the space of K\mathbb{K}-symmetries is then (R′/J)∗(R'/J)^*, where ∗* denotes the K\mathbb{K}-vector space rather than F2\mathbb{F}_2-vector space dual), and doing so preserves the decomposition by taking K\mathbb{K}-anyon components to K\mathbb{K}-symmetry components.

Proposition IV.3. (R′/J)∗≅⨁(α,β)∈Z(R′/J(α,β))∗(R'/J)^*\cong\bigoplus_{(\alpha,\beta)\in\mathcal{Z}}(R'/J_{(\alpha,\beta)})^*

Proof. See Appendix A2.

If we have computed a basis of each K\mathbb{K}-anyon component, then its dual is a basis of the corresponding K\mathbb{K}-symmetry component. We will now look to return to the space of F2\mathbb{F}_2-symmetries via a F2\mathbb{F}_2-linear map that takes an F2\mathbb{F}_2-vector space basis (F2\mathbb{F}_2-basis) of K\mathbb{K}-symmetries onto a basis of F2\mathbb{F}_2-symmetries in a way that takes components to components. We will thus need to first turn our K\mathbb{K}-vector space basis (K\mathbb{K}-basis) into a F2\mathbb{F}_2-basis of the same space. This is achieved by taking the setwise product of a F2\mathbb{F}_2-basis {ai}\{a_i\} with the K\mathbb{K}-basis {bi}\{b_i\} of our K\mathbb{K}-symmetries to get {aibj}\{a_i b_j\}. Before we describe this map, let us first define the field trace:

Definition IV.4. Given a finite field K⊇F2\mathbb{K}\supseteq\mathbb{F}_2 and some α∈K\alpha\in\mathbb{K}, the field trace Tr⁡(α)\operatorname{Tr}(\alpha) is a F2\mathbb{F}_2-linear map given by the sum over an orbit:

Tr⁡(α)=α+α2+α4+⋯+α2n−1(8)\operatorname{Tr}(\alpha)=\alpha+\alpha^2+\alpha^4+\cdots+\alpha^{2^{n-1}} \tag*{(8)}

where K\mathbb{K} has size 2n2^n. We overload notation to define the trace of a K\mathbb{K}-symmetry as follows:

(Tr⁡(ϕ))(r)=Tr⁡(ϕ(r))(\operatorname{Tr}(\phi))(r)=\operatorname{Tr}(\phi(r))

which is to say that we take the trace pointwise.

We can now describe the map returning us to F2\mathbb{F}_2 symmetries. Given a symmetry ϕ\phi, we take its field trace and then restrict it to R/IR/I via the natural embedding of R/IR/I within R′/JR'/J (concretely, r+Ir+I is embedded as r+Jr+J). We claim that this map takes K\mathbb{K}-symmetry components belonging to the same orbit onto the same F2\mathbb{F}_2-symmetries and thus we only need to apply it to one component per orbit.

Theorem IV.5. Let the image of a K-symmetry component (R′/J(α,β))∗(R'/J_{(\alpha,\beta)})^* under the F2\mathbb{F}_2-linear map s↦Tr⁡(s)∘ιs \mapsto\operatorname{Tr}(s)\circ\iota (where ι\iota is the natural embedding of R/IR/I into R′/JR'/J) be denoted S(α,β)S_{(\alpha,\beta)}. Then S(α,β)=S(α′,β′)S_{(\alpha,\beta)} = S_{(\alpha',\beta')} for (α,β)(\alpha,\beta) and (α′,β′)(\alpha',\beta') belonging to the same orbit and we can label these SOS_O by orbits O∈OO\in\mathcal{O}. Here, SOS_O is an RR-module (it is closed under translation) and

(R/I)∗≅⨁O∈OSO.(9)(R/I)^* \cong\bigoplus_{O\in\mathcal{O}} S_O. \tag*{(9)}

Proof. See Appendix A 3.

This theorem concludes our procedure: compute a decomposition of K-anyons, take duals to get a decomposition of K-symmetries, and then apply the above map to get a decomposition of F2\mathbb{F}_2-symmetries. Practically, we will want to choose the field K component-by-component, to be the smallest field F2∣O∣\mathbb{F}_{2^{|O|}} containing the orbit associated with each component. This ensures that when taking the trace-restriction of the F2\mathbb{F}_2-basis of K-symmetries to get a spanning set of F2\mathbb{F}_2-symmetries, we will not get any redundant elements and it will be a basis. To find each orbit in its smallest field, we take the primary decomposition {Pi,Ii}\{P_i,I_i\} of II (where IiI_i are the primary components and Pi=IiP_i=\sqrt{I_i}). Each pair is associated with some orbit, and the smallest field containing that orbit is F2di\mathbb{F}_{2^{d_i}} where di=dim⁡F2(R/Pi)d_i=\dim_{\mathbb{F}_2}(R/P_i). Instead of a single R′=K[x±1,y±1]R'=\mathbb{K}[x^{\pm1},y^{\pm1}], we will select Ri′=F2di[x±1,y±1]R'_i=\mathbb{F}_{2^{d_i}}[x^{\pm1},y^{\pm1}] for each orbit, whose F2di\mathbb{F}_{2^{d_i}}-symmetries can then be computed by decomposing (Ri′/Ji)∗(R'_i/J_i)^*, where Ji=IiRi′J_i=I_iR'_i.

Let us now illustrate this procedure with some examples.

Example: 2D hexagonal color code

We will begin with the motivating color code example of Section II, and will show how the observed translational structure is made apparent by this procedure.

By separating the two qubits at each lattice site by a (1/2,1/2)(1/2,1/2) shift, (Figure 3), we can implement the hexagonal color code on a square lattice with the polynomials A=1+x+xyA=1+x+xy, B=1+y+xyB=1+y+xy [43].

A patch of color code on a planar lattice

Figure 3. A patch of color code on a planar lattice, as described by the polynomials A=1+x+xyA=1+x+xy, B=1+y+xyB=1+y+xy. Note how each color of check lives along sets of diagonals (i,j)≡c(mod3)(i,j)\equiv c\pmod3 with c=0c=0 for red, c=1c=1 for green, and c=2c=2 for blue.

We first solve the system of equations A=B=0A=B=0. Taking A+B=x+y=0A+B=x+y=0, we have x=yx=y. Substituting this back into AA, we get x2+x+1=0x^2+x+1=0. This gives solutions (ω,ω)(\omega,\omega) and (ω2,ω2)(\omega^2,\omega^2), where ω\omega is a primitive element of F4\mathbb{F}_4 satisfying ω2+ω+1=0\omega^2+\omega+1=0. Note that these two points form a single orbit. Writing J=(x+y,1+x+x2)=(x+y,x+ω)∩(x+y,x+ω2)=(x+ω,y+ω)∩(x+ω2,y+ω2)J=(x+y,1+x+x^2)=(x+y,x+\omega)\cap(x+y,x+\omega^2)=(x+\omega,y+\omega)\cap(x+\omega^2,y+\omega^2), we see that none of the points are fat. As we only need to select a single orbit representative, we select (ω,ω)(\omega,\omega), with corresponding component R′/(u,v)≅F4R'/(u,v)\cong\mathbb{F}_4 (with u=x+ωu=x+\omega, v=y+ωv=y+\omega). Its sole basis element is 11, and thus a basis of the dual component of F4\mathbb{F}_4-symmetries is {δ1}\{\delta_1\} (being the map taking 1↦11\mapsto1 and all other monomials in uu and vv to 00). This F4\mathbb{F}_4-metacheck evaluates on xiyj=(u+ω)i(v+ω)jx^iy^j=(u+\omega)^i(v+\omega)^j as ωi+j\omega^{i+j}.

An F2\mathbb{F}_2-basis of F4\mathbb{F}_4 is {1,ω}\{1,\omega\} and thus we can write a F2\mathbb{F}_2-basis of F4\mathbb{F}_4-symmetries: {δ1,ωδ1}\{\delta_1,\omega\delta_1\}. We then take the field trace of this basis to obtain the following basis of the component S(ω,ω)S_{(\omega,\omega)} of F2\mathbb{F}_2-symmetries: {xiyj↦Tr⁡(ωi+j),xiyj↦Tr⁡(ωi+j+1)}\{x^iy^j\mapsto\operatorname{Tr}(\omega^{i+j}),x^iy^j\mapsto\operatorname{Tr}(\omega^{i+j+1})\}, forming a 2D space with three non-trivial elements {xiyj↦ωi+j+c∣c∈Z3}\{x^iy^j\mapsto\omega^{i+j+c}\mid c\in\mathbb{Z}_3\}. As there is only one orbit in Z\mathbb{Z}, this is the sole component of the F2\mathbb{F}_2-symmetry space. These three non-trivial elements correspond to our three colors of metacheck, and any unit translation (e.g. xiyj↦xi+1yjx^iy^j\mapsto x^{i+1}y^j) will cycle between these. As

Tr⁡(ωn)={0n=0(mod3)1otherwise\operatorname{Tr}(\omega^n)= \begin{cases} 0 & n=0\pmod3\\ 1 & \text{otherwise} \end{cases}

we can see that each metacheck is supported on two ‘colors’ of diagonal i+j=ci+j=c (Figure 3).

Example: gross code

The gross code [11] is described by polynomials A=1+x+y3/xA=1+x+y^3/x and B=1+y+x3/yB=1+y+x^3/y. The solutions of A=B=0A=B=0 form two orbits in F4\mathbb{F}_4; the first is generated by (ω,ω)(\omega,\omega) and the second is generated by (ω,ω2)(\omega,\omega^2) (we can think of this as a reflection of (ω,ω)(\omega,\omega) and indeed reflecting the previous example’s choice of color code polynomials in any axis changes its orbit to this). JJ decomposes into two ideals; J(ω,ω)J_{(\omega,\omega)} is (u,v)(u,v) with u=x+ωu=x+\omega, v=y+ωv=y+\omega. This is identical to that of the color code and produces the same metachecks. J(ω,ω2)J_{(\omega,\omega^2)} is (v3,u+ωv)(v^3,u+\omega v) with u=x+ωu=x+\omega, v=y+ω2v=y+\omega^2. We have a basis {1,v,v2}\{1,v,v^2\} of the corresponding component R′/J(ω,ω2)R'/J_{(\omega,\omega^2)} of F4\mathbb{F}_4-anyons which gives rise to the basis {δ1,δv+ωδu,δv2+ω2δu2}\{\delta_1,\delta_v+\omega\delta_u,\delta_{v^2}+\omega^2\delta_{u^2}\} of the component (R′/J(ω,ω2))∗(R'/J_{(\omega,\omega^2)})^* of F4\mathbb{F}_4-metachecks (the relation u+ωv=0u+\omega v=0 couples δu\delta_u and δv\delta_v, as well as δu2\delta_{u^2} and δv2\delta_{v^2} together). Changing from uu-vv coordinates to xx-yy coordinates, we have that δ1\delta_1 becomes xiyj↦ωi+2j=ωi−jx^iy^j\mapsto\omega^{i+2j}=\omega^{i-j}. We have that δv+ωδu\delta_v+\omega\delta_u becomes xiyj=(u+ω)i(v+ω)j↦jωi+2(j−1)+ωiω(i−1)+2j=ωi−j(i+ωj)x^iy^j=(u+\omega)^i(v+\omega)^j\mapsto j\omega^{i+2(j-1)}+\omega^i\omega^{(i-1)+2j}=\omega^{i-j}(i+\omega j), where we take the values of ii and jj modulo 2 on the right-hand side. Similarly, δv2+ω2δu2\delta_{v^2}+\omega^2\delta_{u^2} becomes ωi−j((i2)+ijω+(j2)ω2)\omega^{i-j}\left(\binom{i}{2}+ij\omega+\binom{j}{2}\omega^2\right). Ultimately, we get the following basis of F2\mathbb{F}_2-metachecks:

xiyj↦Tr⁡(cωi+j)xiyj↦Tr⁡(cωi−j)xiyj↦Tr⁡(cωi−j(i+ωj))xiyj↦Tr⁡(cωi−j((i2)+ijω+(j2)ω2))\begin{aligned} x^iy^j &\mapsto\operatorname{Tr}(c\omega^{i+j})\\ x^iy^j &\mapsto\operatorname{Tr}(c\omega^{i-j})\\ x^iy^j &\mapsto\operatorname{Tr}(c\omega^{i-j}(i+\omega j))\\ x^iy^j &\mapsto\operatorname{Tr}\left(c\omega^{i-j}\left(\binom{i}{2}+ij\omega+\binom{j}{2}\omega^2\right)\right) \end{aligned}

with c∈{1,ω}c\in\{1,\omega\}, giving an 8-dimensional space of metachecks on the infinite lattice. The KK-symmetries (e.g. ωi+j\omega^{i+j}) supply the shape of the metacheck, whereas the prefactor cc describes the linearly independent shifts of this shape. The first four symmetries are the color code symmetries (with ωi−j\omega^{i-j} being a reflection of ωi+j\omega^{i+j}). The next two basis metachecks have a factor i+ωji+\omega j which is periodic under horizontal/vertical translations of 2. Combined with the ωi−j\omega^{i-j} factor we see they are periodic under translations (2l,2m)(2l,2m) with l−m≡0(mod3)l-m\equiv0\pmod3. The next two basis metachecks are periodic under translations (4l,4m)(4l,4m) with l−m≡0(mod3)l-m\equiv0\pmod3. We can see that the smallest rectangular lattice hosting all metachecks is 12×1212\times12, and the standard 6×126\times12 gross code lattice does not support the last two basis metachecks.

Translational periods of symmetries

As illustrated in the gross code example, upon computing a basis of symmetries via the decomposition, we are then able to determine translations which act trivially on each basis element and thus determine a basis of translations which act trivially on the symmetry space, called a coarse-graining of the code family [17, 39]. Coarse-grainings are used to determine the scales at which 2D codes decouple in toric codes. To determine the periods of a symmetry, we determine the periods of the plane wave factor (e.g. ωi−j\omega^{i-j}) and the local structure factor (e.g. (i2)+ijω+(j2)ω2\binom{i}{2}+ij\omega+\binom{j}{2}\omega^2) and intersect the corresponding lattices.

Let us begin with the periods of the plane wave factor, αiβj\alpha^i\beta^j; if the orbit of (α,β)(\alpha,\beta) has length nn and ωℓ=α\omega^\ell=\alpha, ωm=β\omega^m=\beta for integers ℓ\ell and mm, where ω\omega is a primitive element of K\mathbb{K}, then the periods of the factor are given by the lattice {(i,j)∣ℓi+mj≡0(mod2n−1), for i,j∈Z}\{(i,j)\mid\ell i+mj\equiv0\pmod{2^n-1},\text{ for }i,j\in\mathbb{Z}\} (i.e., translations by these lattice vectors leave the factor unchanged).

Now, let us consider the local structure factor. It has the following form:

∑kα−akβ−bk(iak)(jbk).(10)\sum_k \alpha^{-a_k}\beta^{-b_k}\binom{i}{a_k}\binom{j}{b_k}. \tag*{(10)}

By finding horizontal and vertical periods of the (iak)\binom{i}{a_k} and (jbk)\binom{j}{b_k} terms respectively, we can then take the lowest common multiple of all horizontal and all vertical periods to get a rectangular period of the local structure factor. The period of (iak)\binom{i}{a_k} in ii is 2⌈log⁡2ak⌉+12^{\lceil\log_2 a_k\rceil+1} (this is a consequence of Lucas’ theorem [44] that (iak)=1\binom{i}{a_k}=1 exactly when i&ak=aki\mathbin{\&}a_k=a_k where ii and aka_k are written as bit-strings), and analogously for (jbk)\binom{j}{b_k} in jj. We thus have that the smallest rectangular period of the local structure factor is {(2⌈log⁡2ak⌉+1,0),(0,2⌈log⁡2bk⌉+1)}\{(2^{\lceil\log_2 a_k\rceil+1},0),(0,2^{\lceil\log_2 b_k\rceil+1})\}, which is a sub-lattice of the lattice of all periods.

Let us call the lattice of rectangular periods of the local structure factor L′L', and the lattice of all periods of the structure factor LL. L′L' is a sub-lattice of LL, but the two are not necessarily identical as LL may contain diagonal periods. Then, for any u∈Lu\in L but not in L′L', there exists rr such that 2ru∈L′2^r u\in L'. Let px=(2⌈log⁡2ak⌉+1,0)p_x=(2^{\lceil\log_2 a_k\rceil+1},0) and py=(0,2⌈log⁡2bk⌉+1)p_y=(0,2^{\lceil\log_2 b_k\rceil+1}). Then we can check whether (px+py)/2(p_x+p_y)/2 is a period. If it is, then we update the basis as (px,(px+py)/2)(p_x,(p_x+p_y)/2), now covering all uu such that 2u∈L′2u\in L'. We can repeat this; at any stage if our basis is (u,v)(u,v), we check whether (u+v)/2(u+v)/2 or v/2v/2 are periods and update the basis accordingly (we always keep pxp_x). On the nn-th iteration we will have covered all uu such that 2nu∈L′2^n u\in L', and upon termination we will have a basis of LL. Intersecting LL with the lattice of periods of the plane wave factor, we then have the lattice of periods of the symmetry space. In Table I, we illustrate the coarse-grainings of various codes.

Symmetries on periodic boundaries

As seen in the gross code example of Section IV D, our representation of the infinite-lattice metachecks provides insight into which metachecks are supported on some periodic lattice configuration, as well as the smallest lattice required to support all metachecks. In this section, we approach this systematically with the goal of identifying bases of metachecks on rectangular lattices. In particular, having precomputed an infinite lattice basis of metachecks, we would like to determine the rectangular-lattice basis of metachecks from a boundary configuration with minimal computation. As we will see, there are two parts of this problem: the first is determining which components of the decomposition ‘survive’ on the rectangular lattice (which is to say some nonzero subspace is supported), and the second is determining the surviving subspace of each such component. The idea is that

Code familyA,BA,B(α,β)(\alpha,\beta)K-syms.Gen. periodsC.G. periods
Toric code1+x1+x<br>1+y1+y(1,1)∈F2(1,1)\in\mathbb{F}_211(1,0),(0,1)(1,0),(0,1)(1,0)(1,0)<br>(0,1)(0,1)
BB5 code [45]1+x1+x<br>1+y+x2y21+y+ x^2y^2(1,ω)∈F4(1,\omega)\in\mathbb{F}_4ωj\omega^j(1,0),(0,3)(1,0),(0,3)(1,0)(1,0)<br>(0,3)(0,3)
Color code1+x+xy1+x+xy<br>1+y+xy1+y+xy(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4ωi+j\omega^{i+j}(1,−1),(1,2)(1,-1),(1,2)(3,0)(3,0)<br>(0,3)(0,3)
Gross code [11]1+x+y3/x1+x+y^3/x<br>1+y+x3/y1+y+x^3/y(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4ωi+j\omega^{i+j}<br>ωi−j\omega^{i-j}<br>ωi−j(i+ωj)\omega^{i-j}(i+\omega j)<br>ωi−j∑k=02(ik)(jk)ωk\omega^{i-j}\sum_{k=0}^{2}\binom{i}{k}\binom{j}{k}\omega^k$(1,-1),(1,2)<br><br>(1,1),(1,-2)<br><br>(2,2),(2,-4)<br><br>(4,4),(4,-8)$(12,0)(12,0)<br>(0,12)(0,12)
Two-gross [11]1+x+y3/x1+x+y^3/x<br>x3+y2+y7x^3+y^2+y^7(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4<br>(ω,ω19)∈F64:=F2[ω](p0(ω))(\omega,\omega^{19})\in\mathbb{F}_{64}:=\frac{\mathbb{F}_2[\omega]}{(p_0(\omega))}ωi+j\omega^{i+j}<br>ωi−j\omega^{i-j}<br>ωi−j(i+ωj)\omega^{i-j}(i+\omega j)<br>ωi+19j\omega^{i+19j}$(1,-1),(1,2)<br><br>(1,1),(1,-2)<br><br>(2,2),(2,-4)<br><br>(6,3),(7,-7)$(12,6)(12,6)<br>(30,−48)(30,-48)
BB code [11]1+x2+x71+x^2+x^7<br>1+y+x9/y1+y+x^9/y(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4<br>(ω,ω2)∈F32:=F2[ω](p3(ω))(\omega,\omega^2)\in\mathbb{F}_{32}:=\frac{\mathbb{F}_2[\omega]}{(p_3(\omega))}<br>(ω,ω7)∈F32:=F2[ω](p3(ω))(\omega,\omega^7)\in\mathbb{F}_{32}:=\frac{\mathbb{F}_2[\omega]}{(p_3(\omega))}ωi+j\omega^{i+j}<br>ωi−j\omega^{i-j}<br>ωi+2j\omega^{i+2j}<br>ωi+7j\omega^{i+7j}$(1,-1),(1,2)<br><br>(1,1),(1,-2)<br><br>(2,-1),(7,12)<br><br>(3,4),(4,-5)$(93,0)(93,0)<br>(0,93)(0,93)
Generalised T.C [18]1+x+y/x21+x+y/x^2<br>1+y+xy21+y+xy^2(ω,ω6)∈F16:=F2[ω](ω4+ω+1)(\omega,\omega^6)\in\mathbb{F}_{16}:=\frac{\mathbb{F}_2[\omega]}{(\omega^4+\omega+1)}<br>(ω,ω5)∈F8:=F2[ω](ω3+ω+1)(\omega,\omega^5)\in\mathbb{F}_8:=\frac{\mathbb{F}_2[\omega]}{(\omega^3+\omega+1)}ωi+6j\omega^{i+6j}<br>ωi+5j\omega^{i+5j}(3,2),(3,−3)(3,2),(3,-3)<br>(2,1),(1,−3)(2,1),(1,-3)(9,1)(9,1)<br>(3,12)(3,12)
Generalised T.C [18]1+x+1/(xy3)1+x+1/(xy^3)<br>1+y+1/y61+y+1/y^6(ω,ω66)∈F128:=F2[ω](p0(ω))(\omega,\omega^{66})\in\mathbb{F}_{128}:=\frac{\mathbb{F}_2[\omega]}{(p_0(\omega))}<br>(ω,ω52)∈F128:=F2[ω](ω7+ω4+1)(\omega,\omega^{52})\in\mathbb{F}_{128}:=\frac{\mathbb{F}_2[\omega]}{(\omega^7+\omega^4+1)}ωi+6j\omega^{i+6j}<br>ωi+5j\omega^{i+5j}(5,−2),(11,21)(5,-2),(11,21)<br>(6,−5),(11,12)(6,-5),(11,12)(127,0)(127,0)<br>(0,127)(0,127)
Generalised T.C [18]1+x+y/x31+x+y/x^3<br>1+y+x/y31+y+x/y^3(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4<br>(ω,ω)∈F8:=F2[ω](ω3+ω2+1)(\omega,\omega)\in\mathbb{F}_8:=\frac{\mathbb{F}_2[\omega]}{(\omega^3+\omega^2+1)}<br>(ω,ω16)∈F256:=F2[ω](p2(ω))(\omega,\omega^{16})\in\mathbb{F}_{256}:=\frac{\mathbb{F}_2[\omega]}{(p_2(\omega))}ωi−j\omega^{i-j}<br>ωi−j(i+ωj)\omega^{i-j}(i+\omega j)<br>ωi+j\omega^{i+j}<br>ωi+16j\omega^{i+16j}$(1,1),(1,-2)<br><br>(2,2),(2,-4)<br><br>(1,-1),(3,4)<br><br>(1,-16),(16,-1)$(102,−102)(102,-102)<br>(54,156)(54,156)

Table 1. Infinite-lattice symmetries of various 2D code families. We include the defining polynomials AA and BB, one component (α,β)(\alpha,\beta) from each orbit in the symmetry space decomposition, the K-basis of symmetries {bi}\{b_i\} (i.e., the image of xiyjx^iy^j under the symmetry map) which produces F2\mathbb{F}_2-symmetries {Tr⁡(cbi)∣c∈K}\{\operatorname{Tr}(cb_i)\mid c\in K\}, the generating lattice periods of each symmetry basis element, and the generating periods of the entire symmetry space for coarse-graining (C.G.). We construct larger fields as the univariate polynomial ring F2[x]\mathbb{F}_2[x] modulus some polynomial, wherein ω\omega is the image of xx. We define the following: p0(x)=(∑i=07ωi)−ω4p_0(x)=(\sum_{i=0}^{7}\omega^i)-\omega^4, p1(x)=x6+x4+x3+x+1p_1(x)=x^6+x^4+x^3+x+1, p2(x)=x8+x7+x5+x3+1p_2(x)=x^8+x^7+x^5+x^3+1, and p3(x)=x5+x4+x2+x+1p_3(x)=x^5+x^4+x^2+x+1.

we can think of the boundary ideal b=(xℓ−1,ym−1)\mathfrak{b}=(x^\ell-1,y^m-1) as having its own space of ‘b\mathfrak{b}-metachecks’ (R/b)∗(R/\mathfrak{b})^*. Our goal is then to compute the intersection of infinite-lattice and b\mathfrak{b}-metachecks, which will be the space of surviving metachecks.

First, let us explore the structure of b\mathbf{b}; given its simple form we expect the decomposition to be correspondingly simple. Let aa and bb be the largest powers of 2 dividing ℓ\ell and mm. Then given a point (α,β)(\alpha,\beta) satisfying αℓ−1=βm−1=0\alpha^\ell-1=\beta^m-1=0, the corresponding component of b\mathbf{b} is (ua,vb)(u^a,v^b). This is because we can write xℓ−1=(xℓ/a−1)ax^\ell-1=(x^{\ell/a}-1)^a; so the multiplicity of roots in xℓ−1x^\ell-1 is given by aa (analogously for bb). So a basis of K\mathbb{K}-symmetries of b\mathbf{b} is given by {δuivj∣0≤i<a,0≤j<b}\{\delta_{u^i v^j}\mid0\le i<a,0\le j<b\}. Let us call this space B\mathcal{B}.

This suggests the following procedure; for each point (α,β)∈Z(\alpha,\beta)\in\mathbb{Z} satisfying A=B=0A=B=0, we test that the point satisfies the boundary equations αℓ−1=βm−1=0\alpha^\ell-1=\beta^m-1=0. If the point satisfies the equations, then we intersect the corresponding component of K\mathbb{K}-symmetries with B\mathcal{B}. After repeating for every component/point, we can then convert back to F2\mathbb{F}_2-symmetries to get a decomposition of the symmetries on rectangular boundaries.

Example V.1 (Gross code symmetries). Consider the gross code on 6 × 12 rectangular boundaries. ω6−1=ω12−1=0\omega^6-1=\omega^{12}-1=0, so the (ω,ω)(\omega,\omega) component survives. Its basis is δ1\delta_1, which is unchanged by intersection with B=span⁡{δuiδvj∣0≤i<2,0≤j<4}\mathcal{B}=\operatorname{span}\{\delta_{u^i}\delta_{v^j}\mid0\le i<2,0\le j<4\}. In general, unless a surviving point is fat, its associated space of K\mathbb{K}-symmetries will be {δ1}\{\delta_1\}, fit in every box, and thus be unchanged on rectangular boundaries. The (ω,ω2)(\omega,\omega^2) component, however, has a basis element δu2+ωδu2\delta_{u^2}+\omega\delta_{u^2} which pokes outside the box formed by B\mathcal{B} (Figure 4). So the surviving subspace is spanned by the other two basis elements δ1\delta_1 and δv+ωδu\delta_v+\omega\delta_u. Thus, of our infinite-lattice basis of symmetries, all except for xiyj↦Tr⁡(cωi−j+(21)ijω+(22)ω2)x^i y^j\mapsto\operatorname{Tr}(c\omega^{i-j}+\binom{2}{1}ij\omega+\binom{2}{2}\omega^2) survive on the 6×126\times12 lattice.

Figure 4. Computing symmetries of the gross code on 6×126 \times12 boundaries. (Left) The (ω,ω)(\omega,\omega)-component of the gross code K-symmetries is spanned by {δ1}\{\delta_1\} (blue). This fits in any non-zero box. (Right) The (ω,ω2)(\omega,\omega^2)-component of the gross code K-symmetries is spanned by {δ1,δv+ωδu,δv2+ω2δu2}\{\delta_1,\delta_v+\omega\delta_u,\delta_{v^2}+\omega^2\delta_{u^2}\} (blue, green, and pink respectively). The pink basis element does not fit inside the box.

In the above example, the basis after intersecting with B\mathcal{B} is the subset of the infinite-lattice basis that lies in B\mathcal{B}. As in Figure 5, this is not generally true for an arbitrary basis. We can however adapt the basis of infinite-lattice K\mathbb{K}-symmetries within each component to make this true. To see this, consider the following ordering of basis elements of R∗R^*

Figure 5. Adapting a basis for rectangular boundaries. (Left) An example of a basis {u2v2+u3v2+u4v2,u2+u3v+u4v2}\{u^2v^2+u^3v^2+u^4v^2,u^2+u^3v+u^4v^2\} where neither basis element (highlighted in pink and blue respectively) survives intersection with B\mathcal{B}, but their sum does. (Right) An ‘adapted’ basis of the same subspace where upon intersection with B\mathcal{B}, the blue basis element survives and the pink does not. The blue basis element spans the subspace after intersection.

δ1<δu<δu2⋯<δv<δuv<⋯\delta_1<\delta_u<\delta_{u^2}\cdots<\delta_v<\delta_{uv}<\cdots

As it resembles the u<vu<v monomial order 1<u<u2⋯<v<uv<⋯1<u<u^2\cdots<v<uv<\cdots, we also call it the u<vu<v ordering. We can similarly conceive a v<uv<u ordering. Our goal is to ensure that the leading term of each basis element of our infinite-lattice K\mathbb{K}-symmetries under both orderings is distinct; that this is possible is a standard result about bases bi-adapted to two flags ([46], Theorem 2.1) (the flags in our instance are the sequences of nested subspaces induced by either ordering). First, we write our basis of K\mathbb{K}-symmetries as a matrix with the columns ordered u<vu<v. We then convert to row echelon form by Gaussian elimination, so that the leading terms of each basis element under u<vu<v are distinct. We reorder the columns under the v<uv<u ordering and again perform Gaussian elimination to put it in row echelon form. When doing this, however, if we have two rows sharing a leading term, we always pivot off the row whose leading term in the u<vu<v ordering is last. Pivoting in this way will ensure that the leading terms of each row under the u<vu<v ordering remain distinct.

What we need to precompute then is a bi-adapted basis of K\mathbb{K}-symmetries on the infinite lattice (to be precise, we do not need the whole basis as we ignore redundant components in the same orbit) as well as the corresponding basis of infinite-lattice F2\mathbb{F}_2-symmetries. We can then take any rectangular boundary configuration (ℓ,m)(\ell,m) and first, for each point (α,β)(\alpha,\beta) test it against the boundary equations. For points satisfying the equations, we then select the sub-basis that lies in B\mathcal{B}. The corresponding F2\mathbb{F}_2-symmetries then form a basis on the rectangular lattice. In Table II, we explicitly describe the symmetries of various examples from the literature. Although the procedure outlined above is specific to rectangular boundaries, we have in Table II codes on non-rectangular or twisted boundaries; in many cases, the components are either all trivial (in the sense that there are no fat points) or relatively simple, and thus we can easily determine how the symmetry space varies with different choices of twisted boundary. We can also determine the logical dimension or number of logical qubits of these codes, which is double the dimension of the symmetry space. Suppose for each (αi,βi)∈F2qi(\alpha_i,\beta_i)\in\mathbb{F}_{2^{q_i}} (with one point per orbit, and the field being the smallest for that orbit), nin_i F2qi\mathbb{F}_{2^{q_i}}-symmetry basis elements survive. Then the logical dimension is ∑iqini\sum_i q_i n_i. We can thus explicitly describe how the logical dimension varies with rectangular lattice size.

CodeA,BA,BLattice periods(α,β)(\alpha,\beta)((R′/J)∗)α,β((R'/J)^*)_{\alpha,\beta}
Toric code [[2n2,2,n]][[2n^2,2,n]]1+x1+x<br>1+y1+y(n,0)(n,0)<br>(0,n)(0,n)(1,1)∈F2(1,1)\in\mathbb{F}_2 (1){δ1}\{\delta_1\}
BB5 [[30,4,5]][[30,4,5]] [45]1+x1+x<br>1+y+x2y21+y+x^2y^2(5,0)(5,0)<br>(0,3)(0,3)(1,ω)∈F4(1,\omega)\in\mathbb{F}_4 (2){δ1}\{\delta_1\}
Color code [[18n2,4,4n]][[18n^2,4,4n]] [43]1+x+xy1+x+xy<br>1+y+xy1+y+xy(3n,0)(3n,0)<br>(0,3n)(0,3n)(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4 (2){δ1}\{\delta_1\}
Gross code [[144,12,12]][[144,12,12]] [11]1+x+y3/x1+x+y^3/x<br>1+y+x3/y1+y+x^3/y(6,0)(6,0)<br>(0,12)(0,12)(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4 (2)<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4 (4){δ1}\{\delta_1\}<br>{δ1,δv+ωδu,δv2+ω2δu2}\{\delta_1,\delta_v+\omega\delta_u,\delta_{v^2}+\omega^2\delta_{u^2}\}
12×1212\times12 Gross [[288,16,12]][[288,16,12]] [47]1+x+y3/x1+x+y^3/x<br>1+y+x3/y1+y+x^3/y(12,0)(12,0)<br>(0,12)(0,12)(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4 (2)<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4 (6){δ1}\{\delta_1\}<br>{δ1,δv+ωδu,δv2+ω2δu2}\{\delta_1,\delta_v+\omega\delta_u,\delta_{v^2}+\omega^2\delta_{u^2}\}
6×96\times9 Gross [[108,8,10]][[108,8,10]] [11]1+x+y3/x1+x+y^3/x<br>1+y+x3/y1+y+x^3/y(6,0)(6,0)<br>(0,9)(0,9)(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4 (2)<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4 (4){δ1}\{\delta_1\}<br>{δ1,δv+ωδu,δv2+ω2δu2}\{\delta_1,\delta_v+\omega\delta_u,\delta_{v^2}+\omega^2\delta_{u^2}\}
Two-gross [[288,12,18]][[288,12,18]] [11]1+x+y3/x1+x+y^3/x<br>x3+y2+y7x^3+y^2+y^7(12,0)(12,0)<br>(0,12)(0,12)(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4 (2)<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4 (4)<br>(ω,ω19)∈F64:=F2[ω](p0(ω))(\omega,\omega^{19})\in\mathbb{F}_{64}:=\frac{\mathbb{F}_2[\omega]}{(p_0(\omega))}{δ1}\{\delta_1\}<br>{δ1,δv+ωδu}\{\delta_1,\delta_v+\omega\delta_u\}<br>{δ1}\{\delta_1\}
BB code [[90,8,10]][[90,8,10]] [11]1+x2+x71+x^2+x^7<br>1+y+x9/y1+y+x^9/y(15,0)(15,0)<br>(0,3)(0,3)(ω,ω)∈F4(\omega,\omega)\in\mathbb{F}_4 (2)<br>(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4 (2)<br>(ω,ω2)∈F32:=F2[ω](p3(ω))(\omega,\omega^2)\in\mathbb{F}_{32}:=\frac{\mathbb{F}_2[\omega]}{(p_3(\omega))}<br>(ω,ω7)∈F32:=F2[ω](p3(ω))(\omega,\omega^7)\in\mathbb{F}_{32}:=\frac{\mathbb{F}_2[\omega]}{(p_3(\omega))}{δ1}\{\delta_1\}<br>{δ1}\{\delta_1\}<br>{δ1}\{\delta_1\}<br>{δ1}\{\delta_1\}
Generalised T.C [[120,8,12]][[120,8,12]] [18]1+x+y/x21+x+y/x^2<br>1+y+xy21+y+xy^2(0,10)(0,10)<br>(6,4)(6,4)(ω,ω6)∈F16:=F2[ω](ω4+ω+1)(\omega,\omega^6)\in\mathbb{F}_{16}:=\frac{\mathbb{F}_2[\omega]}{(\omega^4+\omega+1)} (4)<br>(ω,ω5)∈F8:=F2[ω](ω3+ω+1)(\omega,\omega^5)\in\mathbb{F}_8:=\frac{\mathbb{F}_2[\omega]}{(\omega^3+\omega+1)}{δ1}\{\delta_1\}<br>{δ1}\{\delta_1\}
Generalised T.C [[254,14,16]][[254,14,16]] [18]1+x+1/(xy3)1+x+1/(xy^3)<br>1+y+1/y61+y+1/y^6(0,127)(0,127)<br>(1,25)(1,25)(ω,ω66)∈F128:=F2[ω](p0(ω))(\omega,\omega^{66})\in\mathbb{F}_{128}:=\frac{\mathbb{F}_2[\omega]}{(p_0(\omega))} (7)<br>(ω,ω52)∈F128:=F2[ω](ω7+ω4+1)(\omega,\omega^{52})\in\mathbb{F}_{128}:=\frac{\mathbb{F}_2[\omega]}{(\omega^7+\omega^4+1)}{δ1}\{\delta_1\}<br>{δ1}\{\delta_1\}
Generalised T.C [[294,10,20]][[294,10,20]] [18]1+x+y/x31+x+y/x^3<br>1+y+x/y31+y+x/y^3(0,21)(0,21)<br>(7,7)(7,7)(ω,ω2)∈F4(\omega,\omega^2)\in\mathbb{F}_4 (2)<br>(ω,ω)∈F8:=F2[ω](ω3+ω2+1)(\omega,\omega)\in\mathbb{F}_8:=\frac{\mathbb{F}_2[\omega]}{(\omega^3+\omega^2+1)} (3)<br>(ω,ω16)∈F256:=F2[ω](p2(ω))(\omega,\omega^{16})\in\mathbb{F}_{256}:=\frac{\mathbb{F}_2[\omega]}{(p_2(\omega))}{δ1,δv+ωδu}\{\delta_1,\delta_v+\omega\delta_u\}<br>{δ1}\{\delta_1\}<br>{δ1}\{\delta_1\}

Table II. A table of the infinite-lattice symmetries of various 2D codes with the ones surviving compactification to the finite lattice highlighted in red. The KK-symmetries are given instead of the F2\mathbb{F}_2-symmetries for compactness. In all cases, the surviving elements form a basis of finite-lattice symmetries. In parentheses we put the dimension of the component associated with each orbit after compactification. We also define p0(x)=(∑i=07xi)−x7p_0(x)=(\sum_{i=0}^{7}x^i)-x^7, p1(x)=x6+x4+x3+x+1p_1(x)=x^6+x^4+x^3+x+1, p2(x)=x8+x7+x5+x3+1p_2(x)=x^8+x^7+x^5+x^3+1, and p3(x)=x5+x4+x2+x+1p_3(x)=x^5+x^4+x^2+x+1.

Example V.2 (Counting logical qubits). Consider the family of codes with gross polynomials on lattice dimensions 2aℓ×2bm2^a\ell\times2^bm, with ℓ,m\ell,m odd, the logical dimension is 0 unless both ℓ\ell and mm are multiples of 3. If min⁡(a,b)=0\min(a,b)=0, then the logical dimension is 8, with each orbit contributing 4. If min⁡(a,b)=1\min(a,b)=1, then the logical dimension is 12, with the (ω,ω2)(\omega,\omega^2) orbit contributing 8, and if min⁡(a,b)=2\min(a,b)=2, then the logical dimension is 16. More generally, for twisted boundaries with corners (0,0),(2aℓ,2bm),(2aℓ+2bm,2cn)(0,0),(2^a\ell,2^bm),(2^a\ell+2^bm,2^cn), we have four logical qubits from the (ω,ω)(\omega,\omega) point if 3∣ℓ,m+n3\mid\ell,m+n. We additionally have 4×(min⁡{a,b,c,2}+1)4\times(\min\{a,b,c,2\}+1) logical qubits from the (ω,ω2)(\omega,\omega^2) point if 3∣ℓ,m−n3\mid\ell,m-n.

Conclusion

In this work, we have described a procedure to compute the infinite-lattice materialised symmetries/global metachecks of BB codes by decomposing the symmetry space into components closed under translation. Furthermore, we gain explicit expressions for the symmetries resembling plane waves that reveal their translational structure. This builds on prior methods based on Gröbner bases [18] that return F2\mathbb{F}_2-vector space bases that describe the additive but not translational properties of symmetries. These bases can be used to determine

coarse-grainings to decouple bivariate bicycle codes into toric codes. We show how to easily compute a minimal rectangular coarse-graining, i.e., a smallest rectangular boundary configuration that preserves all infinite-lattice symmetries. We also compute a basis of all coarse-grainings, including twisted coarse-grainings, although this is more computationally involved.

We show how to use the infinite-lattice symmetries to efficiently compute the symmetries of the associated family of codes on different rectangular periodic lattices: first, appropriately adapt the bases of each component, then by determining whether each basis element ‘survives’, determine a sub-basis of the infinite-lattice symmetries that describes the finite-lattice symmetries. A byproduct of this is that we can compute the number of logical qubits on finite lattices, and can thus given a family of 2D TI codes describe how its logical dimension varies as a function of the lattice dimensions.

We note that our method for finding infinite-lattice symmetries also generalises to trivariate-tricycle code families [48, 49] with growing distances. Here, we have a duality between the module R/(A,B,C)R/(A, B, C) of Z\mathbb{Z} point excitations and (X) global symmetries, and decomposing the module of pointlike excitations gives us an analogous decomposition of the symmetry space. For example, the [[72,6,6]][[72, 6, 6]] code in [48] has symmetries given by xiyjzk↦Tr⁡(ωj+c)x^{i}y^{j}z^{k} \mapsto\operatorname{Tr}(\omega^{j+c}) for c∈Z3c \in\mathbb{Z}_{3} and ω∈F4\omega\in\mathbb{F}_{4} (we thus see that as its symmetry space is 2-dimensional, it must have at most 2×3=62 \times3 = 6 logical qubits). In 3-dimensions, we cannot however adapt the basis to cheaply determine finite-lattice bases of symmetries; this is because we can at most adapt a basis to 2 flags (in the 2D case, these came from our orderings u>vu > v and v>uv > u). In many cases, such as the above example, it should be fairly straightforward to identify how the basis changes on periodic boundaries.

Our method does not apply in full generality to twisted boundaries; the twisted boundary ideals do not appear to admit an elegant decomposition. If the infinite lattice components do not include fat points or the twisted boundaries have odd width and height, then restricting to any boundary is straightforward and amounts to checking which points (α,β)(\alpha, \beta) satisfy the boundary condition equations. Even when this is not the case, one can often determine how the symmetry space changes across different twisted boundaries by examining the explicit expressions for the infinite symmetry basis, as demonstrated with the gross code and its variants, given these expressions are sufficiently uncomplicated.

We have considered only 2D codes following a 2-block CSS form. However, we expect that our work should generalise to non-CSS codes. It is known that for a 2D code on a square lattice with growing distance, stabiliser generators can be chosen so that the code has exclusively global metachecks ([17] Lemma 7.1). In such codes, we expect anyon-symmetry duality to hold, and thus we can decompose the anyon module into local pieces to get a symmetry decomposition. The anyon module in this general case is obtained by quotienting the module of excitations by the excitation/syndrome map that takes Pauli operators to their respective syndromes.

Our results will likely find direct application in developing and improving matching-based decoders [29, 30] for 2D codes, and also understanding what makes certain BB codes amenable to such decoders. Matching-based decoders have provable thresholds and therefore avoid having error floors on sufficiently large lattices [30], in contrast to heuristic decoders where such guarantees may not exist. In practice, performance of matching decoders can suffer due to the decrease in effective distance incurred by decoupling the code into symmetries. Heuristically, by including as many low periodicity symmetries as possible in the selected basis, the performance could be improved [30]. As each component in the symmetry-space decomposition corresponds to an irreducible periodicity (in the sense that we cannot write a symmetry with this periodicity as a sum of lower periodicity symmetries), the resulting basis satisfies these demands. Should we want to design BB codes as matching-friendly as possible, we might want the components of the symmetry space to be as low in periodicity as possible. It may thus be interesting to select ideals II with low-periodicity decompositions, and test matching-based decoders on BB codes where (A,B)=I(A, B) = I.

Another future direction would be to port this framework to understand open-boundary BB codes [14, 15, 16] and design a larger variety of boundary configurations beyond rough-smooth boundaries. If we include all boundary gauge operators, the symmetries are consistent with those on the infinite lattice. Excluding boundary gauge operators to gap the boundary then ‘breaks’ certain symmetries, so the surviving symmetries classify the boundary.

It would also be interesting to explore the global metachecks/symmetries of fracton codes such as Haah’s cubic code [50], where the ideal decomposition is significantly more complex and we encounter 1D curves in addition to points (see Figure 2); the component associated with each 1D curve is an infinite-dimensional vector space. Understanding metachecks in such codes could pave the way to matching-based decoders of fracton codes, as well as improving our understanding of how the code properties vary with different boundary configurations.

Author Contributions

AL developed the procedure described and obtained all results in this manuscript. CKM led the project. All authors contributed towards the writing of the manuscript and the direction of the project. OpenAI ChatGPT 5.4/5.6 and Claude Opus 4.8 was used to identify relevant mathematical literature and tools. The authors take full responsibility for the content of the manuscript.

Acknowledgements

We thank Benjamin Brown, Kaavya Sahay, and Dominic Williamson for discussions. This work is supported by the Defence Science and Technologies Group (DSTG) and Advanced Strategic Capabilities Accelerator (or ASCA) through its Emerging and Disruptive Technologies (EDT) Program, and the Intelligence Advanced Research Projects Activity (IARPA) through the Entangled Logical Qubits program Cooperative Agreement Number W911NF-23-2-0223.

References

Proofs

Proof of Proposition. III.2

Proof. We will show that ker⁡d~0≅(R/(A,B))∗\ker\widetilde{d}^{0} \cong(R/(A,B))^{*}; the second statement follows analogously. The isomorphism φ:ker⁡d~0→(R/(A,B))∗\varphi:\ker\widetilde{d}^{0}\to(R/(A,B))^{*} is defined as follows: φ(f)([p])=f(p)\varphi(f)([p])=f(p) where [p][p] is the class of pp in R/(A,B)R/(A,B). First, we show φ\varphi is well-defined; that f(p)=f(q)f(p)=f(q) if p−q∈(A,B)p-q\in(A,B). Let p−q=rA+sBp-q=rA+sB. We have that f(p−q)=f(rA+sB)=A~f(r)=B~f(s)=0f(p-q)=f(rA+sB)=\widetilde{A}f(r)=\widetilde{B}f(s)=0, and thus f(p)=f(q)f(p)=f(q). It is easily checked that φ(f+g)=φ(f)+φ(g)\varphi(f+g)=\varphi(f)+\varphi(g) and φ(mf)=mφ(f)\varphi(mf)=m\varphi(f) for a monomial mm. It follows that φ\varphi is a homomorphism.

Let us similarly define φ−1:(R/(A,B))∗→ker⁡d~0\varphi^{-1}:(R/(A,B))^{*}\to\ker\widetilde{d}^{0}, with φ−1(u)(p)=u([p])\varphi^{-1}(u)(p)=u([p]). This is readily checked to also be a homomorphism, and it can also be verified that it is the inverse of φ\varphi.

Proof of Proposition. IV.3

Proof. We want to show that ⨁(α,β)∈Z(R′/J(α,β))∗≅(⨁(α,β)∈ZR′/J(α,β))∗\bigoplus_{(\alpha,\beta)\in\mathbb{Z}}(R'/J_{(\alpha,\beta)})^{*}\cong\left(\bigoplus_{(\alpha,\beta)\in\mathbb{Z}}R'/J_{(\alpha,\beta)}\right)^{*}. As Hom⁡K(−,K)\operatorname{Hom}_{K}(-,K) sends direct sums to direct sums in our finitely-many summand case, we have that the two are isomorphic as KK-vector spaces; the isomorphism takes a tuple of functions (f1,…,fn)(f_{1},\ldots,f_{n}) to the function ff with f(a1,…,an)=∑ifi(ai)f(a_{1},\ldots,a_{n})=\sum_{i}f_{i}(a_{i}). It is clear that this respects R′R'-multiplication; if (f1,…,fn)(f_{1},\ldots,f_{n}) is mapped to ff, then (r(f1,…,fn))=(rf1,…,rfn)(r(f_{1},\ldots,f_{n}))=(rf_{1},\ldots,rf_{n}) gets mapped to gg with g(a1,…,an)=∑i(rfi)(ai)=∑ifi(rtai)=f(rt(a1,…,an))=rf(a1,…,an)g(a_{1},\ldots,a_{n})=\sum_{i}(rf_{i})(a_{i})=\sum_{i}f_{i}(r^{t}a_{i})=f(r^{t}(a_{1},\ldots,a_{n}))=rf(a_{1},\ldots,a_{n}). □\square

Proof of Theorem. IV.5

First, we show some intermediate but elementary results. We will use a different notation from the theorem statement. Applying a CRT decomposition to (R/I)(R/I) gives us R/I≅⨁iR/QiR/I\cong\bigoplus_{i}R/Q_{i}; we can then write the CRT decomposition of R′/IR'/I as ⨁jR/Qij\bigoplus_{j}R/Q_{ij}, where Qi1,Qi2,…Q_{i1},Q_{i2},\ldots form an orbit (these are what we would write as J(α,β),J(α2,β2),…J_{(\alpha,\beta)},J_{(\alpha^{2},\beta^{2})},\ldots) such that QiR′=⋂jQijQ_{i}R'=\bigcap_{j}Q_{ij}. Our S(α,β)S_{(\alpha,\beta)}'s will turn out to be the components R/QiR/Q_{i}.

Lemma A.1. Qi=Qij∩RQ_{i}=Q_{ij}\cap R

Proof. Suppose we order the components so Qij=(x−α2i,y−β2i)\sqrt{Q_{ij}}=(x-\alpha^{2^{i}},y-\beta^{2^{i}}). Consider the Frobenius automorphism σ\sigma that squares the coefficients of polynomials. Then, as QiR′=⋂jQijQ_{i}R'=\bigcap_{j}Q_{ij}, and noting σQiR′=QiR′\sigma Q_{i}R'=Q_{i}R', we see that σ(Qij)\sigma(Q_{ij}) gives an alternate decomposition of QiR′Q_{i}R' with the primes corresponding to each QijQ_{ij} being cycled. However, as the local decomposition of R′/QiR′R'/Q_{i}R' is unique, σ\sigma must permute components QijQ_{ij}. It follows that Qij∩R=Qi′∩RQ_{ij}\cap R=Q_{i}'\cap R as RR consists fixed points under σ\sigma. Thus Qij∩R=⋂jQij′∩R=QiR′∩R=QiQ_{ij}\cap R=\bigcap_{j}Q_{ij}'\cap R=Q_{i}R'\cap R=Q_{i}. □\square

Lemma A.2. Given a KK-vector space VV, and a F2\mathbb{F}_{2}-linear map g:V→F2g:V\to\mathbb{F}_{2}, there exists a KK-linear map f:V→Kf:V\to K such that g(v)=Tr⁡(f(v))g(v)=\operatorname{Tr}(f(v)).

Proof. We use the fact that all F2\mathbb{F}_{2}-linear maps from KK to F2\mathbb{F}_{2} can be written as x↦Tr⁡(ax)x\mapsto\operatorname{Tr}(ax). Given an F2\mathbb{F}_{2}-linear map g:V→F2g:V\to\mathbb{F}_{2} for a KK-vector space VV, we can consider the map c(v)=g(cv)c(v)=g(cv) for c∈Kc\in K and some v∈Vv\in V, which we must be able to write as Tr⁡(ac)\operatorname{Tr}(ac) for some aa. Let us denote this aa as f(v)f(v), thus defining f:V→Kf:V\to K. We can show ff is KK-linear as follows: taking d∈Kd\in K, we have that for all c∈Kc\in K, Tr⁡(cf(dv))=g(cdv)=Tr⁡(cdf(v))\operatorname{Tr}(cf(dv))=g(cdv)=\operatorname{Tr}(cdf(v)). As the trace pairing (a,b)↦Tr⁡(ab)(a,b)\mapsto\operatorname{Tr}(ab) is non-degenerate, we have that f(dv)=df(v)f(dv)=df(v). Similarly, Tr⁡(cf(v+w))=g(cv+cw)=Tr⁡(c(f(v)+f(w)))\operatorname{Tr}(cf(v+w))=g(cv+cw)=\operatorname{Tr}(c(f(v)+f(w))), and thus f(v+w)=f(v)+f(w)f(v+w)=f(v)+f(w) by non-degeneracy. As we see that ff is KK-linear. As g(v)=Tr⁡(f(v))g(v)=\operatorname{Tr}(f(v)), we are done. □\square

Now, we can show the main result.

Proof. Consider the map s↦Tr⁡(s)∘ιs\mapsto\operatorname{Tr}(s)\circ\iota. It is readily seen that this takes a component such as R′/QiR'/Q_{i} into R/QiR/Q_{i}, but what we need to show is that it surjects. Consider the map x/Qi↦ι(x)/Qi1x/Q_{i}\mapsto\iota(x)/Q_{i1} from R/QiR/Q_{i} to R′/Qi1R'/Q_{i1}. It follows from Lemma. A.1 that this map is injective and thus takes a basis of R/QiR/Q_i to a linearly independent set in R′/Qi1R'/Q_{i1}. We can thus extend some map s:R/Qi→F2s : R/Q_i \to\mathbb{F}_2 to a map s′:R/Qi1→F2s' : R/Q_{i1} \to\mathbb{F}_2 such that s=s′∘ιs = s' \circ\iota. Applying Lemma A.2, we have that for any s∈(R/Qi)∗s \in(R/Q_i)^*, we have s′∈(R/Qi1)∗s' \in(R/Q_{i1})^* such that s=Tr⁡(s′)∘ιs = \operatorname{Tr}(s') \circ\iota.

References

  1. [1]P. W. Shor, Scheme for reducing decoherence in quantum computer memory, Phys. Rev. A 52, R2493(R) (1995).pubmed.ncbi.nlm.nih.gov/9912632
  2. [2]E. Knill, R. Laflamme, and L. Viola, Theory of quantum error correction for general noise, Physical Review Letters 84, 2525–2528 (2000).pubmed.ncbi.nlm.nih.gov/11018926
  3. [3]A. R. Calderbank and P. W. Shor, Good quantum error-correcting codes exist, Physical Review A 54, 1098–1105 (1996).pubmed.ncbi.nlm.nih.gov/9913578
  4. [4]A. M. Steane, Simple quantum error-correcting codes, Physical Review A 54, 4741–4751 (1996).pubmed.ncbi.nlm.nih.gov/9914038
  5. [5]A. Kitaev, Fault-tolerant quantum computation by anyons, Annals of Physics 303, 2–30 (2003).DOI
  6. [6]E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topological quantum memory, Journal of Mathematical Physics 43, 4452–4505 (2002).DOI
  7. [7]S. Bravyi, D. Poulin, and B. Terhal, Tradeoffs for reliable quantum information storage in 2d systems, Physical Review Letters 104, 10.1103/physrevlett.104.050503 (2010).
  8. [8]S. Dai and R. Li, Locality vs quantum codes (2024), arXiv:2409.15203 [quant-ph].arxiv.org/abs/2409.15203
  9. [9]S. B. Bravyi and A. Y. Kitaev, Quantum codes on a lattice with boundary (1998), arXiv:quant-ph/9811052 [quant-ph].DOI
  10. [10]H. Bombin and M. A. Martin-Delgado, Topological quantum distillation, Physical Review Letters 97, 10.1103/physrevlett.97.180501 (2006).DOI
  11. [11]S. Bravyi, A. W. Cross, J. M. Gambetta, D. Maslov, P. Rall, and T. J. Yoder, High-threshold and low-overhead fault-tolerant quantum memory, Nature 627, 778–782 (2024).DOI
  12. [12]A. A. Kovalev and L. P. Pryadko, Quantum kronecker sum-product low-density parity-check codes with finite rate, Phys. Rev. A 88, 012311 (2013).DOI
  13. [13]P. Panteleev and G. Kalachev, Degenerate quantum ldpc codes with good finite length performance, Quantum 5, 585 (2021).DOI
  14. [14]V. Steffan, S. H. Choe, N. P. Breuckmann, F. R. F. Pereira, and J. N. Eberhardt, Tile codes: High-efficiency quantum codes on a lattice with boundary (2025), arXiv:2504.09171 [quant-ph].arxiv.org/abs/2504.09171
  15. [15]Z. Liang, J. N. Eberhardt, and Y.-A. Chen, Planar quantum low-density parity-check codes with open boundaries (2025), arXiv:2504.08887 [quant-ph].arxiv.org/abs/2504.08887
  16. [16]R. Wang and L. P. Pryadko, Algebra of bivariate-bicycle surface codes (2026), arXiv:2606.08771 [quant-ph].arxiv.org/abs/2606.08771
  17. [17]J. Haah, Commuting pauli hamiltonians as maps between free modules, Communications in Mathematical Physics 324, 593–399 (2013).
  18. [18]Z. Liang, K. Liu, H. Song, and Y.-A. Chen, Generalized toric codes on twisted tori for quantum error correction, PRX Quantum 6, 10.1103/rmy6-9n89 (2025).DOI
  19. [19]K. Chen, Y. Liu, Y. Zhang, Z. Liang, Y.-A. Chen, K. Liu, and H. Song, Anyon theory and topological frustration of high-efficiency quantum low-density parity-check codes, Physical Review Letters 135, 10.1103/86j7-cmsw (2025).DOI
  20. [20]J. N. Eberhardt and V. Steffan, Logical operators and fold-transversal gates of bivariate bicycle codes (2024), arXiv:2407.03973 [quant-ph].arxiv.org/abs/2407.03973
  21. [21]Z. Liang and Y.-A. Chen, Self-dual bivariate bicycle codes with transversal clifford gates (2026),arxiv.org/abs/2510.05211
  22. [22]A. W. Cross, Z. He, P. J. Rall, and T. J. Yoder, Improved qldpc surgery: Logical measurements and bridging codes (2025), arXiv:2407.18393 [quant-ph].arxiv.org/abs/2407.18393
  23. [23]J. Viszlai, W. Yang, S. Lin, J. Liu, N. Nottingham, J. Baker, and F. Chong, qsieve: Efficient qldpc memory via systolic movement in atom arrays, ACM Transactions on Quantum Computing 7, 1–26 (2026).DOI
  24. [24]M. Wang and F. Mueller, Coprime bivariate bicycle codes and their layouts on cold atoms, Quantum 10, 2009 (2026).DOI
  25. [25]T. J. Yoder, E. Schoute, P. Rall, E. Pritchett, J. M. Gambetta, A. W. Cross, M. Carroll, and M. E. Beverland, Tour de gross: A modular quantum computer based on bivariate bicycle codes (2025), arXiv:2506.03094 [quant-ph].arxiv.org/abs/2506.03094
  26. [26]M. H. Shaw and B. M. Terhal, Lowering connectivity requirements for bivariate bicycle codes using morphing circuits, Physical Review Letters 134, 10.1103/physrevlett.134.090602 (2025).DOI
  27. [27]G. M. Nixon, C. K. McLauchlan, and C. C. L. van Rest, Vine codes: Low-overhead quantum ldpc codes on a planar square grid (2026), arXiv:2606.20263 [quant-ph].arxiv.org/abs/2606.20263
  28. [28]B. Gu, T. Noszko, V. Steffan, J. N. Eberhardt, J. Roffe, J. Eisert, and S. Koutsioumpas, Nearest-neighbour gates are all you need: High-rate quantum low-density parity-check codes on a planar grid (2026), arXiv:2606.19482 [quant-ph].arxiv.org/abs/2606.19482
  29. [29]K. Sahay, D. J. Williamson, and B. J. Brown, A matching decoder for bivariate bicycle codes (2026), arXiv:2602.22770 [quant-ph].arxiv.org/abs/2602.22770
  30. [30]S. J. S. Tan, I. Gill, E. Huang, P. Liu, C. Zhao, H. Dehghani, A. Kubica, H. Zhou, and A. Dua, Generalized matching decoders for 2d topological translationally-invariant codes (2026), arXiv:2603.05402 [quant-ph].arxiv.org/abs/2603.05402
  31. [31]B. J. Brown and D. J. Williamson, Parallelized quantum error correction with fracton topological codes, Phys. Rev. Res. 2, 013303 (2020).DOI
  32. [32]E. T. Campbell, A theory of single-shot error correction for adversarial noise, Quantum Science and Technology 4, 025006 (2019).
  33. [33]N. Delfosse, Decoding color codes by projection onto surface codes, Physical Review A 89, 10.1103/phys-reva.89.012317 (2014).DOI
  34. [34]B. J. Brown, Conservation laws and quantum error correction: Toward a generalized matching decoder, IEEE BITS the Information Theory Magazine 2, 5–19 (2022).DOI
  35. [35]K. Sahay and B. J. Brown, Decoder for the triangular color code by matching on a möbius strip, PRX Quantum 3, 10.1103/prxquantum.3.010310 (2022).DOI
  36. [36]A. Kubica and N. Delfosse, Efficient color code decoders in d ≥ 2 dimensions from toric code decoders, Quantum 7, 929 (2023).
  37. [37]N. Raveendran and B. Vasić, Trapping sets of quantum ldpc codes, Quantum 5, 562 (2021).DOI
  38. [38]A. Kubica, B. Yoshida, and F. Pastawski, Unfolding the color code, New Journal of Physics 17, 083026 (2015).DOI
  39. [39]Y. Wang, Z. Ni, M. He, J. Liu, and Y. Gu, Decoupling 2d translational-invariant topological css codes (2026), arXiv:2608.09915 [quant-ph]. Z. Liang, B. Yang, J. T. Josue, and Y.-A. Chen, Operator algebra and algorithmic construction of boundaries and defects in (2+1)d topological pauli stabilizer codes (2026), arXiv:2410.11942 [quant-ph].
  40. [41]S. Bravyi and M. B. Hastings, Homological product codes (2013), arXiv:1311.0885 [quant-ph].arxiv.org/abs/1311.0885
  41. [42]D. Eisenbud, Localization, in Commutative Algebra: with a View Toward Algebraic Geometry (Springer New York, New York, NY, 1995) pp. 57–86.
  42. [43]J. N. Eberhardt, F. R. F. Pereira, and V. Steffan, Pruning qldpc codes: Towards bivariate bicycle codes with open boundary conditions (2024), arXiv:2412.04181 [quant-ph].arxiv.org/abs/2412.04181
  43. [44]E. Lucas, Théorie des fonctions numériques simplement périodiques, American Journal of Mathematics 1, 184 (1878).
  44. [45]M. Ye and N. Delfosse, Quantum error correction for long chains of trapped ions, Quantum 9, 1920 (2025).DOI
  45. [46]F. Glaudo, N. Kravitz, and C. Lowen, Simultaneous generating sets for flags (2025), arXiv:2502.09530 [math.CO].arxiv.org/abs/2502.09530
  46. [47]J. Cruz-Benito, A. W. Cross, D. Kremer, and I. Faro, Evolutionary discovery of bivariate bicycle codes with ill-posed search (2026), arXiv:2606.02418 [quant-ph].
  47. [48]A. Jacob, C. McLauchlan, and D. E. Browne, Single-shot decoding and fault-tolerant gates with trivariate tricycle codes (2026), arXiv:2508.08191 [quant-ph].arxiv.org/abs/2508.08191
  48. [49]V. Menon, J. P. Bonilla Ataides, R. Mehta, A. Gu, D. B. Tan, and M. D. Lukin, Magic tricycles: Efficient magic-state generation within finite block-length quantum ldpc codes, Physical Review X 16, 10.1103/ghhp-cytl (2026).DOI
  49. [50]J. Haah, Local stabilizer codes in three dimensions without string logical operators, Physical Review A 83, 10.1103/physreva.83.042330 (2011).

Paper details

vlnc:W_cs9p734m
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

OpenAI ChatGPT 5.4, Claude Opus 4.8 (bare)

View statement
Looking for related papers…
Contents