3.1. Definition and General Properties
Generalized bicycle (GB) code [
15,
20] is a version of the bicycle ansatz [
21], a quantum CSS code constructed from a pair of equivalent index-two quasi-cyclic linear codes. Namely, given any pair of polynomials
with coefficients in a finite field
and of degrees smaller than
ℓ, the generalized bicycle code
of length
has CSS generator matrices specified in the block form,
Here,
and
are
q-ary
circulant matrices. Circulant matrices necessarily commute, which guarantees the CSS orthogonality condition (
5). For notational convenience, we will use
to represent a
Z-codeword
c, a column vector whose components in the two blocks coincide with the coefficients of the two polynomials. The corresponding equation
is equivalent to
.
With any code
, there is an associated
q-ary cyclic code
of length
ℓ, with the check and generating polynomials,
respectively. The number of qudits encoded in such a GB code is [
20]:
twice the dimension of the code
.
It is easy to see that column and row permutations can be used to obtain the matrix
from
, up to a sign of some columns. Thus, the CSS distances (
7) of any GB code are equal to each other and, respectively, to the code distance
d. The calculation of the distance is simplified somewhat with the help of an auxiliary
asymmetric bicycle (AB) code
where:
where
,
are obtained by dividing the two polynomials by the common factor, and the matrix
is the same as in the original GB code, see Equation (
8). The AB code encodes half as many qudits as the original GB code,
. The relation between the two codes follows from an explicit expression for the
Z-codewords in the original code,
where
and
are Bézout coefficients such that
whose existence follows from
, and, for a non-trivial codeword, at least one of
and
should not be divisible by
. Taken separately, these two conditions yield the sets of
X- and
Z-codewords of the AB code, respectively. This results in the following statement, the formal proof of which is given on page 15.
Statement1.
The distance of the code is the same as that of the associated AB code , .
In addition, the CSS distance (and thus the distance d of the GB code) is bounded by the distance of the linear cyclic code .
Statement2.
Let denote the distance of the -linear cyclic code with the generating polynomial , see Equation (9). Then the Z-distance of the q-ary AB code satisfies . The formal proof on page 15 amounts to a demonstration that for any non-zero code word , either or is a non-trivial Z-vector in the AB code.
We end this section with a short list of polynomial transformations which generate equivalent GB codes:
Statement3.
Two codes, and , of the same size are equivalent if
- (i)
, for some m mutually prime with ℓ, ;
- (ii)
, ;
- (iii)
and are the reciprocal polynomials of and , respectively.
- (iv)
, , for some .
- (v)
, , for some polynomial such that.
The first four transformations correspond to permutations preserving the circulant symmetry [
28], while the last one may be useful for constructing LDPC codes, since minimum row weight does not necessarily correspond to minimum polynomial degrees.
While technically not an equivalence transformation, we should also mention here the case of polynomials commensurate with the circulant size ℓ, i.e., such that , where is a factor of ℓ. A cyclic code whose check polynomial is commensurate with ℓ is merely a direct sum of disconnected cyclic codes, each equivalent to the code of length with the check polynomial . The same is true in the case of a code whose defining polynomials have the same commensurability factor :
Statement4.
(Commensurate GB code) A code with parameters and , , where , is equivalent to a direct sum of copies of the code with parameters . In particular, and .
A cyclic or GB code that is not commensurate is called incommensurate.
3.2. Bounds for GB Codes of Unrestricted Weight
Here we give several existence bounds for general (non-LDPC) GB codes, using the standard map [
25,
26,
27] relating the parameters of a CSS code to those of the associated pair of classical
-linear mutually dual-containing codes. In the case of the code
, the two codes have double-circulant parity check matrices
and
given in Equation (
8). To be specific, we focus on the index-two QC code with the check matrix
, and denote such a code QC
.
Statement5.
(CSS map for GB codes [
25,
26,
27])
Given the parameters of the classical linear code QC, the quantum CSS code has parameters , where .
It is a classical result [
29,
30] that index-two QC codes include good codes with rate
and asymptotically finite relative distances
. However, the codes used in the proof have parity-check matrices in a systematic form with
; for such a self-dual (up to a permutation) index-two QC code Statement 5 gives a quantum code which encodes no qudits. A number of other lower bounds on the distances of QC codes have been constructed, in particular, a version [
31] of the BCH bound (for a recent review, see Ref. [
32]). However, none of these bounds gives a family of QC codes with
and
. Indeed, by Statements 1 and 2, such a family of QC codes would imply that linear cyclic codes must be asymptotically good, a question which remains unresolved [
33,
34].
For these reasons here we list several partial results, which demonstrate the existence of QC codes with sublinear
and distances scaling linearly, and of finite-rate QC codes with sublinear (power law) distances. The following bound is constructed using elementary arguments similar to those used in Ref. [
35]:
Statement6.
Consider the code QC in the special case , , where for some polynomial , is a factor of the generating polynomial, . Then the distance of the QC code satisfies the bounds:
- (a)
If, ;
- (b)
Otherwise, if,
Here, and are given by Equation (9), and is the distance of the linear cyclic code generated by . Unfortunately, the codes generated by
and
, respectively, form a pair of dual-containing cyclic codes; it is well known [
36] that the minimum of the two distances is bounded by
, which limits the usability of the bound in Statement 6.
The following bound obtained with the help of a counting argument is a variant of Lemma 5 from Ref. [
37] in application to GB codes:
Statement7.
Let with irreducible, andThen, there exists such that the length- code QC has distance , where is the distance of the cyclic code generated by . The counting part of this bound asymptotically approaches from above the Gilbert–Varshamov (GV) bound [
38,
39] for linear
q-ary codes with
, which coincides with the GV bound [
25] for
q-ary CSS codes with
. Unfortunately, the requirement for
to be irreducible is very restrictive. Generally, since
has both
and
as factors, codes with
ℓ prime have higher lower bounds on their relative distances under Statement 7. In particular, two well-known special cases correspond to
having only two and three factors, respectively:
Example 1 (GB codes with linear distance).
Let ℓ be such that , where is the multiplicative order function of q modulo ℓ. This ensures that has only two irreducible factors in , and . Then there is a GB code with parameters , where is given by Equation (13). For the corresponding set is [40] , , and, moreover, according to Artin’s primitive root conjecture, a finite fraction of all primes satisfies this condition for any which is not a perfect square [41]. Asymptotically, at , this bound on the relative distance coincides with the GV bound for rate- linear q-ary codes, e.g., for . Example 2 (GB codes with asymptotic rate
).
For an odd prime ℓ let a prime p be a quadratic residue modulo ℓ, i.e., for some integer m. Then, has only three irreducible factors in , and there is a quadratic-residue cyclic code with and an irreducible generator polynomial [28]. According to Statement 7, a prime-field GB code with parameters exists. 3.3. A Map to Hypergraph-Product and Related Codes
We would now like to focus on more practical GB codes with bounded-weight stabilizer generators. First, we construct an explicit map between a quantum hypergraph-product code [
14] constructed from a pair of square circulant matrices of mutually prime dimensions
and
, and a GB code with circulant size
, see
Figure 1.
Specifically, let
and
be a pair of square circulant matrices of size
and
, corresponding to polynomials
and
in
, respectively. Given the parameters
for the two cyclic codes with the check polynomials
,
, consider the hypergraph-product code with CSS generators in a block form written as Kronecker products:
where
are the identity matrices of size
,
. Such a code has the parameters [
14,
18].
and can be put on an
square lattice with periodic boundary conditions as illustrated in
Figure 1a, with the two blocks in Equation (
14) corresponding to qubits on horizontal and vertical edges, respectively.
In the special case where
and
are mutually prime,
, an equivalent GB code with circulant size
, can be constructed from the polynomials,
where the values of the circulant index,
are in a one-to-one correspondence with the positions
on the
portion of the square lattice with periodic boundary conditions introduced by identifying any pair of points connected by periodicity vectors
and
.
We should emphasize that in addition to being a one-to-one map, Equation (
17) has the correct translation symmetry. Different GB codes can be also obtained using skewed periodicity vectors, e.g.,
instead of
, equivalent to the index map
. This map does not give identity transformation for the translation
. Thus, we do not expect the corresponding code
,
,
to be equivalent to the original QHP code, see
Figure 1b.
Generally, a quantum code on the edges of a square lattice with stabilizer generators similar to those of a QHP code but with periodicity vectors non-collinear with the axes is called a rotated QHP code [
15], a code in a more general class of lifted-product codes [
3].
Statement8.
An arbitrary GB code of length is equivalent to a rotated QHP code with periodicity vectors and such that .
Proof. Indeed, given a decomposition
, where
and
ℓ are mutually prime,
, consider a pair of vectors,
If we use these as periodicity vectors (i.e., identify any pair of points on the square lattice connected by one of these vectors), there are exactly
inequivalent points with a one-to-one map
to a cycle
, see
Figure 1b and
Figure 2. Then, given the polynomials
and
which define the lattice layout of the stabilizer generators of a rotated QHP code with the chosen periodicity vectors, the polynomials defining the corresponding GB code are
and
.
Conversely, let be a multiplicative inverse of modulo ℓ, ; its existence is guaranteed by the condition . Then, given the code , we recover the polynomials for the corresponding rotated-QHP code, and . □
These maps show, in particular, that GB codes can be as good as QHP codes constructed from two square circulant matrices of mutually prime sizes. Given the explicit Equation (
15) relating parameters of a QHP code with those of the two cyclic codes with parity-check polynomials
and
, we obtain an existence for GB codes of finite rates and a power-law distance scaling as
or better. Indeed, the question of whether long linear cyclic codes are asymptotically good is still open, with only minor progress made in recent years [
34,
42,
43]. In reality, the question is academic, since finite-length performance of cyclic codes is excellent, and already the BCH bound gives codes [
44] with rate
and
, while linear cyclic codes with
can also be constructed [
45].
From a practical viewpoint, more interesting are the bounds on parameters of LDPC GB codes with stabilizer generators of bounded weight. We construct such (upper) bounds in the next section with the help of general results by Bravyi, Poulin, and Terhal [
46,
47], by mapping a linear cyclic code with check polynomial of weight
to a code local on a
D-dimensional hyper-cubic lattice, with
, and a GB code with row weight
w to a quantum code local on a
D-dimensional lattice, with
.
3.4. A Map to a Code Local in D Dimensions
Let us first consider the case of a cyclic code of length ℓ with the parity check polynomial of a fixed weight w. Here we will not require that be a factor of , as such factors do not necessarily have minimal weights, but a q-ary polynomial such that the canonical check polynomial be non-trivial, .
The following is a generalization of Statement 8:
Statement9.
An incommensurate linear cyclic code of length ℓ with check polynomial of weight w is equivalent to a code with all checks local on a hypercubic lattice of dimension , and if ℓ is prime.
Proof. For a polynomial
with monomial degrees
, consider a set of
w integer vectors in
, written as the rows of the lower-triangular matrix
The determinant of
M equals
, and by the incommensurability condition, there exists a map from the chain
to the region in
given by the inequalities
,
, where
,
for
, and
. With these notations, the check polynomial becomes
, i.e., the checks are one-local in the bulk of the region (with the structure as in quantum fractal codes [
48,
49]), and at most two-local near the region’s boundary.
When
ℓ is a prime (or one of the original degrees
is mutually prime with
ℓ), there exists
such that
, and
gives an equivalent code, see Statement 3. The modified check polynomial
has a degree-one monomial, and the region defined by the periodicity vectors (
19) has
, thus
.
The dimension can be additionally reduced if there is a simple relation between the monomial degrees, e.g., , in which case the third axis can be skipped and the corresponding monomial written as . □
Given such a map to a code local in
D dimensions, with the help of the general result in the appendix of Ref. [
47], we immediately obtain:
Corollary 1.
Parameters of any -linear cyclic code of length ℓ with the check polynomial of weight which is equivalent to a code local in dimensions, satisfy .
The case of a GB code with polynomials
and
with the total weight
w is considered similarly, except that each vertex of the hypercubic lattice must now contain two qudits, one from each block, and the maximum dimension is additionally reduced by one since both polynomials have zero-degree monomials. It is also easy to check that a local map for
to
automatically implies the locality of the corresponding
. We have, combining the results from Refs. [
46,
47]:
Statement10.
An incommensurate GB code with row weight w and parameters is equivalent to a CSS code local in dimensions ( if ℓ is prime). Its parameters satisfy the inequalities Notice that the last equation implies that any GB code family with a fixed weight w has an asymptotically zero rate, since when the distance d becomes infinite.
3.5. Exact Bound for GB Codes of Weight Four
Here we consider in detail the special case of codes with
. According to Statement 10, any such code is equivalent to a code local in two dimensions. The case of
is special, since Refs. [
46,
47] give asymptotically exact bounds for such codes.
A non-trivial GB code of weight can only be constructed when both and have equal weights. Moreover, weight-two polynomials of equal degrees, or a polynomial of degree with ℓ even, always give an empty code or a distance-two code. Therefore, for a non-trivial incommensurate GB code with distance , with the help of Statement 3, without restricting generality, we can request that the degrees and satisfy , with .
These additional properties guarantee that any pair of rows of a generator matrix
(or
) in Equation (
8) intersect in at most one column, and any column has exactly two non-zero elements, as in a vertex-edge incidence matrix of a simple graph. The analogy can be made exact by considering a pair of binary matrices
J,
F constructed from
and
, respectively, by replacing any non-zero element with 1. The rows of the two matrices are necessarily orthogonal,
(over
). Thus, these matrices can be readily identified as a vertex-edge and a face-edge incidence matrices of a locally planar
graph
, i.e., with each vertex of
and the corresponding dual graph
of equal degree 4. Finally, it is also easy to see that the graph
is locally (i.e., as long as the current position does not close a circle
) isomorphic to a square lattice, with the two blocks, respectively, corresponding to horizontal and vertical edges, and oriented in the direction of increasing index. Namely, any (local) sequence of horizontal
and vertical
steps, where the signs indicate the direction, arrives at the same final position as long as the total displacements
and
coincide. That is, the graph
is
covered by the infinite square lattice graph
, with the covering function
such that a path between a pair of vertices on
with the same covering map image corresponds to a non-trivial cycle on
, or one or more “large” displacements
of the circulant index.
With such a map, it is evident that a non-trivial GB code of weight-four and distance
is a square-lattice surface code, with
Z-codewords corresponding to homologically non-trivial cycles, with the homology fixed by the covering map
f (see, e.g., Ref. [
50]). Then, the distance
is the length of a shortest path connecting a pair of distinct vertices on
whose covering-map images coincide on
.
To construct an actual distance bound, start with an arbitrary vertex
(where
is the vertex set of
), and consider a vertex-centered ball
on
, a set of all vertices
such that the graph distance
, see
Figure 3 (left). With the circulant size
ℓ, the graph
has exactly
ℓ vertices. Thus, if the size of the ball satisfies
, the ball must include at least two equivalent vertices, which gives for the code distance,
, the
diameter of the ball. The size of a ball on the square lattice is computed easily by summing the arithmetic sequence,
which gives the upper bound
for any circulant size
. A similar calculation for an edge-centered ball on
gives an odd-valued upper bound
for any
, see
Figure 3 (right). We rewrite these inequalities equivalently as lower bounds on the code length
for a given value of the distance
:
Statement11.
Consider a weight-four GB code of an odd distance , then its length . For an even distance , the length .
The argument above is valid for . We verified by exhaustive search that these inequalities are also valid for .
We notice that the inequalities in Statement 11 are sharp for surface codes. Namely, the odd-distance bound is reached by a family [
51] of square lattice surface codes with periodicity vectors
and
and parameters
, while the even-distance bound is achieved by the
-rotated surface codes [
52]. These latter codes have periodicity vectors
and parameters
. However, the corresponding translation group
is not cyclic for any
, which proves that there are no corresponding GB codes except for
, with parameters
.
The next-shortest family of even-distance surface codes has periodicity vectors and parameters , ; these have GB code representations when r is even, which requires the distance be a multiple of four.