Introduction
There has been considerable progress during the last few years in the theory of Quantum Low-Density Parity-Check (QLDPC) codes. Among the most notable results are the construction of families of asymptotically good QLDPC codes, i.e. whose dimension and minimum distance both scale linearly in the blocklength N N N [26 , 21 , 7 ] and [19 HLM+25] . These constructions come with linear-time decoders that are guaranteed to correct a constant fraction of adversarial errors. An interesting residual question is how do these decoders behave when confronted with random errors? They can obviously be guaranteed to correct a constant fraction of random errors, but how large can this fraction be? In the present paper we are interested in constructing a variant of quantum Tanner codes [21 ] that can correct a proportion p p p of erasures with a rate R R R that is arbitrarily close to the quantum erasure capacity R = 1 − 2 p R = 1 - 2p R = 1 − 2 p .
Quantum Tanner codes are heavily inspired by their classical counterpart. A classical Tanner code [29 ] , in its bipartite graph version, is a binary linear code that is constructed from two ingredients, a regular bipartite graph ( V , E ) (V, E) ( V , E ) of degree Δ \Delta Δ , and two codes C 0 C_0 C 0 and C 1 C_1 C 1 of length Δ \Delta Δ . Bits are indexed by the edge-set E E E of the graph and the two inner codes C 0 C_0 C 0 and C 1 C_1 C 1 serve as sets of local constraints. Codewords of the Tanner code are those functions from E E E to { 0 , 1 } \{0, 1\} { 0 , 1 } that, restricted to any edge-neighbourhood of a left (respectively right) vertex, represent a codeword of C 0 C_0 C 0 (respectively C 1 C_1 C 1 ). When the bipartite graph is a sufficiently good expander graph, and when the minimum distances of C 0 C_0 C 0 and C 1 C_1 C 1 are large enough, Tanner codes were famously shown [27 ] to be asymptotically good. They also come with a natural left-right parallel decoder [Zém01] that can be guaranteed to correct a constant fraction of errors in linear time. If the Tanner code is chosen to be too symmetric, namely if we take the inner codes C 0 C_0 C 0 and C 1 C_1 C 1 to be equal, then we understand that we will not be able to decode close to the capacity of, say, the erasure channel, because almost every inner code will be saturated with a number of erasures that exceeds its capacity. This obstacle can be circumvented however, if we consider a less symmetric version of the Tanner code, namely by using for C 1 C_1 C 1 a code of rate close to 1, which puts few constraints on the overall code, so that the rate of the Tanner code will be close to the rate R 0 R_0 R 0 of the left inner code C 0 C_0 C 0 . A first decoding step consisting of decoding in parallel every little code C 0 C_0 C 0 will thus bring down the number of errors to a very small proportion of the block length and the remaining errors can be dealt with by invoking the worst-case guarantees of the iterative decoder. This strategy was pursued in [4 ] and such Tanner code families were shown to be capacity-achieving.
Our goal is to pursue a similar strategy in the quantum setting. Quantum Tanner codes [21 ] are instances of binary CSS codes [6 , 28 ] . We may think of CSS codes as a pair ( C X , C Z ) (C_X,C_Z) ( C X , C Z ) of classical codes defined by two parity-check matrices H X \mathbf{H}_X H X and H Z \mathbf{H}_Z H Z , with the requirement that X X X -checks must be orthogonal to Z Z Z -checks. The graph used to define a classical Tanner code is replaced by a square complex . This is an incidence structure ( V , E , Q ) (V,E,Q) ( V , E , Q ) between a set of vertices, a set of edges, and a set of squares that are 4-cycles of the graph ( V , E ) (V,E) ( V , E ) . The square complex is quadripartite, meaning that vertices are partitioned into four sets, V = V 00 ∪ V 01 ∪ V 10 ∪ V 11 V=V_{00}\cup V_{01}\cup V_{10}\cup V_{11} V = V 00 ∪ V 01 ∪ V 10 ∪ V 11 and every square is incident to a vertex from each of the four sets. Qubits are indexed by squares and very much like in the classical case, the code C X C_X C X is defined by local constraints that require codewords, when restricted to square-neighbourhoods of vertices of V 00 ∪ V 11 V_{00}\cup V_{11} V 00 ∪ V 11 to coincide with codewords of an inner code C 00 C_{00} C 00 . Similarly, the code C Z C_Z C Z is defined by local constraints of the square-neighbourhoods of vertices of V 01 ∪ V 10 V_{01}\cup V_{10} V 01 ∪ V 10 . In fact, when restricting ourselves to two sets of vertices among four, squares become incident to exactly two vertices and the induced incidence structures ( V 00 ∪ V 11 , Q ) (V_{00}\cup V_{11},Q) ( V 00 ∪ V 11 , Q ) and ( V 01 ∪ V 10 , Q ) (V_{01}\cup V_{10},Q) ( V 01 ∪ V 10 , Q ) are bipartite graphs. The classical codes C X C_X C X and C Z C_Z C Z are nothing but classical Tanner codes defined on these graphs.
In [21 ] and subsequent papers [23 , 22 ] , the codes are, for simplicity’s sake, presented with the most symmetric possible structure. This means that the inner code constraints of the Tanner code C X C_X C X are the same for all vertices, and similarly for the Tanner code C Z C_Z C Z . We shall exhibit a way to generalise the quantum Tanner code construction so that the two associated classical codes C X C_X C X and C Z C_Z C Z each use two distinct inner codes, one of which has a rate that can be made arbitrarily close to 1 like in the classical case. A first round of decoding will remove a large proportion of the erasures, after which we can rely on the adversarial error-correcting capabilities of quantum Tanner code to finish removing the remaining erasures.
For this strategy to work, we need to overcome one serious obstacle. The inner codes of non-trivial rate and fixed length Δ 2 \Delta^2 Δ 2 need small decoding error probabilities at erasure rates close to the capacity limit. However, these inner codes cannot be chosen randomly like in the classical case, because of the orthogonality requirements of the X X X and Z Z Z -checks. The inner codes are chosen to be duals of tensor products of random codes of length Δ \Delta Δ , and we need to ensure that this family of classical codes is capacity-achieving. This is not an immediately obvious task, in part because it is notoriously difficult to evaluate the weight distribution of a tensor code from that of its component codes.
We shall obtain a proof that the family of duals of random tensor codes is capacity-achieving in a roundabout way. First, we shall prove that tensoring any pair of capacity-achieving code families yields a capacity-achieving family for the classical erasure channel, provided the component error probabilities decay sufficiently fast. The way we go about this consists in decomposing the erasure channel into applying two successive erasure channels of the required erasure probabilities. We then modify the probability distribution of one of the erasure vectors in a way that makes decoding the tensor code straightforward, and compare the expected dimensions of the covered subcodes under the two erasure distributions. We believe such a method to be of independent interest.
Applied to random component codes, we obtain therefore that the family of random tensor codes is capacity-achieving for the erasure channel, and we shall prove that the family of their duals must be capacity-achieving as well.
Results
We state our main results below. For more formal versions of Theorems 1 and 2, see Corollary 8 and Theorem 16 respectively. For a formal definition of code families, see Definition 1.
Theorem 1. Let F 0 \mathcal{F}_0 F 0 and F 1 \mathcal{F}_1 F 1 be two families of codes supporting blocklengths in a common unbounded set of natural numbers. If the families achieve capacity on the erasure channel and have minimum distance ω ( log n ) \omega(\log n) ω ( log n ) , where n n n denotes the blocklength, then the tensor family F 0 ⊗ F 1 \mathcal{F}_0 \otimes\mathcal{F}_1 F 0 ⊗ F 1 also achieves capacity on the erasure channel.
Theorem 2. Consider any ρ ∈ ( 0 , 1 2 ) \rho\in(0,\frac{1}{2}) ρ ∈ ( 0 , 2 1 ) and any ε > 0 \varepsilon> 0 ε > 0 . Then there exists a family F \mathcal{F} F of quantum Tanner codes of rate ≥ 1 − 2 ρ − ε \ge1 - 2\rho- \varepsilon ≥ 1 − 2 ρ − ε that can decode quantum erasures of rate ρ \rho ρ with failure probability decaying exponentially with the blocklength N N N and decoding time growing linearly with N N N . For fixed ρ \rho ρ and ε \varepsilon ε , the degree and the local codes are fixed independently of N N N . The resulting codes have constant stabilizer weights and qubit degrees with minimum distance growing linearly with N N N .
Combining the tensor-product result with product expansion, we prove that duals of tensor products of independent uniform random binary linear codes also achieve the erasure capacity (see Theorem 15 for the formal statement). This is the key classical ingredient needed for the quantum construction in § 2.3 and § 3.5 .
Our primary contributions are a capacity-achieving code for the quantum erasure channel within the quantum Tanner framework with linear decoding complexity and classical tensor-product results of independent interest. Concurrent work [24 ] constructs random ensembles of binary QLDPC codes that approach the capacity of the quantum erasure channel, with bounded weight stabilizers and exponentially small decoding error probability. It does not present a linear-time decoder. In § 2.2 , we compare our construction to this and other similar results.
Part 1. Overview
CSS codes and the quantum erasure channel
A binary quantum CSS code C \mathcal{C} C is defined by two binary matrices named H X \mathbf{H}_X H X and H Z \mathbf{H}_Z H Z , that both have the same number N N N of columns and have ranks r X r_X r X and r Z r_Z r Z , respectively. Every row of H X \mathbf{H}_X H X should be orthogonal to every row of H Z \mathbf{H}_Z H Z . The code encodes k = N − r X − r Z k = N-r_X-r_Z k = N − r X − r Z logical qubits; its Hilbert-space dimension is 2 k 2^k 2 k . The number of logical qubits protected by the quantum code is given by
k = dim C = N − r X − r Z . k = \dim C = N-r_X-r_Z. k = dim C = N − r X − r Z .
The matrix H X \mathbf{H}_X H X is the parity-check matrix of a classical code C X C_X C X , and similarly C Z C_Z C Z is the classical code with parity-check matrix H Z \mathbf{H}_Z H Z . The minimum distance d d d of the quantum code is the quantity d = min ( d X , d Z ) d=\min(d_X,d_Z) d = min ( d X , d Z ) , where d X d_X d X is the smallest weight of a codeword in C Z C_Z C Z but not in C X ⊥ C_X^\perp C X ⊥ and d Z d_Z d Z is the smallest weight of a codeword in C X C_X C X but not in C Z ⊥ C_Z^\perp C Z ⊥ .
The decoding problem for errors consists of being given a pair of syndromes H X e Z T , H Z e X T \mathbf{H}_X\mathbf{e}_Z^T,\mathbf{H}_Z\mathbf{e}_X^T H X e Z T , H Z e X T of two binary vectors e Z , e X ∈ F 2 n \mathbf{e}_Z,\mathbf{e}_X\in\mathbb{F}_2^n e Z , e X ∈ F 2 n and returning estimated errors e Z ′ , e X ′ ∈ F 2 n \mathbf{e}'_Z,\mathbf{e}'_X\in\mathbb{F}_2^n e Z ′ , e X ′ ∈ F 2 n . The decoder succeeds if the estimated errors satisfy e Z ′ ∈ e Z + C Z ⊥ \mathbf{e}'_Z\in\mathbf{e}_Z+C_Z^\perp e Z ′ ∈ e Z + C Z ⊥ and e X ′ ∈ e X + C X ⊥ \mathbf{e}'_X\in\mathbf{e}_X+C_X^\perp e X ′ ∈ e X + C X ⊥ , thus identifying the stabilizer coset of the true error.
The quantum erasure channel [11 , 1 , 8 ] selects each of the n n n coordinate positions with independent probability p p p , which is the channel parameter. We may define the corresponding erasure vector ϵ ∈ F 2 N \boldsymbol{\epsilon}\in\mathbb{F}_2^N ϵ ∈ F 2 N . The channel also chooses two conditionally independent (given the erasure pattern) binary vectors e Z , e X \mathbf{e}_Z,\mathbf{e}_X e Z , e X that are uniformly distributed in the space of vectors supported by the support supp ( ϵ ) \operatorname{supp}(\boldsymbol{\epsilon}) supp ( ϵ ) of the erasure vector. The erasure decoder is then given the erasure vector ϵ \boldsymbol{\epsilon} ϵ together with the syndromes H X e Z T , H Z e X T \mathbf{H}_X\mathbf{e}_Z^T,\mathbf{H}_Z\mathbf{e}_X^T H X e Z T , H Z e X T . Decoding succeeds if the decoder identifies the corresponding error cosets e Z + C Z ⊥ \mathbf{e}_Z+C_Z^\perp e Z + C Z ⊥ and e X + C X ⊥ \mathbf{e}_X+C_X^\perp e X + C X ⊥ .
The capacity of the quantum erasure channel is known to equal 1 − 2 p 1-2p 1 − 2 p for 0 ≤ p < 1 / 2 0\leq p<1/2 0 ≤ p < 1/2 . A family of codes together with an erasure decoding algorithm is said to achieve the capacity of the erasure channel if it can produce codes with a rate R = k / N R=k/N R = k / N arbitrarily close to 1 − 2 p 1-2p 1 − 2 p and with a vanishing decoding error probability.
The idea of code families extends naturally to binary CSS codes. Using Definition 2, we can make this precise by replacing dim C / n \dim C/n dim C / n by the quantum rate k / N k/N k / N , replacing 1 − ρ 1-\rho 1 − ρ by 1 − 2 p 1-2p 1 − 2 p , and using the decoding problem from the erasure pattern and measured syndrome described above. The decoding error probability averages over the erasures and the Pauli errors supported on the erased positions. In this definition, ϵ \epsilon ϵ is a rate gap; the parametrization p = ( 1 − R ) / 2 − ϵ p=(1-R)/2-\epsilon p = ( 1 − R ) /2 − ϵ used elsewhere corresponds to a rate gap of 2 ϵ 2\epsilon 2 ϵ . For the bounded-check-weight and linear-time claims, the degree Δ \Delta Δ , the local codes, and the distance are chosen after the target rate and gap. A suitable choice of the finite local codes can be fixed once and used with a sequence of square complexes.
Comparison with Prior Work
Our construction achieves the erasure capacity with a linear-time decoder within the quantum Tanner framework. More precisely, for every fixed R ∈ ( 0 , 1 ) R\in(0,1) R ∈ ( 0 , 1 ) and ϵ > 0 \epsilon>0 ϵ > 0 such that p = ( 1 − R ) / 2 − ϵ > 0 p=(1-R)/2-\epsilon>0 p = ( 1 − R ) /2 − ϵ > 0 , our codes have constant stabilizer weights and admit decoding from the erasure pattern and measured syndrome in linear time with decoding error probability decaying exponentially in blocklength. In each of these statements, the implied constants depend only on R R R and ϵ \epsilon ϵ .
The random ensembles of binary QLDPC codes constructed in [24 ] also approach the capacity of the quantum erasure channel with bounded stabilizer weights and exponentially small decoding error probability. In addition, their construction also approaches the quantum Gilbert–Varshamov bound and achieves the hashing bound for memoryless Pauli channels. But, the efficient-decoding guarantee in [24 ] concerns a smaller adversarial error radius and the paper does not explicitly claim a linear-time decoder.
Earlier work [20 ] approaches quantum erasure capacity in a restricted range of erasure probabilities using stabilizer generators of polylogarithmic weight. Quantum AEL amplification [2 ] gives explicit QLDPC codes with near-Singleton parameters over constant-size folded alphabets. Subsequent work [3 JMS26, 12 ] establishes strong list-decoding guarantees for folded QLDPC codes. In particular, [12 ] provides near-linear-time syndrome-input list decoding. These folded-symbol guarantees do not by themselves establish unique recovery at capacity for independently erased physical qubits. A variety of authors have also focused recently on improving and simulating practical decoders for quantum erasure channels [CLLD24, GYP24, KO26, YGP25, FLL26, PGYP26].
Quantum Tanner codes
A quantum Tanner code [21 ] is defined by two objects, a square complex and a set of inner codes that provide the linear constraints making up the rows of H X \mathbf{H}_X H X and H Z \mathbf{H}_Z H Z .
The quadripartite Cayley square complex. It is defined with a group G G G and two symmetric sets of generators A ⊂ G A \subset G A ⊂ G and B ⊂ G B \subset G B ⊂ G . Symmetry here means that A = A − 1 A=A^{-1} A = A − 1 and B = B − 1 B=B^{-1} B = B − 1 . For simplicity we take Δ : = ∣ A ∣ = ∣ B ∣ \Delta:= |A|=|B| Δ := ∣ A ∣ = ∣ B ∣ . We may actually take A = B A=B A = B , but we should differentiate between the two sets, even if they consist of the same elements of G G G . The sets A A A and B B B define two Cayley graphs, the left Cayley graph Cay ( A , G ) \operatorname{Cay}(A,G) Cay ( A , G ) (whose edges consist of pairs of the form { g , a g } \{g,ag\} { g , a g } , g ∈ G g \in G g ∈ G , a ∈ A a \in A a ∈ A ) and the right Cayley graph Cay ( G , B ) \operatorname{Cay}(G,B) Cay ( G , B ) (whose edges consist of pairs of the form { g , g b } \{g,gb\} { g , g b } , g ∈ G g \in G g ∈ G , b ∈ B b \in B b ∈ B ). Those two graphs should be good expander graphs.
The vertices of the square complex are partitioned into four copies of the group G G G named V 00 V_{00} V 00 , V 10 V_{10} V 10 , V 11 V_{11} V 11 , V 01 V_{01} V 01 . So a vertex is a couple ( g , i j ) (g,ij) ( g , ij ) , g ∈ G g \in G g ∈ G , i , j ∈ { 0 , 1 } i,j \in\{0,1\} i , j ∈ { 0 , 1 } . Squares (or quadrangles) are defined as quadruples of vertices of the form
{ ( g , 00 ) , ( a g , 10 ) , ( a g b , 11 ) , ( g b , 01 ) } \{(g,00),(ag,10),(agb,11),(gb,01)\} {( g , 00 ) , ( a g , 10 ) , ( a g b , 11 ) , ( g b , 01 )}
as represented on Figure 1 .
Figure 1. Square { ( g , 00 ) , ( a g , 10 ) , ( a g b , 11 ) , ( g b , 01 ) } \{(g,00),(ag,10),(agb,11),(gb,01)\} {( g , 00 ) , ( a g , 10 ) , ( a g b , 11 ) , ( g b , 01 )} of the complex.
Local views. For a vertex v v v , we denote by Q ( v ) Q(v) Q ( v ) the square neighbourhood (or local view) of v v v , i.e. the set of squares incident to v v v . The set Q ( v ) Q(v) Q ( v ) is naturally isomorphic to A × B A \times B A × B (and hence of cardinality Δ 2 \Delta^2 Δ 2 ). Given any square q ∈ Q q \in Q q ∈ Q , we may consider the four vertices incident to q q q and how their respective local views intersect. Figure 2 illustrates the situation. Given a vertex v v v in V i j V_{ij} V ij and a neighbour w w w of v v v in V ( i + 1 ) j V_{(i+1)j} V ( i + 1 ) j , we have that the local views Q ( v ) Q(v) Q ( v ) and Q ( w ) Q(w) Q ( w ) intersect in exactly one row of Q ( v ) Q(v) Q ( v ) and Q ( w ) Q(w) Q ( w ) . If w w w is a neighbour of v v v in V i ( j + 1 ) V_{i(j+1)} V i ( j + 1 ) , then their local views intersect in exactly one column. Furthermore, this common row or column is labelled (by elements of B B B or by elements of A A A ) in exactly the same way, whether it is viewed from v v v or from w w w [23 , 22 ] .
Figure 2. The four local views Q ( v ) Q(v) Q ( v ) that contain the square { ( g , 00 ) , ( a g , 10 ) , ( a g b , 11 ) , ( g b , 01 ) } \{(g,00),(ag,10),(agb,11),(gb,01)\} {( g , 00 ) , ( a g , 10 ) , ( a g b , 11 ) , ( g b , 01 )} . The views of two vertices connected by an A A A -edge (resp. a B B B -edge) share a row depicted in red (resp. a column in blue). We may choose the labeling so as to ensure that a given square, such as the one in red and blue, is indexed similarly, by ( a , b ) (a,b) ( a , b ) here, in the four local views.
The inner codes. The N = ∣ G ∣ Δ 2 N = |G|\Delta^2 N = ∣ G ∣ Δ 2 squares of the square complex index the coordinates (the qubits) of the quantum code. The local views of the vertices V 00 V_{00} V 00 and the vertices V 11 V_{11} V 11 support the X X X -check equations (or X X X -generators) that make up the rows of H X H_X H X . The local views of the vertices V 10 ∪ V 01 V_{10} \cup V_{01} V 10 ∪ V 01 likewise host the Z Z Z -check equations.
In the original quantum Tanner code construction, for simplicity’s sake, only two component codes of length Δ \Delta Δ were used, C A C_A C A and C B C_B C B . Here we shall need a slightly more general setting involving four component codes of length Δ \Delta Δ .
On the local views of vertices of V 00 V_{00} V 00 we put equations drawn from a basis of the tensor code C A ⊗ C B C_A \otimes C_B C A ⊗ C B , and for vertices of V 11 V_{11} V 11 we put equations drawn from a basis of D A ⊗ D B D_A \otimes D_B D A ⊗ D B . For vertices of V 01 V_{01} V 01 we use the code C A ⊥ ⊗ D B ⊥ C_A^{\perp} \otimes D_B^{\perp} C A ⊥ ⊗ D B ⊥ and for vertices of V 10 V_{10} V 10 we use the code D A ⊥ ⊗ C B ⊥ D_A^{\perp} \otimes C_B^{\perp} D A ⊥ ⊗ C B ⊥ . The situation is illustrated on Figure 3
Figure 3. Local constraints.
We view A × B A \times B A × B as a matrix with rows indexed by A A A and columns indexed by B B B . Thus C A ⊗ C B C_A \otimes C_B C A ⊗ C B has columns in C A C_A C A and rows in C B C_B C B . A B B B -edge shares a column and an A A A -edge shares a row. The V 00 V_{00} V 00 –V 01 V_{01} V 01 and V 11 V_{11} V 11 –V 10 V_{10} V 10 overlaps pair C A C_A C A with C A ⊥ C_A^\perp C A ⊥ and D A D_A D A with D A ⊥ D_A^\perp D A ⊥ , respectively. The V 00 V_{00} V 00 –V 10 V_{10} V 10 and V 11 V_{11} V 11 –V 01 V_{01} V 01 overlaps pair C B C_B C B with C B ⊥ C_B^\perp C B ⊥ and D B D_B D B with D B ⊥ D_B^\perp D B ⊥ , respectively. In particular, if v v v and w w w are vertices in V 00 V_{00} V 00 and V 01 V_{01} V 01 respectively, then their local views share a column, and an equation on Q ( v ) Q(v) Q ( v ) hosts a word of C A C_A C A on its columns, while an equation on Q ( w ) Q(w) Q ( w ) hosts a word of C A ⊥ C_A^\perp C A ⊥ on its columns, ensuring orthogonality. Checking the remaining three case, we see that all X X X -checks therefore commute with all Z Z Z -checks.
The original construction used D A = C A D_A = C_A D A = C A and D B = C B D_B = C_B D B = C B , but the extra leeway will be useful to us.
Minimum distance and decoding from adversarial errors. To achieve good distance, we need three properties of the constituents of the quantum Tanner code. First, the square complex should be chosen to have good expansion properties. In more concrete terms, this means that we chose the group G G G and the generating sets A A A and B B B so that associated Cayley graphs Cay ( A , G ) \operatorname{Cay}(A,G) Cay ( A , G ) and Cay ( G , B ) \operatorname{Cay}(G,B) Cay ( G , B ) are Ramanujan graphs. Secondly, we need the component codes C A , C B , D A , D B C_A,C_B,D_A,D_B C A , C B , D A , D B and their duals to all have good distance. This means they should be chosen from a family of codes for which the length Δ \Delta Δ can be arbitrarily large, and such that all their minimum distances are at least δ Δ \delta\Delta δ Δ for some fixed constant δ > 0 \delta> 0 δ > 0 . This will typically be obtained by chosen the component inner codes to be random of fixed rates.
Finally, the four tensor codes on Figure 3 should have sufficient robustness (also called robust testability, or product expansion). A pair of codes C A , C B C_A,C_B C A , C B of length Δ \Delta Δ has robustness κ \kappa κ if for any dual tensor codeword x ∈ ( C A ⊥ ⊗ C B ⊥ ) \mathbf{x} \in(C_A^\perp\otimes C_B^\perp) x ∈ ( C A ⊥ ⊗ C B ⊥ ) , there exist c ∈ C A ⊗ F 2 r , r ∈ F 2 r ⊗ C B \mathbf{c} \in C_A \otimes\mathbb{F}_2^r,\mathbf{r} \in\mathbb{F}_2^r \otimes C_B c ∈ C A ⊗ F 2 r , r ∈ F 2 r ⊗ C B such that x = c + r \mathbf{x} = \mathbf{c} + \mathbf{r} x = c + r and
∣ x ∣ ≥ κ Δ ( ∥ c ∥ + ∥ r ∥ ) , |\mathbf{x}| \ge\kappa\Delta(\|\mathbf{c}\|+\|\mathbf{r}\|), ∣ x ∣ ≥ κ Δ ( ∥ c ∥ + ∥ r ∥ ) ,
where ∣ ⋅ ∣ |\cdot| ∣ ⋅ ∣ denotes the Hamming weight and ∥ ⋅ ∥ \|\cdot\| ∥ ⋅ ∥ counts the number of nonzero columns (resp. rows) of c \mathbf{c} c (resp. r \mathbf{r} r ). It was shown [17 , 18 , 7 ] , that pairs of random codes of fixed prescribed rates and growing lengths Δ \Delta Δ have a fixed robustness κ \kappa κ with a probability that tends to 1 as Δ \Delta Δ tends to infinity. When the rates of the inner component codes C A , C B , D A , D B C_A,C_B,D_A,D_B C A , C B , D A , D B are fixed, one can satisfy all these requirements simultaneously, with probability tending to one as Δ → ∞ \Delta\to\infty Δ → ∞ , by choosing independent uniform random linear component codes. We have:
Theorem 3. [22 ] For a constant Δ \Delta Δ large enough, the quantum Tanner codes described in the construction above with a Ramanujan left-right Cayley complex have a linear minimum distance:
d min ≥ δ 2 κ 2 256 Δ N . d_{\min} \ge\frac{\delta^{2}\kappa^{2}}{256\Delta}N. d m i n ≥ 256Δ δ 2 κ 2 N . Theorem 3 was proved in [22 ] in the special case D A = C A D_A=C_A D A = C A and D B = C B D_B=C_B D B = C B , however the proof extends verbatim to the general case. See § 3.5 for a few further comments.
From [22 Theorem 13] we also have:
Theorem 4. For a large enough constant Δ \Delta Δ , the quantum Tanner code admits a linear-time decoding algorithm that decodes any error pattern of weight at most a δ 2 κ 3 N / Δ a\delta^{2}\kappa^{3}N/\Delta a δ 2 κ 3 N /Δ , for some absolute constant a a a .
Asymmetric inner rates. Our strategy is to start decoding with two parallel decoding steps, one involving all the X X X -checks on the local views of all the vertices of V 00 V_{00} V 00 , and one involving all the Z Z Z -checks on the local views of all the vertices of V 01 V_{01} V 01 . We want to claim that these two parallel decoding steps will get rid of a large majority of the erasures, so that the remaining number of erasures falls below the decoding threshold for the worst-case error decoder of [22 ] . For this to work, we first need most of the X X X -checks and Z Z Z -checks to be concentrated on the vertices of V 00 V_{00} V 00 and V 01 V_{01} V 01 . We proceed in the following way.
The codes C A C_A C A and C B C_B C B are chosen with rates ρ A \rho_A ρ A and ρ B \rho_B ρ B respectively. However, the code D A D_A D A is chosen with rate approaching 1 1 1 , namely 1 − ε 1-\varepsilon 1 − ε . The code D B D_B D B is chosen with vanishing rate ε \varepsilon ε . The total number of X X X and Z Z Z checks are given by
m X = N ( ρ A ρ B + ( 1 − ε ) ε ) , m Z = N ( ( 1 − ρ A ) ( 1 − ε ) + ε ( 1 − ρ B ) ) . m_X = N\left(\rho_A\rho_B+(1-\varepsilon)\varepsilon\right), \qquad m_Z = N\left((1-\rho_A)(1-\varepsilon)+\varepsilon(1-\rho_B)\right). m X = N ( ρ A ρ B + ( 1 − ε ) ε ) , m Z = N ( ( 1 − ρ A ) ( 1 − ε ) + ε ( 1 − ρ B ) ) .
Consequently k / N ≥ 1 − ( m X + m Z ) / N k/N \ge1-(m_X+m_Z)/N k / N ≥ 1 − ( m X + m Z ) / N . Neglecting ε \varepsilon ε terms, the total number of X X X checks is therefore ρ A ρ B N \rho_A\rho_BN ρ A ρ B N while the total number of Z Z Z -checks is ( 1 − ρ A ) N (1-\rho_A)N ( 1 − ρ A ) N .
We need the number of X X X -checks to equal the number of Z Z Z -checks. This is because we want both sets of parity-check equations to be able to correct the same erasure patterns and have the same decoding threshold. To balance the leading local erasure thresholds as ε → 0 \varepsilon\to0 ε → 0 , we choose
1 − ρ A = ρ A ρ B = ρ . 1-\rho_A=\rho_A\rho_B=\rho. 1 − ρ A = ρ A ρ B = ρ .
So we set ρ A = 1 / ( 1 + ρ B ) \rho_A=1/(1+\rho_B) ρ A = 1/ ( 1 + ρ B ) and ρ = ρ B / ( 1 + ρ B ) \rho=\rho_B/(1+\rho_B) ρ = ρ B / ( 1 + ρ B ) . Equivalently, for every 0 ≤ ρ ≤ 1 / 2 0\leq\rho\leq1/2 0 ≤ ρ ≤ 1/2 , we set
ρ A = 1 − ρ \rho_A=1-\rho ρ A = 1 − ρ
ρ B = ρ 1 − ρ \rho_B=\frac{\rho}{1-\rho} ρ B = 1 − ρ ρ
which give 0 ≤ ρ A ≤ 1 0\leq\rho_A\leq1 0 ≤ ρ A ≤ 1 and 0 ≤ ρ B ≤ 1 0\leq\rho_B\leq1 0 ≤ ρ B ≤ 1 . For every value 0 ≤ ρ ≤ 1 / 2 0\leq\rho\leq1/2 0 ≤ ρ ≤ 1/2 , we achieve therefore a quantum code of rate arbitrarily close to 1 − 2 ρ 1-2\rho 1 − 2 ρ . All possible quantum code rates R R R can therefore be achieved in this way. Note that the rate ε \varepsilon ε is chosen to be arbitrarily small, depending on how close we want to be to capacity, but is then fixed and non-zero. A sufficiently large Δ \Delta Δ is then chosen after which the total length can be taken to grow to infinity.
In concrete terms, Theorem 4 translates into:
Corollary 5. Given the values ρ \rho ρ and ε \varepsilon ε that determine the above quantum Tanner code construction with a large enough Δ \Delta Δ , there is a linear time decoding algorithm that decodes any error pattern of weight at most f ( ρ , ε ) N / Δ f(\rho,\varepsilon)N/\Delta f ( ρ , ε ) N /Δ , where f ( ρ , ε ) f(\rho,\varepsilon) f ( ρ , ε ) is a positive quantity that depends only on ρ \rho ρ and ε \varepsilon ε .
The square-neighbourhoods of the vertices of V 00 V_{00} V 00 make up a partition of the set Q Q Q of squares, i.e. the code set of coordinates. For every vertex v v v of V 00 V_{00} V 00 we are given a syndrome value H v e v T \mathbf{H}_v\mathbf{e}_v^{T} H v e v T , where H v \mathbf{H}_v H v is the parity-check matrix corresponding to the set of local constraints, which in this case means that H v \mathbf{H}_v H v is a generating matrix for the local tensor code C v ≃ C A ⊗ C B C_v \simeq C_A \otimes C_B C v ≃ C A ⊗ C B . We are also given a local erasure pattern ε v \boldsymbol{\varepsilon}_v ε v that supports the error vector e v \mathbf{e}_v e v . The error vector e v \mathbf{e}_v e v is the unique solution corresponding to the syndrome value s = H v e v T s=\mathbf{H}_v\mathbf{e}_v^{T} s = H v e v T whenever the local erasure vector ε v \boldsymbol{\varepsilon}_v ε v does not cover any non-zero codeword of the dual-tensor code ( C A ⊗ C B ) ⊥ (C_A\otimes C_B)^\perp ( C A ⊗ C B ) ⊥ (meaning we do not have supp ( c v ) ⊂ supp ( ε v ) \operatorname{supp}(c_v)\subset\operatorname{supp}(\boldsymbol{\varepsilon}_v) supp ( c v ) ⊂ supp ( ε v ) for any non-zero codeword c v ∈ C v ⊥ c_v\in C_v^\perp c v ∈ C v ⊥ ). For large enough Δ \Delta Δ , unique decoding will occur with overwhelming probability if the erasure probability p p p is chosen to be below the erasure decoding threshold of the dual tensor code ( C A ⊗ C B ) ⊥ (C_A\otimes C_B)^\perp ( C A ⊗ C B ) ⊥ . If the decoding threshold for ( C A ⊗ C B ) ⊥ (C_A\otimes C_B)^\perp ( C A ⊗ C B ) ⊥ can be proved to converge to ρ A ρ B \rho_A\rho_B ρ A ρ B , for values of p < ρ A ρ B p<\rho_A\rho_B p < ρ A ρ B and for growing Δ \Delta Δ , we recover in this way most of the Z Z Z component of the global error vector. Similarly for the Z Z Z -checks on the square neighbourhoods of vertices of V 01 V_{01} V 01 , for p < ( 1 − ρ A ) ( 1 − ε ) p<(1-\rho_A)(1-\varepsilon) p < ( 1 − ρ A ) ( 1 − ε ) we recover most of the X X X -component of the global error vector. We can then finish decoding by applying the worst-case decoder of Corollary 5.
We see that for this method to yield quantum erasure capacity achieving code families, we encounter one obstacle. The component codes C A C_A C A , C B C_B C B , D A D_A D A , D B D_B D B are chosen randomly so as to achieve the required distance and robustness properties: does the family of duals of tensors of random classical linear codes achieve capacity for the classical erasure channel?
Tensor codes and their duals on the classical erasure channel
For the construction of quantum Tanner codes we described above, we need to prove that the family of dual tensor codes for two random linear component codes achieves capacity on the erasure channel. Since this is a purely classical question, and in order not to confuse any reader that may only want to read the classical portion of this paper, we revert to classical notation and denote our two component codes by C 1 , C 2 ⊆ F 2 n C_1,C_2\subseteq\mathbb{F}_2^n C 1 , C 2 ⊆ F 2 n . For our application to quantum Tanner codes, the blocklength n n n will be Δ \Delta Δ and the codes C 1 , C 2 C_1,C_2 C 1 , C 2 will be various combinations of C A C_A C A , C B C_B C B , D A D_A D A , D B D_B D B and their duals.
We will first prove a much more general statement in Theorem 7, which is itself of independent interest: that on the erasure channel, the tensor product of any two capacity-achieving code families is capacity-achieving, provided their error probabilities decay fast enough. Our proof of this fact is outlined in Sections 5.1 and 5.2. At a high level, we first show that introducing a certain type of correlations between erasures can only make the decoding harder. Introducing correlations in accordance with the tensor structure of our code (i.e. correlating entries along either the rows or the columns), we are then able to show that if two arbitrary linear codes C 1 C_1 C 1 and C 2 C_2 C 2 can correct random erasures of rates ρ 1 \rho_1 ρ 1 and ρ 2 \rho_2 ρ 2 respectively, the code C 1 ⊗ C 2 C_1 \otimes C_2 C 1 ⊗ C 2 must be able to correct random erasures of rate ρ 1 + ρ 2 − ρ 1 ρ 2 \rho_1 + \rho_2 - \rho_1\rho_2 ρ 1 + ρ 2 − ρ 1 ρ 2 , with an error bound depending on the component errors and lengths. For capacity-achieving code families with this error decay, this implies that their tensor-product family is capacity achieving. For our application to quantum Tanner codes, we would then want to claim that the family of codes ( C 1 ⊗ C 2 ) ⊥ (C_1 \otimes C_2)^\perp ( C 1 ⊗ C 2 ) ⊥ must achieve capacity as well. We show that that is indeed the case as long as C 1 C_1 C 1 and C 2 C_2 C 2 satisfy the robustness property; since uniformly random linear codes are robust with high probability, we get that the family of dual tensor products of two random linear codes achieves capacity. We give a more detailed overview of the proof below.
Correlations can only hurt
We compare the decoding performance of an arbitrary Boolean linear code C C C under independent and correlated erasures. Fix some parameter ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) and consider the following two randomized erasure patterns:
x \mathbf{x} x is ρ \rho ρ -noisy, meaning that each coordinate is independently sampled to be 1 with probability ρ \rho ρ and 0 otherwise.
x ~ \widetilde{\mathbf{x}} x is ρ \rho ρ -noisy, conditioned on some tuples of coordinates being equal (that is, some subsets of coordinates { i 1 , i 2 , … , i t } \{i_1,i_2,\ldots,i_t\} { i 1 , i 2 , … , i t } satisfy x ~ i 1 = x ~ i 2 = … = x ~ i t \widetilde{x}_{i_1}=\widetilde{x}_{i_2}=\ldots=\widetilde{x}_{i_t} x i 1 = x i 2 = … = x i t ).
We show that the expected dimension of the subset of codewords c ∈ C c \in C c ∈ C covered by the correlated erasure pattern x ~ \widetilde{\mathbf{x}} x is always greater than the expected dimension of the subset of codewords c ∈ C c \in C c ∈ C covered by the ρ \rho ρ -noisy erasure pattern x \mathbf{x} x . That is, defining S C ( x ) S_C(\mathbf{x}) S C ( x ) to be the set of codewords c ∈ C c \in C c ∈ C whose support satisfies supp ( c ) ⊆ supp ( x ) \operatorname{supp}(c) \subseteq\operatorname{supp}(\mathbf{x}) supp ( c ) ⊆ supp ( x ) , we have
E x [ dim S C ( x ) ] ≤ E x ~ [ dim S C ( x ~ ) ] . (1) \mathbb{E}_{\mathbf{x}}[\dim S_C(\mathbf{x})] \le\mathbb{E}_{\widetilde{\mathbf{x}}}[\dim S_C(\widetilde{\mathbf{x}})]. \tag*{(1)} E x [ dim S C ( x )] ≤ E x [ dim S C ( x )] . (1)
Note that equation (1) is a meaningful proxy for the decoding performance of C C C under noise x \mathbf{x} x and x ~ \widetilde{\mathbf{x}} x , because by linearity of C C C , the number of codewords c ∈ C c \in C c ∈ C whose support satisfies supp ( c ) ⊆ supp ( x ) \operatorname{supp}(c) \subseteq\operatorname{supp}(\mathbf{x}) supp ( c ) ⊆ supp ( x ) is exactly equal to the number of codewords that cannot be distinguished from the sent codeword when corrupted by x \mathbf{x} x .
The reason inequality (1) holds is simply that the function f ( x ) : = dim S C ( x ) f(\mathbf{x}) := \dim S_C(\mathbf{x}) f ( x ) := dim S C ( x ) is supermodular: f ( x ) + f ( y ) ≤ f ( x ∨ y ) + f ( x ∧ y ) f(\mathbf{x}) + f(\mathbf{y}) \le f(\mathbf{x} \vee\mathbf{y}) + f(\mathbf{x} \wedge\mathbf{y}) f ( x ) + f ( y ) ≤ f ( x ∨ y ) + f ( x ∧ y ) . With the other coordinates fixed, its expectation under independent Bernoulli( ρ ) (\rho) ( ρ ) coordinates is convex as a function of the common parameter ρ \rho ρ . Thus intuitively, a probability distribution that favors strings of extremal weights will have higher expectation than a probability distribution that is concentrated on strings of relative weight ≈ ρ \approx\rho ≈ ρ (assuming the average relative weight of both random strings is ρ \rho ρ ).
The tensor code C 1 ⊗ C 2 C_1 \otimes C_2 C 1 ⊗ C 2
We will use (1) to prove that if C 1 , C 2 ⊆ F 2 n C_1,C_2 \subseteq\mathbb{F}_2^n C 1 , C 2 ⊆ F 2 n can decode random erasures of rates ρ 1 \rho_1 ρ 1 and ρ 2 \rho_2 ρ 2 respectively, then C 1 ⊗ C 2 C_1 \otimes C_2 C 1 ⊗ C 2 can decode random erasures of rate ρ 1 + ρ 2 − ρ 1 ρ 2 \rho_1 + \rho_2 - \rho_1\rho_2 ρ 1 + ρ 2 − ρ 1 ρ 2 , with failure probability at most n 2 ( n δ 1 + δ 2 ) n^2(n\delta_1+\delta_2) n 2 ( n δ 1 + δ 2 ) , where δ i \delta_i δ i is the failure probability for C i C_i C i .
We think of every codeword of C 1 ⊗ C 2 C_1 \otimes C_2 C 1 ⊗ C 2 as an n × n n \times n n × n Boolean matrix whose columns are codewords of C 1 C_1 C 1 and whose rows are codewords of C 2 C_2 C 2 . We think of the ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) (\rho_1+\rho_2-\rho_1\rho_2) ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) -noisy string x ∈ F 2 n × n \mathbf{x} \in\mathbb{F}_2^{n \times n} x ∈ F 2 n × n as
x = y ∨ z (2) \mathbf{x}=\mathbf{y}\vee\mathbf{z} \tag*{(2)} x = y ∨ z (2)
for a ρ 1 \rho_1 ρ 1 -noisy string y \mathbf{y} y and a ρ 2 \rho_2 ρ 2 -noisy string z \mathbf{z} z . (We leave it to the reader to verify that x \mathbf{x} x is indeed ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) (\rho_1+\rho_2-\rho_1\rho_2) ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) -noisy.) We also define z ~ \widetilde{\mathbf{z}} z to be a ρ 2 \rho_2 ρ 2 -noisy n × n n \times n n × n string, conditioned on the fact that entries that are in the same column must be equal (in other words, each column of z ~ \widetilde{\mathbf{z}} z is independently sampled to be the all-ones vector with probability ρ 2 \rho_2 ρ 2 and the all-zeroes vector with probability 1 − ρ 2 1-\rho_2 1 − ρ 2 ).
Equation (1) bounds the expected covered-subcode dimension for y ∨ z \mathbf{y}\vee\mathbf{z} y ∨ z by that of y ∨ z ~ \mathbf{y}\vee\widetilde{\mathbf{z}} y ∨ z , for each fixed erasure pattern y ∈ F 2 n × n \mathbf{y}\in\mathbb{F}_2^{n\times n} y ∈ F 2 n × n . Thus, using equation (2), one can prove that C 1 ⊗ C 2 C_1\otimes C_2 C 1 ⊗ C 2 can decode ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) (\rho_1+\rho_2-\rho_1\rho_2) ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) -noisy erasures, it is sufficient to prove that C 1 ⊗ C 2 C_1\otimes C_2 C 1 ⊗ C 2 can decode the erasure pattern y ∨ z ~ \mathbf{y}\vee\widetilde{\mathbf{z}} y ∨ z with sufficiently small failure probability. We thus give a simple decoding algorithm for decoding erasures of type y ∨ z ~ \mathbf{y}\vee\widetilde{\mathbf{z}} y ∨ z : first, independently decode each column using the code C 1 C_1 C 1 . Then, decode the remaining erasures row-by-row by using the code C 2 C_2 C 2 . Note that by assumption, C 1 C_1 C 1 can decode random erasures of rate ρ 1 \rho_1 ρ 1 . Writing δ 1 \delta_1 δ 1 for its failure probability, a union bound shows that all columns can decode their y \mathbf{y} y -erasures with probability at least 1 − n δ 1 1-n\delta_1 1 − n δ 1 . On this event, every column of the sent message that is not erased by the erasure pattern z ~ \widetilde{\mathbf{z}} z will be decoded successfully in our algorithm’s first step. For every row, our algorithm’s second step then only needs to be able to recover the entries that were erased by z ~ \widetilde{\mathbf{z}} z . But restricted to any single row, z ~ \widetilde{\mathbf{z}} z is just a ρ 2 \rho_2 ρ 2 -noisy string. Since C 2 C_2 C 2 can decode random erasures of rate ρ 2 \rho_2 ρ 2 , the second step of our algorithm has conditional failure probability at most δ 2 \delta_2 δ 2 on this event, since y \mathbf{y} y and z ~ \widetilde{\mathbf{z}} z are independent. Thus the two-stage failure probability is at most n δ 1 + δ 2 n\delta_1+\delta_2 n δ 1 + δ 2 . Upper bounding the covered-subcode dimension by n 2 n^2 n 2 gives the independent-erasure failure bound n 2 ( n δ 1 + δ 2 ) n^2(n\delta_1+\delta_2) n 2 ( n δ 1 + δ 2 ) and the family corollary uses the sufficient condition that this bound tends to zero.
The dual tensor code ( C 1 ⊗ C 2 ) ⊥ (C_1 \otimes C_2)^\perp ( C 1 ⊗ C 2 ) ⊥
Once we have established that the family of tensor codes C 1 ⊗ C 2 C_1\otimes C_2 C 1 ⊗ C 2 achieves capacity, we want to prove that its dual family achieves capacity as well. We first use standard arguments to show that for any linear code family of rate R R R that achieves capacity, the dual family performs “pretty well” under random erasures of rate R R R , in that the expected dimension of its covered subcode is sublinear in the blocklength of the code.
We then want to show that randomly revealing a sublinear number of erased coordinates (or equivalently, lowering the rate of erasures from R R R to R − o ( 1 ) R-o(1) R − o ( 1 ) ) will decrease the expected dimension of the covered subcode from sublinear to o ( 1 ) o(1) o ( 1 ) . To show this, it is sufficient to show that, with high probability over the choice of the R R R -noisy string x \mathbf{x} x , the weight of every codeword of ( C 1 ⊗ C 2 ) ⊥ (C_1\otimes C_2)^\perp ( C 1 ⊗ C 2 ) ⊥ that is covered by x \mathbf{x} x is linear in the blocklength of the code. Indeed, we only need to reveal a small (barely superconstant) number of random coordinates to uncover a codeword of linear length with high probability. So, every time we reveal a random set of coordinates of barely superconstant size, we expect the dimension of the covered subcode to decrease by at least 1. Repeating this process until the dimension of the covered subcode reaches 0, we get that if the covered subcode had sublinear size to begin with, revealing a sublinear number of random coordinates recovers every erased codeword with high probability.
All that remains to show is then that with high probability, every codeword of ( C 1 ⊗ C 2 ) ⊥ ⊆ F 2 n × n (C_1 \otimes C_2)^\perp\subseteq\mathbb{F}_2^{n \times n} ( C 1 ⊗ C 2 ) ⊥ ⊆ F 2 n × n that is covered by the R R R -noisy erasure pattern x x x has weight linear in the blocklength n 2 n^2 n 2 . For this, we make use of the robustness property of our code: every codeword of weight o ( n 2 ) o(n^2) o ( n 2 ) can be expressed as a sum of o ( n ) o(n) o ( n ) column-codewords of C 1 ⊥ C_1^\perp C 1 ⊥ and of o ( n ) o(n) o ( n ) row-codewords of C 2 ⊥ C_2^\perp C 2 ⊥ . Thus if a codeword of ( C 1 ⊗ C 2 ) ⊥ (C_1 \otimes C_2)^\perp ( C 1 ⊗ C 2 ) ⊥ of weight o ( n 2 ) o(n^2) o ( n 2 ) is erased, there must be a column where a C 1 ⊥ C_1^\perp C 1 ⊥ -codeword is erased in all but o ( n ) o(n) o ( n ) coordinates (if this is not true, then the same must be true for a row and the code C 2 ⊥ C_2^\perp C 2 ⊥ ). But removing a sublinear number of rows barely changes the rate of the column code, so since C 1 ⊥ C_1^\perp C 1 ⊥ is a uniformly random code of rate < 1 − R < 1-R < 1 − R , the probability that a column codeword of C 1 ⊥ C_1^\perp C 1 ⊥ is erased in all but o ( n ) o(n) o ( n ) coordinates under random erasures of rate R R R is bounded by 2 − Ω ( n ) 2^{-\Omega(n)} 2 − Ω ( n ) .
Comments. For simplicity, we presented our results for classical tensor codes in the setting where the codes C 1 , C 2 C_1,C_2 C 1 , C 2 are binary and have the same blocklength n n n . However, our proofs carry over to q q q -ary codes of different blocklengths (see Theorem 7 ).
Before moving on to the formal proofs, we recapitulate the main results of this paper. Points (1), (2) and (3) are stated more formally in Corollary 8, Theorem 15 and Theorem 16 respectively.
Consider any two families F 0 \mathcal{F}_0 F 0 and F 1 \mathcal{F}_1 F 1 of linear codes over any finite field F q \mathbb{F}_q F q and the tensor product family F 0 ⊗ F 1 \mathcal{F}_0 \otimes\mathcal{F}_1 F 0 ⊗ F 1 . If the component families achieve capacity on the erasure channel with length-n n n component error bounds δ 0 ( n ) , δ 1 ( n ) \delta_0(n), \delta_1(n) δ 0 ( n ) , δ 1 ( n ) satisfying n 3 δ 0 ( n ) + n 2 δ 1 ( n ) → 0 n^3\delta_0(n) + n^2\delta_1(n) \to0 n 3 δ 0 ( n ) + n 2 δ 1 ( n ) → 0 , then the family of tensor products of a code from F 0 \mathcal{F}_0 F 0 and a code from F 1 \mathcal{F}_1 F 1 can tolerate a proportion p p p of erasures arbitrarily close to capacity, meaning to 1 − R 0 R 1 1-R_0R_1 1 − R 0 R 1 . This implies that the family of tensor products of uniform random linear codes achieves capacity.
Duals of tensor codes of independent uniform random linear codes of the same length and rate R 0 R_0 R 0 and R 1 R_1 R 1 can be decoded from a proportion p p p of erasures that converges with the code length to p = R 0 R 1 p=R_0R_1 p = R 0 R 1 . Thus, the duals of random tensor codes achieve vanishing error probability arbitrarily close to capacity (see Theorem 15 ).
For any target rate R R R , 0 < R < 1 0<R<1 0 < R < 1 and any 0 < ε < ( 1 − R ) / 2 0<\varepsilon<(1-R)/2 0 < ε < ( 1 − R ) /2 , there exists a family of binary quantum Tanner codes with increasing length N N N and rate at least R R R , constructed over a left-right Cayley square complex of fixed degree Δ \Delta Δ . These codes have asymptotically good minimum distance (i.e., bounded from below by δ N \delta N δ N for a constant δ \delta δ ) and, when submitted to a quantum erasure channel with erasure probability p = 1 − R 2 − ε p=\frac{1-R}{2}-\varepsilon p = 2 1 − R − ε , they admit a linear-time decoding algorithm that achieves a decoding error probability that decreases to zero exponentially with N N N . Here Δ \Delta Δ and all constants are fixed after R R R and ε \varepsilon ε are chosen. The collection over target rates achieves quantum erasure capacity in the family sense above.
Part 2. Proofs
Notation and Conventions
Throughout this paper, we denote by [ n ] [n] [ n ] the set of integers { 1 , 2 , … , n } \{1,2,\ldots,n\} { 1 , 2 , … , n } and by log X \log X log X the logarithm of a positive real number X X X in base 2. We denote by F q n \mathbb{F}_q^n F q n the set of all row-vectors of length n n n with entries from F q \mathbb{F}_q F q , and for any x ∈ F q n \mathbf{x} \in\mathbb{F}_q^n x ∈ F q n , we define supp ( x ) ⊆ [ n ] \operatorname{supp}(\mathbf{x}) \subseteq[n] supp ( x ) ⊆ [ n ] to be the subset of indices i i i where x i ≠ 0 x_i \ne0 x i = 0 .
A q q q -ary linear code is a subspace C ⊆ F q n C \subseteq\mathbb{F}_q^n C ⊆ F q n . We define the rate of a linear code C ⊆ F q n C \subseteq\mathbb{F}_q^n C ⊆ F q n to be rate ( C ) = dim C n \operatorname{rate}(C) = \frac{\dim C}{n} rate ( C ) = n d i m C and define its generator matrix and its parity-check matrix to be any matrices G ∈ F q dim C × n \mathbf{G} \in\mathbb{F}_q^{\dim C \times n} G ∈ F q d i m C × n and H ∈ F q ( n − dim C ) × n \mathbf{H} \in\mathbb{F}_q^{(n-\dim C) \times n} H ∈ F q ( n − d i m C ) × n satisfying
C = { z G : z ∈ F q dim C } . C = \left\{ \mathbf{z}\mathbf{G} : \mathbf{z} \in\mathbb{F}_q^{\dim C} \right\}. C = { zG : z ∈ F q d i m C } .
C = { c ∈ F q n : H c T = 0 } . C = \left\{ \mathbf{c} \in\mathbb{F}_q^n : \mathbf{H}\mathbf{c}^{\mathsf{T}} = 0 \right\}. C = { c ∈ F q n : H c T = 0 } .
For any matrix M \mathbf{M} M with entries in F q \mathbb{F}_q F q , we define ∥ M ∥ c o l \lVert\mathbf{M} \rVert_{\mathrm{col}} ∥ M ∥ col to be the number of nonzero columns of M \mathbf{M} M and define ∥ M ∥ r o w \lVert\mathbf{M} \rVert_{\mathrm{row}} ∥ M ∥ row to be the number of nonzero rows of M \mathbf{M} M . When it is clear from context, we will sometimes drop the subscript and write ∥ M ∥ \lVert\mathbf{M} \rVert ∥ M ∥ to mean either ∥ M ∥ c o l \lVert\mathbf{M} \rVert_{\mathrm{col}} ∥ M ∥ col or ∥ M ∥ r o w \lVert\mathbf{M} \rVert_{\mathrm{row}} ∥ M ∥ row .
For any set Ω \Omega Ω and any probability distribution μ \mu μ on Ω \Omega Ω , we write x ∼ μ x \sim\mu x ∼ μ to denote a random variable x ∈ Ω x \in\Omega x ∈ Ω that is sampled according to μ \mu μ . For any ρ ∈ [ 0 , 1 ] \rho\in[0,1] ρ ∈ [ 0 , 1 ] and any n ∈ N n \in\mathbb{N} n ∈ N , we abuse notation and write x ∼ ρ n \mathbf{x} \sim\rho_n x ∼ ρ n to denote a ρ \rho ρ -noisy random vector x ∈ F 2 n \mathbf{x} \in\mathbb{F}_2^n x ∈ F 2 n , i.e. a random vector x ∈ F 2 n \mathbf{x} \in\mathbb{F}_2^n x ∈ F 2 n whose i i i th coordinate is (independently across coordinates):
x i = { 1 with probability ρ , 0 otherwise. x_i =
\begin{cases}
1 & \text{with probability } \rho,\\
0 & \text{otherwise.}
\end{cases} x i = { 1 0 with probability ρ , otherwise.
When n n n is clear from context, we remove the subscript and write x ∼ ρ \mathbf{x} \sim\rho x ∼ ρ to mean x ∼ ρ n \mathbf{x} \sim\rho_n x ∼ ρ n . In the classical case, we will think of the coordinates i ∈ [ n ] i \in[n] i ∈ [ n ] where x i = 1 x_i = 1 x i = 1 as the coordinates that are erased by the channel and will call x \mathbf{x} x the erasure pattern . For any erasure pattern x ∈ { 0 , 1 } n \mathbf{x} \in\{0,1\}^n x ∈ { 0 , 1 } n and any linear code C ⊆ F q n C \subseteq\mathbb{F}_q^n C ⊆ F q n , we define the subcode of C C C covered by x \mathbf{x} x to be
S C ( x ) : = { c ∈ C : c i = 0 for all i ∈ [ n ] where x i = 0 } . S_C(\mathbf{x}) := \left\{ \mathbf{c} \in C : c_i = 0 \text{ for all } i \in[n] \text{ where } x_i = 0 \right\}. S C ( x ) := { c ∈ C : c i = 0 for all i ∈ [ n ] where x i = 0 } .
For simplicity, for any classical code C ⊆ F q n C \subseteq\mathbb{F}_q^n C ⊆ F q n and any erasure pattern x ∈ F 2 n \mathbf{x} \in\mathbb{F}_2^n x ∈ F 2 n , we denote the indicator function of a decoding success by
decode ( C , x ) = { 1 if S C ( x ) = { 0 } , 0 otherwise. \operatorname{decode}(C,\mathbf{x}) =
\begin{cases}
1 & \text{if } S_C(\mathbf{x}) = \{0\},\\
0 & \text{otherwise.}
\end{cases} decode ( C , x ) = { 1 0 if S C ( x ) = { 0 } , otherwise.
In the quantum setting, we use ε \boldsymbol{\varepsilon} ε instead of x \mathbf{x} x to denote the erasure pattern. Recall that a CSS code of length N N N is defined by two Boolean matrices H X , H Z \mathbf{H}_X,\mathbf{H}_Z H X , H Z whose rows are orthogonal (see § 2.1 ). For any CSS code C C C of length N N N and any erasure pattern ε ∈ { 0 , 1 } N \boldsymbol{\varepsilon} \in\{0,1\}^N ε ∈ { 0 , 1 } N , we define the indicator of a decoding success by
decode ( C , ε ) = { 1 if S C X ( ε ) ⊆ C Z ⊥ and S C Z ( ε ) ⊆ C X ⊥ , 0 otherwise. \operatorname{decode}(C,\varepsilon)=
\begin{cases}
1 & \text{if } S_{C_X}(\varepsilon)\subseteq C_Z^{\perp}\text{ and }S_{C_Z}(\varepsilon)\subseteq C_X^{\perp},\\
0 & \text{otherwise.}
\end{cases} decode ( C , ε ) = { 1 0 if S C X ( ε ) ⊆ C Z ⊥ and S C Z ( ε ) ⊆ C X ⊥ , otherwise.
Equivalently, the code C C C succeeds in decoding the erasure pattern ε \varepsilon ε if the erasure pattern ε \varepsilon ε and the syndromes H Z e X T \mathbf{H}_Z\mathbf{e}_X^{\mathsf{T}} H Z e X T and H X e Z T \mathbf{H}_X\mathbf{e}_Z^{\mathsf{T}} H X e Z T uniquely determine the cosets e X + C X ⊥ \mathbf{e}_X+C_X^{\perp} e X + C X ⊥ and e Z + C Z ⊥ \mathbf{e}_Z+C_Z^{\perp} e Z + C Z ⊥ for every e X , e Z ∈ F 2 n \mathbf{e}_X,\mathbf{e}_Z\in\mathbb{F}_2^n e X , e Z ∈ F 2 n with supp ( e X ) , supp ( e Z ) ⊆ supp ( ε ) \operatorname{supp}(\mathbf{e}_X),\operatorname{supp}(\mathbf{e}_Z)\subseteq\operatorname{supp}(\varepsilon) supp ( e X ) , supp ( e Z ) ⊆ supp ( ε ) .
For any vectors x , y ∈ F 2 n \mathbf{x},\mathbf{y}\in\mathbb{F}_2^n x , y ∈ F 2 n , we define x ‾ ∈ F 2 n \overline{\mathbf{x}}\in\mathbb{F}_2^n x ∈ F 2 n , x ∨ y ∈ F 2 n \mathbf{x}\vee\mathbf{y}\in\mathbb{F}_2^n x ∨ y ∈ F 2 n , x ∧ y ∈ F 2 n \mathbf{x}\wedge\mathbf{y}\in\mathbb{F}_2^n x ∧ y ∈ F 2 n and x ∖ y ∈ F 2 n \mathbf{x}\setminus\mathbf{y}\in\mathbb{F}_2^n x ∖ y ∈ F 2 n to be the vectors with i i i -coordinate
x ‾ i = 1 − x i \overline{x}_i=1-x_i x i = 1 − x i
[ x ∨ y ] i = { 0 if x i = y i = 0 , 1 otherwise, [\mathbf{x}\vee\mathbf{y}]_i=
\begin{cases}
0 & \text{if }x_i=y_i=0,\\
1 & \text{otherwise,}
\end{cases} [ x ∨ y ] i = { 0 1 if x i = y i = 0 , otherwise,
[ x ∧ y ] i = { 1 if x i = y i = 1 , 0 otherwise, [\mathbf{x}\wedge\mathbf{y}]_i=
\begin{cases}
1 & \text{if }x_i=y_i=1,\\
0 & \text{otherwise,}
\end{cases} [ x ∧ y ] i = { 1 0 if x i = y i = 1 , otherwise,
[ x ∖ y ] i = { 1 if x i = 1 and y i = 0 , 0 otherwise. [\mathbf{x}\setminus\mathbf{y}]_i=
\begin{cases}
1 & \text{if }x_i=1\text{ and }y_i=0,\\
0 & \text{otherwise.}
\end{cases} [ x ∖ y ] i = { 1 0 if x i = 1 and y i = 0 , otherwise.
The following definitions are used to make our informal notion of capacity-achieving code families precise.
Definition 1. A family F \mathcal{F} F of linear codes over a fixed finite field F q \mathbb{F}_q F q is a collection of ensembles (i.e., distributions) over codes with sequences of unbounded length. Each ensemble μ ∈ F \mu\in\mathcal{F} μ ∈ F has a fixed length n n n but the dimension may be stochastic. A family supports all rates if, for any R ∈ ( 0 , 1 ) R\in(0,1) R ∈ ( 0 , 1 ) , there is a sequence of ensembles with increasing length and rate converging to R R R in probability. A family has fixed-rate R R R if all sequences of ensembles with increasing length induce rate sequences converging to R R R in probability.
Definition 2. We say that a family F \mathcal{F} F achieves capacity on the erasure channel if, for any rate R R R supported by F \mathcal{F} F and rate gap ε > 0 \varepsilon>0 ε > 0 , the following holds. For all δ > 0 \delta>0 δ > 0 , there is an n 0 ∈ N n_0\in\mathbb{N} n 0 ∈ N and an ensemble μ ∈ F \mu\in\mathcal{F} μ ∈ F of length n 0 n_0 n 0 with expected rate at least R − ε R-\varepsilon R − ε and
Pr C ∼ μ x ∼ 1 − R − ε [ decode ( C , x ) = 0 ] < δ . (3) \Pr_{\substack{C\sim\mu\\x\sim1-R-\varepsilon}}\left[\operatorname{decode}(C,x)=0\right]<\delta. \tag*{(3)} C ∼ μ x ∼ 1 − R − ε Pr [ decode ( C , x ) = 0 ] < δ . (3)
Definition 3. The tensor-product family F 0 ⊗ F 1 \mathcal{F}_0\otimes\mathcal{F}_1 F 0 ⊗ F 1 consists of the distributions of C 0 ⊗ C 1 C_0\otimes C_1 C 0 ⊗ C 1 obtained by drawing C 0 ∼ μ 0 ∈ F 0 C_0\sim\mu_0\in\mathcal{F}_0 C 0 ∼ μ 0 ∈ F 0 and C 1 ∼ μ 1 ∈ F 1 C_1\sim\mu_1\in\mathcal{F}_1 C 1 ∼ μ 1 ∈ F 1 independently. For simplicity, we require the component lengths n 0 n_0 n 0 and n 1 n_1 n 1 to be equal. For every realization, the rate of the tensor product is the product of the component rates. We say a code construction achieves capacity when the implied family achieves capacity.
Correlating Erasures Can Only Hurt
In this section, we prove a technical tool we will need in order to show that the tensor product of two capacity-achieving code families achieves capacity on the erasure channel under the error-decay hypotheses of Corollary 8.
Lemma 6 essentially states that, for any linear code C C C , it is easier to decode C C C from random independent erasures of rate ρ \rho ρ than it is to decode C C C from random erasures of rate ρ \rho ρ that are correlated in a natural way. We believe this result, as well as our techniques for leveraging it, may have applications elsewhere.
Lemma 6. Consider any integer n ∈ N n \in\mathbb{N} n ∈ N , any finite field F q \mathbb{F}_q F q , any subset of coordinates T ⊆ [ n ] T \subseteq[n] T ⊆ [ n ] and any partition { A 1 , A 2 , … , A t } \{A_1,A_2,\ldots,A_t\} { A 1 , A 2 , … , A t } of T T T . Fix any ρ ∈ [ 0 , 1 ] \rho\in[0,1] ρ ∈ [ 0 , 1 ] and let μ \mu μ denote the probability distribution on { 0 , 1 } T \{0,1\}^{T} { 0 , 1 } T that sets
x A i = { ( 1 , 1 , … , 1 ) with probability ρ ( 0 , 0 , … , 0 ) with probability 1 − ρ \mathbf{x}_{A_i} =
\begin{cases}
(1,1,\ldots,1) & \text{with probability } \rho\\
(0,0,\ldots,0) & \text{with probability } 1-\rho
\end{cases} x A i = { ( 1 , 1 , … , 1 ) ( 0 , 0 , … , 0 ) with probability ρ with probability 1 − ρ independently for every i = 1 , … , t i=1,\ldots,t i = 1 , … , t . Then for any partial erasure pattern x [ n ] ∖ T ∈ { 0 , 1 } [ n ] ∖ T \mathbf{x}_{[n]\setminus T} \in\{0,1\}^{[n]\setminus T} x [ n ] ∖ T ∈ { 0 , 1 } [ n ] ∖ T and any linear code C ⊆ F q n C \subseteq\mathbb{F}_q^n C ⊆ F q n , we have
E x T ∼ ρ [ dim S C ( x ) ] ≤ E x T ∼ μ [ dim S C ( x ) ] . \mathbb{E}_{\mathbf{x}_T\sim\rho}\left[\dim S_C(\mathbf{x})\right]
\leq
\mathbb{E}_{\mathbf{x}_T\sim\mu}\left[\dim S_C(\mathbf{x})\right]. E x T ∼ ρ [ dim S C ( x ) ] ≤ E x T ∼ μ [ dim S C ( x ) ] .
Proof. We proceed by induction on t t t .
Base case t = 1 t=1 t = 1 : We will first show that the function f ( x ) = dim S C ( x ) f(\mathbf{x})=\dim S_C(\mathbf{x}) f ( x ) = dim S C ( x ) is supermodular, i.e. that for any x , y ∈ F 2 n \mathbf{x},\mathbf{y}\in\mathbb{F}_2^n x , y ∈ F 2 n , we have
dim S C ( x ) + dim S C ( y ) ≤ dim S C ( x ∨ y ) + dim S C ( x ∧ y ) . (4) \dim S_C(\mathbf{x})+\dim S_C(\mathbf{y})
\leq
\dim S_C(\mathbf{x}\vee\mathbf{y})+\dim S_C(\mathbf{x}\wedge\mathbf{y}). \tag*{(4)} dim S C ( x ) + dim S C ( y ) ≤ dim S C ( x ∨ y ) + dim S C ( x ∧ y ) . (4)
To see this, note that S C ( x ∧ y ) = S C ( x ) ∩ S C ( y ) S_C(\mathbf{x}\wedge\mathbf{y})=S_C(\mathbf{x})\cap S_C(\mathbf{y}) S C ( x ∧ y ) = S C ( x ) ∩ S C ( y ) and that S C ( x ∨ y ) ⊇ S C ( x ) + S C ( y ) S_C(\mathbf{x}\vee\mathbf{y})\supseteq S_C(\mathbf{x})+S_C(\mathbf{y}) S C ( x ∨ y ) ⊇ S C ( x ) + S C ( y ) , and thus
dim S C ( x ∨ y ) ≥ dim ( S C ( x ) + S C ( y ) ) = dim S C ( x ) + dim S C ( y ) − ( dim S C ( x ) ∩ S C ( y ) ) = dim S C ( x ) + dim S C ( y ) − dim S C ( x ∧ y ) . \begin{aligned}
\dim S_C(\mathbf{x}\vee\mathbf{y})
&\geq\dim\left(S_C(\mathbf{x})+S_C(\mathbf{y})\right) \\
&= \dim S_C(\mathbf{x})+\dim S_C(\mathbf{y})-\left(\dim S_C(\mathbf{x})\cap S_C(\mathbf{y})\right) \\
&= \dim S_C(\mathbf{x})+\dim S_C(\mathbf{y})-\dim S_C(\mathbf{x}\wedge\mathbf{y}).
\end{aligned} dim S C ( x ∨ y ) ≥ dim ( S C ( x ) + S C ( y ) ) = dim S C ( x ) + dim S C ( y ) − ( dim S C ( x ) ∩ S C ( y ) ) = dim S C ( x ) + dim S C ( y ) − dim S C ( x ∧ y ) .
We now show that the independent-erasure expectation is convex along the direction in which all coordinates of T T T have the same parameter ρ \rho ρ , while the coordinates outside T T T remain fixed. Fix any x [ n ] ∖ T ∈ { 0 , 1 } [ n ] ∖ T \mathbf{x}_{[n]\setminus T}\in\{0,1\}^{[n]\setminus T} x [ n ] ∖ T ∈ { 0 , 1 } [ n ] ∖ T and define
F ( ρ ) : = E x T ∼ ρ [ dim S C ( x ) ] . F(\rho):=\mathbb{E}_{\mathbf{x}_T\sim\rho}\left[\dim S_C(\mathbf{x})\right]. F ( ρ ) := E x T ∼ ρ [ dim S C ( x ) ] .
We claim that F F F is convex. Indeed, thinking of the parameter ρ \boldsymbol{\rho} ρ as a vector of parameters ρ = ( ρ i 1 , … , ρ i ∣ T ∣ ) \boldsymbol{\rho}=(\rho_{i_1},\ldots,\rho_{i_{|T|}}) ρ = ( ρ i 1 , … , ρ i ∣ T ∣ ) for the coordinates { i 1 , … , i ∣ T ∣ } = T \{i_1,\ldots,i_{|T|}\}=T { i 1 , … , i ∣ T ∣ } = T , we have
d d ρ F ( ρ ) = ∑ i ∈ T d d ρ i E x ∼ ρ [ dim S C ( x ) ] = ∑ i ∈ T E x ∼ ρ [ dim S C ( x ∨ e i ) − dim S C ( x ∖ e i ) ] \begin{aligned}
\frac{d}{d\rho}F(\rho)
&=\sum_{i\in T}\frac{d}{d\rho_i}\mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim S_C(\mathbf{x})\right] \\
&=\sum_{i\in T}\mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim S_C(\mathbf{x}\vee\mathbf{e}_i)-\dim S_C(\mathbf{x}\setminus\mathbf{e}_i)\right]
\end{aligned} d ρ d F ( ρ ) = i ∈ T ∑ d ρ i d E x ∼ ρ [ dim S C ( x ) ] = i ∈ T ∑ E x ∼ ρ [ dim S C ( x ∨ e i ) − dim S C ( x ∖ e i ) ]
and
d 2 d ρ 2 F ( ρ ) = ∑ i , j ∈ T d d ρ j E x ∼ ρ [ dim S C ( x ∨ e i ) − dim S C ( x ∖ e i ) ] = ∑ i , j ∈ T i ≠ j E x ∼ ρ [ dim S C ( x ∨ e i ∨ e j ) − dim S C ( x ∨ e i ∖ e j ) − dim S C ( x ∨ e j ∖ e i ) + dim S C ( x ∖ e j ∖ e i ) ] . \begin{aligned}
\frac{d^2}{d\rho^2}F(\rho)=\sum_{i,j\in T}\frac{d}{d\rho_j}\mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x}\vee\mathbf{e}_i)-\dim\mathcal{S}_C(\mathbf{x}\setminus\mathbf{e}_i)\right] \\
&=\sum_{\substack{i,j\in T\\i\ne j}}\mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x}\vee\mathbf{e}_i\vee\mathbf{e}_j)-\dim\mathcal{S}_C(\mathbf{x}\vee\mathbf{e}_i\setminus\mathbf{e}_j)-\dim\mathcal{S}_C(\mathbf{x}\vee\mathbf{e}_j\setminus\mathbf{e}_i)+\dim\mathcal{S}_C(\mathbf{x}\setminus\mathbf{e}_j\setminus\mathbf{e}_i)\right].
\end{aligned} d ρ 2 d 2 F ( ρ ) = i , j ∈ T ∑ d ρ j d E x ∼ ρ [ dim S C ( x ∨ e i ) − dim S C ( x ∖ e i ) ] = i , j ∈ T i = j ∑ E x ∼ ρ [ dim S C ( x ∨ e i ∨ e j ) − dim S C ( x ∨ e i ∖ e j ) − dim S C ( x ∨ e j ∖ e i ) + dim S C ( x ∖ e j ∖ e i ) ] .
Applying (4) to the strings x ∨ e i ∖ e j \mathbf{x}\vee\mathbf{e}_i\setminus\mathbf{e}_j x ∨ e i ∖ e j and x ∨ e j ∖ e i \mathbf{x}\vee\mathbf{e}_j\setminus\mathbf{e}_i x ∨ e j ∖ e i then gives
d 2 d ρ 2 F ( ρ ) ≥ 0. \frac{d^2}{d\rho^2}F(\rho)\ge0. d ρ 2 d 2 F ( ρ ) ≥ 0.
Thus F F F is convex, and in particular
F ( ρ ) ≤ ( 1 − ρ ) F ( 0 ) + ρ F ( 1 ) . (5) F(\rho)\le(1-\rho)F(0)+\rho F(1). \tag*{(5)} F ( ρ ) ≤ ( 1 − ρ ) F ( 0 ) + ρF ( 1 ) . (5)
But
F ( ρ ) = E x T ∼ ρ [ dim S C ( x ) ] F(\rho)=\mathbb{E}_{\mathbf{x}_T\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x})\right] F ( ρ ) = E x T ∼ ρ [ dim S C ( x ) ]
and
( 1 − ρ ) F ( 0 ) + ρ F ( 1 ) = E x T ∼ μ [ dim S C ( x ) ] , (1-\rho)F(0)+\rho F(1)=\mathbb{E}_{\mathbf{x}_T\sim\mu}\left[\dim\mathcal{S}_C(\mathbf{x})\right], ( 1 − ρ ) F ( 0 ) + ρF ( 1 ) = E x T ∼ μ [ dim S C ( x ) ] ,
so (5) proves our base case.
Induction step: Suppose our desired claim holds for partitions of size ≤ t − 1 \le t-1 ≤ t − 1 and consider a t t t -sized partition { A 1 , … , A t } \{A_1,\ldots,A_t\} { A 1 , … , A t } of the coordinates set T ⊆ [ n ] T\subseteq[n] T ⊆ [ n ] . Defining the set of coordinates T ~ = T ∖ A t \widetilde{T}=T\setminus A_t T = T ∖ A t , we have
E x T ∼ ρ [ dim S C ( x ) ] = E x A t ∼ ρ [ E x T ~ ∼ ρ [ dim S C ( x ) ] ] . (6) \mathbb{E}_{\mathbf{x}_T\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
=
\mathbb{E}_{\mathbf{x}_{A_t}\sim\rho}\left[
\mathbb{E}_{\mathbf{x}_{\widetilde{T}}\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
\right]. \tag*{(6)} E x T ∼ ρ [ dim S C ( x ) ] = E x A t ∼ ρ [ E x T ∼ ρ [ dim S C ( x ) ] ] . (6)
Now for any fixed x A t ∈ { 0 , 1 } A t \mathbf{x}_{A_t}\in\{0,1\}^{A_t} x A t ∈ { 0 , 1 } A t , we can apply induction to the partition { A 1 , … , A t − 1 } \{A_1,\ldots,A_{t-1}\} { A 1 , … , A t − 1 } of T ~ \widetilde{T} T and the partial erasure pattern x [ n ] ∖ T ~ = ( x [ n ] ∖ T , x A t ) \mathbf{x}_{[n]\setminus\widetilde{T}}=(\mathbf{x}_{[n]\setminus T},\mathbf{x}_{A_t}) x [ n ] ∖ T = ( x [ n ] ∖ T , x A t ) . This gives us
E x T ∼ ρ [ dim S C ( x ) ] ≤ E x A t ∼ ρ [ E x T ~ ∼ μ [ dim S C ( x ) ] ] = E x T ~ ∼ μ [ E x A t ∼ ρ [ dim S C ( x ) ] ] . \mathbb{E}_{\mathbf{x}_T\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
\le
\mathbb{E}_{\mathbf{x}_{A_t}\sim\rho}\left[
\mathbb{E}_{\mathbf{x}_{\widetilde{T}}\sim\mu}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
\right]
=
\mathbb{E}_{\mathbf{x}_{\widetilde{T}}\sim\mu}\left[
\mathbb{E}_{\mathbf{x}_{A_t}\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
\right]. E x T ∼ ρ [ dim S C ( x ) ] ≤ E x A t ∼ ρ [ E x T ∼ μ [ dim S C ( x ) ] ] = E x T ∼ μ [ E x A t ∼ ρ [ dim S C ( x ) ] ] .
For every fixed x T ~ ∈ { 0 , 1 } T ~ \mathbf{x}_{\widetilde{T}}\in\{0,1\}^{\widetilde{T}} x T ∈ { 0 , 1 } T inside this new expectation, we apply induction again, this time with the trivial partition { A t } \{A_t\} { A t } of A t A_t A t and the partial erasure pattern ( x [ n ] ∖ T , x T ~ ) (\mathbf{x}_{[n]\setminus T},\mathbf{x}_{\widetilde{T}}) ( x [ n ] ∖ T , x T ) . This gives us
E x T ∼ ρ [ dim S C ( x ) ] ≤ E x T ~ ∼ μ [ E x A t ∼ μ [ dim S C ( x ) ] ] , \mathbb{E}_{\mathbf{x}_T\sim\rho}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
\le
\mathbb{E}_{\mathbf{x}_{\widetilde{T}}\sim\mu}\left[
\mathbb{E}_{\mathbf{x}_{A_t}\sim\mu}\left[\dim\mathcal{S}_C(\mathbf{x})\right]
\right], E x T ∼ ρ [ dim S C ( x ) ] ≤ E x T ∼ μ [ E x A t ∼ μ [ dim S C ( x ) ] ] ,
as desired.
Tensoring Preserves Erasure Capacity
We are now ready to prove Theorem 7, which states that in some sense, tensoring two classical codes preserves their decoding qualities on the erasure channel. For example, Theorem 7 shows that if C 1 C_1 C 1 and C 2 C_2 C 2 are close to capacity-achieving (by which we mean that C 1 C_1 C 1 has rate 1 − ρ 1 1-\rho_1 1 − ρ 1 and can decode random erasures of rate ρ 1 − ε \rho_1-\varepsilon ρ 1 − ε and C 2 C_2 C 2 has rate 1 − ρ 2 1-\rho_2 1 − ρ 2 and can decode random erasures of rate ρ 2 − ε \rho_2-\varepsilon ρ 2 − ε ), then the tensor code C 1 ⊗ C 2 C_1\otimes C_2 C 1 ⊗ C 2 is also close to capacity-achieving: it has rate 1 − ρ 1 − ρ 2 + ρ 1 ρ 2 1-\rho_1-\rho_2+\rho_1\rho_2 1 − ρ 1 − ρ 2 + ρ 1 ρ 2 and can decode random erasures of rate ρ 1 + ρ 2 − ρ 1 ρ 2 − 2 ε \rho_1+\rho_2-\rho_1\rho_2-2\varepsilon ρ 1 + ρ 2 − ρ 1 ρ 2 − 2 ε . Corollary 8 gives sufficient conditions for tensor products of families to achieve capacity.
Theorem 7. Let ρ 1 , ρ 2 ∈ [ 0 , 1 ] \rho_1,\rho_2\in[0,1] ρ 1 , ρ 2 ∈ [ 0 , 1 ] and δ 1 , δ 2 > 0 \delta_1,\delta_2>0 δ 1 , δ 2 > 0 be arbitrary and consider any q q q -ary linear codes C 1 ⊆ F q n 1 C_1\subseteq\mathbb{F}_q^{n_1} C 1 ⊆ F q n 1 and C 2 ⊆ F q n 2 C_2\subseteq\mathbb{F}_q^{n_2} C 2 ⊆ F q n 2 such that
Pr x ∼ ρ 1 [ decode ( C 1 , x ) = 0 ] ≤ δ 1 . \Pr_{\mathbf{x}\sim\rho_1}\left[\operatorname{decode}(C_1,\mathbf{x})=0\right]\le\delta_1. x ∼ ρ 1 Pr [ decode ( C 1 , x ) = 0 ] ≤ δ 1 . Pr x ∼ ρ 2 [ decode ( C 2 , x ) = 0 ] ≤ δ 2 . \Pr_{\mathbf{x}\sim\rho_2}\left[\operatorname{decode}(C_2,\mathbf{x})=0\right]\le\delta_2. x ∼ ρ 2 Pr [ decode ( C 2 , x ) = 0 ] ≤ δ 2 . Then the tensor code C : = C 1 ⊗ C 2 C:=C_1\otimes C_2 C := C 1 ⊗ C 2 satisfies
Pr x ∼ ρ [ decode ( C , x ) = 0 ] ≤ E x ∼ ρ [ dim S C ( x ) ] ≤ ( δ 1 n 2 + δ 2 ) n 1 n 2 \Pr_{\mathbf{x}\sim\rho}\left[\operatorname{decode}(C,\mathbf{x})=0\right]\le\mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim S_C(\mathbf{x})\right]\le(\delta_1n_2+\delta_2)n_1n_2 x ∼ ρ Pr [ decode ( C , x ) = 0 ] ≤ E x ∼ ρ [ dim S C ( x ) ] ≤ ( δ 1 n 2 + δ 2 ) n 1 n 2 for ρ : = ρ 1 + ρ 2 − ρ 1 ρ 2 \rho:=\rho_1+\rho_2-\rho_1\rho_2 ρ := ρ 1 + ρ 2 − ρ 1 ρ 2 .
Proof. Note that the first inequality is trivial, so we need only prove the second one. We think of any codeword c ∈ C 1 ⊗ C 2 c\in C_1\otimes C_2 c ∈ C 1 ⊗ C 2 as an n 1 × n 2 n_1\times n_2 n 1 × n 2 matrix where each column is a codeword of C 1 C_1 C 1 and each row is a codeword of C 2 C_2 C 2 . We will sample our erasure pattern in two steps: first, we sample a ρ 1 \rho_1 ρ 1 -noisy erasure patterns y ∈ { 0 , 1 } n 1 × n 2 \mathbf{y}\in\{0,1\}^{n_1\times n_2} y ∈ { 0 , 1 } n 1 × n 2 . Then, we sample a ρ 2 \rho_2 ρ 2 -noisy erasure pattern z ∈ { 0 , 1 } n 1 × n 2 \mathbf{z}\in\{0,1\}^{n_1\times n_2} z ∈ { 0 , 1 } n 1 × n 2 . We define our final erasure pattern x = y ∨ z ∈ { 0 , 1 } n 1 × n 2 \mathbf{x}=\mathbf{y}\vee\mathbf{z}\in\{0,1\}^{n_1\times n_2} x = y ∨ z ∈ { 0 , 1 } n 1 × n 2 to have an erasure in coordinate ( i , j ) (i,j) ( i , j ) if at least one of y i j y_{ij} y ij and z i j z_{ij} z ij is 1 1 1 . Note that this final erasure pattern is indeed ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) (\rho_1+\rho_2-\rho_1\rho_2) ( ρ 1 + ρ 2 − ρ 1 ρ 2 ) -noisy, i.e.
E x ∼ ρ [ dim S C ( x ) ] = E y ∼ ρ 1 E z ∼ ρ 2 [ dim S C ( y ∨ z ) ] . (7) \mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim S_C(\mathbf{x})\right]=\mathbb{E}_{\mathbf{y}\sim\rho_1}\mathbb{E}_{\mathbf{z}\sim\rho_2}\left[\dim S_C(\mathbf{y}\vee\mathbf{z})\right]. \tag*{(7)} E x ∼ ρ [ dim S C ( x ) ] = E y ∼ ρ 1 E z ∼ ρ 2 [ dim S C ( y ∨ z ) ] . (7)
Note also that by Lemma 6, for any fixed erasure pattern y ∈ { 0 , 1 } n 1 × n 2 \mathbf{y}\in\{0,1\}^{n_1\times n_2} y ∈ { 0 , 1 } n 1 × n 2 we have
E z ∼ ρ 2 [ dim S C ( y ∨ z ) ] ≤ E z ∼ μ [ dim S C ( y ∨ z ) ] , (8) \mathbb{E}_{\mathbf{z}\sim\rho_2}\left[\dim S_C(\mathbf{y}\vee\mathbf{z})\right]\le\mathbb{E}_{\mathbf{z}\sim\mu}\left[\dim S_C(\mathbf{y}\vee\mathbf{z})\right], \tag*{(8)} E z ∼ ρ 2 [ dim S C ( y ∨ z ) ] ≤ E z ∼ μ [ dim S C ( y ∨ z ) ] , (8)
where μ \mu μ is the probability distribution on { 0 , 1 } n 1 × n 2 \{0,1\}^{n_1\times n_2} { 0 , 1 } n 1 × n 2 which, for every i ∈ [ n 2 ] i\in[n_2] i ∈ [ n 2 ] , independently sets the i i i th column ( z 1 i , z 2 i , … , z n 1 i ) (z_{1i},z_{2i},\ldots,z_{n_1i}) ( z 1 i , z 2 i , … , z n 1 i ) as follows:
( z 1 i , z 2 i , … , z n 1 i ) = { ( 1 , 1 , … , 1 ) with probability ρ 2 , ( 0 , 0 , … , 0 ) with probability 1 − ρ 2 . (z_{1i},z_{2i},\ldots,z_{n_1i})=
\begin{cases}
(1,1,\ldots,1) & \text{with probability }\rho_2,\\
(0,0,\ldots,0) & \text{with probability }1-\rho_2.
\end{cases} ( z 1 i , z 2 i , … , z n 1 i ) = { ( 1 , 1 , … , 1 ) ( 0 , 0 , … , 0 ) with probability ρ 2 , with probability 1 − ρ 2 .
For fixed y \mathbf{y} y , apply Lemma 6 to T = { ( i , j ) : y i j = 0 } T=\{(i,j):y_{ij}=0\} T = {( i , j ) : y ij = 0 } , partitioned by its nonempty intersections with the columns. Coordinates outside T T T are already erased and remain fixed. This gives (8) . Combining equations (7) and (8) , we get
E x ∼ ρ [ dim S C ( x ) ] ≤ E y ∼ ρ 1 E z ∼ μ [ dim S C ( y ∨ z ) ] . (9) \mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim S_C(\mathbf{x})\right]\le\mathbb{E}_{\mathbf{y}\sim\rho_1}\mathbb{E}_{\mathbf{z}\sim\mu}\left[\dim S_C(\mathbf{y}\vee\mathbf{z})\right]. \tag*{(9)} E x ∼ ρ [ dim S C ( x ) ] ≤ E y ∼ ρ 1 E z ∼ μ [ dim S C ( y ∨ z ) ] . (9)
We now claim that when the erasures are sampled as y ∨ z \mathbf{y} \vee\mathbf{z} y ∨ z with ( y , z ) ∼ ρ 1 × μ (\mathbf{y},\mathbf{z}) \sim\rho_1 \times\mu ( y , z ) ∼ ρ 1 × μ , the following decoder for C 1 ⊗ C 2 C_1 \otimes C_2 C 1 ⊗ C 2 succeeds with high probability: first, independently decode each column using maximum-likelihood decoding for the code C 1 C_1 C 1 . Then, decode the remaining erasures row-by-row by using maximum-likelihood decoding for the code C 2 C_2 C 2 . Let E = E ( y ) E = E(\mathbf{y}) E = E ( y ) denote the event that every column j ∈ [ n 2 ] j \in[n_2] j ∈ [ n 2 ] can independently decode its y \mathbf{y} y -erasures using maximum-likelihood decoding for C 1 C_1 C 1 . Note that by our theorem’s condition on C 1 C_1 C 1 and the union bound, we have
Pr y ∼ ρ 1 [ E ( y ) ] ≥ 1 − n 2 δ 1 . (10) \Pr_{\mathbf{y}\sim\rho_1}[E(\mathbf{y})] \ge1-n_2\delta_1. \tag*{(10)} y ∼ ρ 1 Pr [ E ( y )] ≥ 1 − n 2 δ 1 . (10)
Now, note that whenever the event E E E holds, the first decoding step of our algorithm will successfully recover every column j ∈ [ n 2 ] j \in[n_2] j ∈ [ n 2 ] with z j = 0 z_j=0 z j = 0 (i.e. every column that is not erased by the random string z \mathbf{z} z ). Thus conditioned on the event E E E , the second step of our decoding algorithm fails if and only if z \mathbf{z} z covers a codeword of C 2 C_2 C 2 . By our theorem’s condition on C 2 C_2 C 2 , this occurs with probability at most
Pr z ∼ μ [ S C ( y ∨ z ) ≠ { 0 } ∣ E ( y ) ] ≤ δ 2 . \Pr_{\mathbf{z}\sim\mu}\left[S_C(\mathbf{y}\vee\mathbf{z})\ne\{0\}\mid E(\mathbf{y})\right]\le\delta_2. z ∼ μ Pr [ S C ( y ∨ z ) = { 0 } ∣ E ( y ) ] ≤ δ 2 .
Combining this with equations (9) and (10) and the fact that dim S C ( y ∨ z ) ≤ n 1 n 2 \dim S_C(\mathbf{y}\vee\mathbf{z})\le n_1n_2 dim S C ( y ∨ z ) ≤ n 1 n 2 , we get
E x ∼ ρ [ dim S C ( x ) ] ≤ E y ∼ ρ 1 E z ∼ μ [ dim S C ( y ∨ z ) ] ≤ n 1 n 2 Pr y ∼ ρ 1 Pr z ∼ μ [ decode ( C , y ∨ z ) = 0 ] ≤ n 1 n 2 ( Pr y ∼ ρ 1 [ ¬ E ( y ) ] + Pr y ∼ ρ 1 [ E ( y ) ] Pr z ∼ μ [ decode ( C , y ∨ z ) = 0 ∣ E ( y ) ] ) ≤ n 1 n 2 ( δ 1 n 2 + δ 2 ) . \begin{aligned}
\mathbb{E}_{\mathbf{x}\sim\rho}\left[\dim S_C(\mathbf{x})\right]
\le\mathbb{E}_{\mathbf{y}\sim\rho_1}\mathbb{E}_{\mathbf{z}\sim\mu}\left[\dim S_C(\mathbf{y}\vee\mathbf{z})\right] \\
&\le n_1n_2\Pr_{\mathbf{y}\sim\rho_1}\Pr_{\mathbf{z}\sim\mu}\left[\operatorname{decode}(C,\mathbf{y}\vee\mathbf{z})=0\right] \\
&\le n_1n_2\left(\Pr_{\mathbf{y}\sim\rho_1}[\neg E(\mathbf{y})]+\Pr_{\mathbf{y}\sim\rho_1}[E(\mathbf{y})]\Pr_{\mathbf{z}\sim\mu}\left[\operatorname{decode}(C,\mathbf{y}\vee\mathbf{z})=0\mid E(\mathbf{y})\right]\right) \\
&\le n_1n_2(\delta_1n_2+\delta_2).
\end{aligned} E x ∼ ρ [ dim S C ( x ) ] ≤ E y ∼ ρ 1 E z ∼ μ [ dim S C ( y ∨ z ) ] ≤ n 1 n 2 y ∼ ρ 1 Pr z ∼ μ Pr [ decode ( C , y ∨ z ) = 0 ] ≤ n 1 n 2 ( y ∼ ρ 1 Pr [ ¬ E ( y )] + y ∼ ρ 1 Pr [ E ( y )] z ∼ μ Pr [ decode ( C , y ∨ z ) = 0 ∣ E ( y ) ] ) ≤ n 1 n 2 ( δ 1 n 2 + δ 2 ) .
As a corollary of Theorem 7 , we obtain that under mild assumptions, the tensor product of two capacity-achieving families of codes also achieves capacity on the erasure channel. The following result is a more formal version of Theorem 1. (For any capacity-achieving code families F 0 , F 1 \mathcal{F}_0,\mathcal{F}_1 F 0 , F 1 with minimum distances ω ( log n ) \omega(\log n) ω ( log n ) , the decoding error probability of each component code can be brought down to o ( 1 n 3 ) o(\frac{1}{n^3}) o ( n 3 1 ) by decreasing the noise by o ( 1 ) o(1) o ( 1 ) (see Theorem 11), after which applying Corollary 8 will give a capacity result for the tensor family F 0 ⊗ F 1 \mathcal{F}_0\otimes\mathcal{F}_1 F 0 ⊗ F 1 ).
Corollary 8. Let F 1 \mathcal{F}_1 F 1 and F 2 \mathcal{F}_2 F 2 be families of linear codes over the same finite field. Suppose that, for every pair of rates R 1 , R 2 ∈ ( 0 , 1 ) R_1,R_2\in(0,1) R 1 , R 2 ∈ ( 0 , 1 ) supported by F 1 , F 2 \mathcal{F}_1,\mathcal{F}_2 F 1 , F 2 and every fixed 0 < ε < min { 1 − R 1 , 1 − R 2 } 0<\varepsilon<\min\{1-R_1,1-R_2\} 0 < ε < min { 1 − R 1 , 1 − R 2 } , they contain ensembles μ 1 , μ 2 \mu_1,\mu_2 μ 1 , μ 2 of common length n n n for an unbounded sequence of lengths along which the rates converge in probability to R 1 , R 2 R_1,R_2 R 1 , R 2 , respectively. If, for i = 1 , 2 i=1,2 i = 1 , 2 , we have
Pr C i ∼ μ i x ∼ 1 − R i − ε [ decode ( C i , x ) = 0 ] ≤ δ i ( n ) (11) \Pr_{\substack{C_i\sim\mu_i\\ \mathbf{x}\sim1-R_i-\varepsilon}}\left[\operatorname{decode}(C_i,\mathbf{x})=0\right]\le\delta_i(n) \tag*{(11)} C i ∼ μ i x ∼ 1 − R i − ε Pr [ decode ( C i , x ) = 0 ] ≤ δ i ( n ) (11)
and n 3 δ 1 ( n ) + n 2 δ 2 ( n ) → 0 n^{3}\delta_{1}(n)+n^{2}\delta_{2}(n)\to0 n 3 δ 1 ( n ) + n 2 δ 2 ( n ) → 0 , then F 1 ⊗ F 2 \mathcal{F}_{1}\otimes\mathcal{F}_{2} F 1 ⊗ F 2 achieves capacity on the erasure channel. In particular, if δ i ( n ) = O ( n − a ) \delta_i(n)=O(n^{-a}) δ i ( n ) = O ( n − a ) for some a > 3 a>3 a > 3 , the failure rate is O ( ( n 2 ) − ( a − 3 ) / 2 ) O((n^{2})^{-(a-3)/2}) O (( n 2 ) − ( a − 3 ) /2 ) . If δ i ( n ) = exp ( − Ω ( n ) ) \delta_i(n)=\exp(-\Omega(n)) δ i ( n ) = exp ( − Ω ( n )) , it is exp ( − Ω ( n ) ) \exp(-\Omega(\sqrt{n})) exp ( − Ω ( n )) .
Proof. To start, we condition on the component codes and apply Theorem 7 with their actual decoding error probabilities. Averaging the bound gives
Pr C 1 , C 2 x ∼ ρ [ decode ( C , x ) = 0 ] ≤ n 3 Pr C 1 x ∼ 1 − R 1 − ε [ decode ( C 1 , x ) = 0 ] + n 2 Pr C 2 x ∼ 1 − R 2 − ε [ decode ( C 2 , x ) = 0 ] . \Pr_{\substack{C_1,C_2\\x\sim\rho}}\left[\operatorname{decode}(C,\mathbf{x})=0\right]\le n^3\Pr_{\substack{C_1\\x\sim1-R_1-\varepsilon}}\left[\operatorname{decode}(C_1,\mathbf{x})=0\right]
+n^2\Pr_{\substack{C_2\\x\sim1-R_2-\varepsilon}}\left[\operatorname{decode}(C_2,\mathbf{x})=0\right]. C 1 , C 2 x ∼ ρ Pr [ decode ( C , x ) = 0 ] ≤ n 3 C 1 x ∼ 1 − R 1 − ε Pr [ decode ( C 1 , x ) = 0 ] + n 2 C 2 x ∼ 1 − R 2 − ε Pr [ decode ( C 2 , x ) = 0 ] .
Then, drawing C 1 , C 2 C_1,C_2 C 1 , C 2 independently and defining C = C 1 ⊗ C 2 C=C_1\otimes C_2 C = C 1 ⊗ C 2 , one can combine this bound with (11) to show
Pr C 1 , C 2 x ∼ ρ [ decode ( C , x ) = 0 ] ≤ n 3 δ 1 ( n ) + n 2 δ 2 ( n ) . (12) \Pr_{\substack{C_1,C_2\\x\sim\rho}}\left[\operatorname{decode}(C,\mathbf{x})=0\right]\le n^3\delta_1(n)+n^2\delta_2(n). \tag*{(12)} C 1 , C 2 x ∼ ρ Pr [ decode ( C , x ) = 0 ] ≤ n 3 δ 1 ( n ) + n 2 δ 2 ( n ) . (12)
Duals of Random Tensor Codes Achieve Capacity
In this section, we prove the classical result needed for our application to quantum Tanner codes: that the family of dual tensor codes of two random linear codes is capacity-achieving on the erasure channel. We will need a few well-known results, which we state below. The first one is that the family of random linear codes achieves capacity on the erasure channel, a standard fact that, to the best of our knowledge, was first proven in [9 ] . Corollary 10 states the capacity consequences for the random linear and tensor-product families.
Lemma 9 ([9 ] ). There exists a universal constant a > 0 a>0 a > 0 such that the following holds. Let ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) be arbitrary and let C ⊆ F 2 n C\subseteq\mathbb{F}_2^n C ⊆ F 2 n be a uniformly random linear code of rate 1 − ρ 1-\rho 1 − ρ . Then for any ε ∈ [ 0 , ρ ] \varepsilon\in[0,\rho] ε ∈ [ 0 , ρ ] , we have
Pr C ⊆ F 2 n x ∼ ρ − ε [ decode ( C , x ) = 0 ] ≤ 2 e − a ε 2 n . \Pr_{\substack{C\subseteq\mathbb{F}_2^n\\x\sim\rho-\varepsilon}}\left[\operatorname{decode}(C,\mathbf{x})=0\right]\le2e^{-a\varepsilon^2 n}. C ⊆ F 2 n x ∼ ρ − ε Pr [ decode ( C , x ) = 0 ] ≤ 2 e − a ε 2 n .
Corollary 10. Let F \mathcal{F} F contain the uniform ensemble of binary linear codes of every length and dimension. Both F \mathcal{F} F and F ⊗ F \mathcal{F}\otimes\mathcal{F} F ⊗ F achieve capacity on the BEC. For equal component lengths n n n , each fixed pair of target rates, and a fixed positive component gap, the corresponding tensor-product ensemble has decoding error exp ( − Ω ( n ) ) \exp(-\Omega(n)) exp ( − Ω ( n )) .
Proof. For a target rate R i R_i R i and common component length n n n , choose C i C_i C i uniformly among subspaces of dimension ⌈ R i n ⌉ \lceil R_i n\rceil ⌈ R i n ⌉ . Its rate is at least R i R_i R i and at most R i + 1 / n R_i+1/n R i + 1/ n . At erasure probability 1 − R i − ε 1-R_i-\varepsilon 1 − R i − ε , the gap to capacity is at least ε / 2 \varepsilon/2 ε /2 once n ≥ 2 / ε n\ge2/\varepsilon n ≥ 2/ ε . Lemma 9 therefore bounds its ensemble-average failure probability by 2 e − a ε 2 n / 4 2e^{-a\varepsilon^2n/4} 2 e − a ε 2 n /4 . This establishes capacity for F \mathcal{F} F and verifies (11) with exponentially small δ i ( n ) \delta_i(n) δ i ( n ) . Corollary 8 gives capacity for F ⊗ F \mathcal{F}\otimes\mathcal{F} F ⊗ F and the error bound 2 ( n 3 + n 2 ) e − a ε 2 n / 4 = exp ( − Ω ( n ) ) 2(n^3+n^2)e^{-a\varepsilon^2n/4}=\exp(-\Omega(n)) 2 ( n 3 + n 2 ) e − a ε 2 n /4 = exp ( − Ω ( n )) . □
We will also need the fact that in the random-noise model, the decoding error probability of any linear code of superconstant distance has a sharp transition.
Theorem 11. [30 ] There exists a universal constant a > 0 a > 0 a > 0 such that the following holds. For every n ∈ N n \in\mathbb{N} n ∈ N and every linear code C ⊆ F 2 n C \subseteq\mathbb{F}_2^n C ⊆ F 2 n , if p ∗ ∈ ( 0 , 1 ) p^* \in(0,1) p ∗ ∈ ( 0 , 1 ) satisfies Pr x ∼ p ∗ [ decode ( C , x ) = 0 ] = 1 2 \Pr_{x \sim p^*}[\operatorname{decode}(C,x)=0]=\frac{1}{2} Pr x ∼ p ∗ [ decode ( C , x ) = 0 ] = 2 1 , then for every p < p ∗ p < p^* p < p ∗ we have
Pr x ∼ p [ decode ( C , x ) = 0 ] ≤ e − a ( p ∗ − p ) 2 d min ( C ) . \Pr_{x \sim p}\left[\operatorname{decode}(C,x)=0\right] \le e^{-a(p^*-p)^2d_{\min}(C)}. x ∼ p Pr [ decode ( C , x ) = 0 ] ≤ e − a ( p ∗ − p ) 2 d m i n ( C ) .
Since this cannot be applied to an ensemble of codes with different thresholds, we apply this theorem only after fixing a code whose failure probability at some p + > p p_+ > p p + > p is at most 1 / 2 1/2 1/2 . Monotonicity then gives p ∗ ≥ p + p^* \ge p_+ p ∗ ≥ p + and hence Pr x ∼ p [ decode ( C , x ) = 0 ] ≤ exp ( − a ( p + − p ) 2 d min ( C ) ) \Pr_{x \sim p}[\operatorname{decode}(C,x)=0] \le\exp(-a(p_+-p)^2d_{\min}(C)) Pr x ∼ p [ decode ( C , x ) = 0 ] ≤ exp ( − a ( p + − p ) 2 d m i n ( C )) .
We will also need the fact that random dual tensor codes are robust with high probability. Recall from Section 4 that a code ( C 1 ⊗ C 2 ) ⊥ ⊆ F 2 n × n (C_1 \otimes C_2)^\perp\subseteq\mathbb{F}_2^{n \times n} ( C 1 ⊗ C 2 ) ⊥ ⊆ F 2 n × n is said to be κ \kappa κ -robust if any codeword c ∈ ( C 1 ⊗ C 2 ) ⊥ c \in(C_1 \otimes C_2)^\perp c ∈ ( C 1 ⊗ C 2 ) ⊥ can be expressed as c = c c o l + c r o w c=c_{\mathrm{col}}+c_{\mathrm{row}} c = c col + c row for some matrix c c o l ∈ F 2 n × n c_{\mathrm{col}} \in\mathbb{F}_2^{n \times n} c col ∈ F 2 n × n whose columns are codewords of C 1 ⊥ C_1^\perp C 1 ⊥ , some matrix c r o w ∈ F 2 n × n c_{\mathrm{row}} \in\mathbb{F}_2^{n \times n} c row ∈ F 2 n × n whose rows are codewords of C 2 ⊥ C_2^\perp C 2 ⊥ , and
wt ( c ) ≥ κ n ( ∥ c c o l ∥ + ∥ c r o w ∥ ) . \operatorname{wt}(c) \ge\kappa n(\lVert c_{\mathrm{col}}\rVert+\lVert c_{\mathrm{row}}\rVert). wt ( c ) ≥ κn (∥ c col ∥ + ∥ c row ∥) .
where ∥ ⋅ ∥ \lVert\cdot\rVert ∥ ⋅ ∥ counts the number of nonzero columns (respectively, rows) of c c o l c_{\mathrm{col}} c col (respectively, c r o w c_{\mathrm{row}} c row ). [17 ] showed that the dual of the product of two random linear codes is κ \kappa κ -product expanding with high probability, for some constant κ \kappa κ depending on the rates of the two component codes.
Theorem 12. [17 ] Let ρ 1 , ρ 2 ∈ ( 0 , 1 ) \rho_1,\rho_2 \in(0,1) ρ 1 , ρ 2 ∈ ( 0 , 1 ) be arbitrary and consider any n > 8 min { 1 − ρ 1 , 1 − ρ 2 } n > \frac{8}{\min\{1-\rho_1,1-\rho_2\}} n > m i n { 1 − ρ 1 , 1 − ρ 2 } 8 . Let C 1 , C 2 ⊆ F 2 n C_1,C_2 \subseteq\mathbb{F}_2^n C 1 , C 2 ⊆ F 2 n be two random linear codes of dimensions ( 1 − ρ 1 ) n (1-\rho_1)n ( 1 − ρ 1 ) n and ( 1 − ρ 2 ) n (1-\rho_2)n ( 1 − ρ 2 ) n respectively. Define
κ : = 1 2 min { 1 4 h − 1 ( 1 − ρ 1 8 ) , h − 1 ( 1 − ρ 2 8 ) , h − 1 ( ( 1 − ρ 1 ) ( 1 − ρ 2 ) 8 ) } . \kappa:= \frac{1}{2}\min\left\{\frac{1}{4}h^{-1}\left(\frac{1-\rho_1}{8}\right),h^{-1}\left(\frac{1-\rho_2}{8}\right),h^{-1}\left(\frac{(1-\rho_1)(1-\rho_2)}{8}\right)\right\}. κ := 2 1 min { 4 1 h − 1 ( 8 1 − ρ 1 ) , h − 1 ( 8 1 − ρ 2 ) , h − 1 ( 8 ( 1 − ρ 1 ) ( 1 − ρ 2 ) ) } . Then we have
Pr C 1 , C 2 [ ( C 1 ⊗ C 2 ) ⊥ is κ -expanding ] ≥ 1 − ε \Pr_{C_1,C_2}\left[(C_1\otimes C_2)^\perp\text{ is }\kappa\text{-expanding}\right]\ge1-\varepsilon C 1 , C 2 Pr [ ( C 1 ⊗ C 2 ) ⊥ is κ -expanding ] ≥ 1 − ε for ε = 5 ⋅ 2 − ( 1 − ρ 1 ) ( 1 − ρ 2 ) 8 n + 16 ⋅ 2 − ( 1 − ρ 1 ) ( 1 − ρ 2 ) 8 n \varepsilon=5\cdot2^{-\frac{(1-\rho_1)(1-\rho_2)}{8}n}+16\cdot2^{-\frac{(1-\rho_1)(1-\rho_2)}{8}n} ε = 5 ⋅ 2 − 8 ( 1 − ρ 1 ) ( 1 − ρ 2 ) n + 16 ⋅ 2 − 8 ( 1 − ρ 1 ) ( 1 − ρ 2 ) n .
Finally, for any linear code C ⊆ F 2 n C \subseteq\mathbb{F}_2^n C ⊆ F 2 n and any erasure string x ∈ F 2 n \mathbf{x} \in\mathbb{F}_2^n x ∈ F 2 n , we will also need a few equivalent expressions for the dimension of the subcode of C C C covered by x \mathbf{x} x , in terms of the generator matrix and the parity-check matrix of C C C . We provide a short proof of the claim.
Lemma 13. Let C ⊆ F 2 n C \subseteq\mathbb{F}_2^n C ⊆ F 2 n be any linear code, let G ∈ F 2 dim C × n \mathbf{G} \in\mathbb{F}_2^{\dim C \times n} G ∈ F 2 d i m C × n be a generator matrix of C C C and let H ∈ F 2 ( n − dim C ) × n \mathbf{H} \in\mathbb{F}_2^{(n-\dim C)\times n} H ∈ F 2 ( n − d i m C ) × n be a parity-check matrix of C C C . Then for any erasure pattern x ∈ F 2 n \mathbf{x} \in\mathbb{F}_2^n x ∈ F 2 n , we have
dim S C ( x ) = dim C − rank G x ‾ = wt ( x ) − rank H x , \dim S_C(\mathbf{x})=\dim C-\operatorname{rank}\mathbf{G}_{\overline{\mathbf{x}}}=\operatorname{wt}(\mathbf{x})-\operatorname{rank}\mathbf{H}_{\mathbf{x}}, dim S C ( x ) = dim C − rank G x = wt ( x ) − rank H x , where for any vector y \mathbf{y} y and any matrix A \mathbf{A} A , we denote by A y \mathbf{A}_{\mathbf{y}} A y the restriction of A \mathbf{A} A to the columns indexed by the support of y \mathbf{y} y .
Proof. Define R = dim C n R = \frac{\dim C}{n} R = n d i m C . To prove our lemma’s first equality, we note that
∣ S C ( x ) ∣ = ∣ { z ∈ F 2 n : [ z G ] x ‾ = 0 } ∣ , |S_C(\mathbf{x})| = \left|\left\{z \in\mathbb{F}_2^n : [zG]\overline{\mathbf{x}} = 0\right\}\right|, ∣ S C ( x ) ∣ = ∣ { z ∈ F 2 n : [ z G ] x = 0 } ∣ ,
and thus
dim ( S C ( x ) ) = dim ker ( G x ‾ T ) = R n − rank G x ‾ , \begin{aligned}
\dim(S_C(\mathbf{x})) &= \dim\ker(G_{\overline{\mathbf{x}}}^{\mathsf{T}}) \\
&= Rn - \operatorname{rank}G_{\overline{\mathbf{x}}},
\end{aligned} dim ( S C ( x )) = dim ker ( G x T ) = R n − rank G x ,
where the second line follows from the rank-nullity theorem. To prove our lemma’s second equality, we note that
S C ( x ) = { c ∈ ker ( H ) : supp ( c ) ⊆ supp ( x ) } , S_C(\mathbf{x}) = \left\{ \mathbf{c} \in\ker(\mathbf{H}) : \operatorname{supp}(\mathbf{c}) \subseteq\operatorname{supp}(\mathbf{x}) \right\}, S C ( x ) = { c ∈ ker ( H ) : supp ( c ) ⊆ supp ( x ) } ,
and thus
dim S C ( x ) = dim ker ( H x ) = wt ( x ) − rank H x , \begin{aligned}
\dim S_C(\mathbf{x}) &= \dim\ker(\mathbf{H}_{\mathbf{x}}) \\
&= \operatorname{wt}(\mathbf{x}) - \operatorname{rank}\mathbf{H}_{\mathbf{x}},
\end{aligned} dim S C ( x ) = dim ker ( H x ) = wt ( x ) − rank H x ,
where again the second line follows from the rank-nullity theorem. □
We now have all the tools we need to prove that the family of dual tensor codes of two random linear codes C 1 , C 2 ⊆ F 2 n C_1,C_2 \subseteq\mathbb{F}_2^n C 1 , C 2 ⊆ F 2 n achieves capacity. Our first step will be to show that at capacity, it is very unlikely for the covered subcode of ( C 1 ⊗ C 2 ) ⊥ (C_1 \otimes C_2)^\perp ( C 1 ⊗ C 2 ) ⊥ to contain a codeword of weight significantly below n 2 n^2 n 2 .
Lemma 14. Fix any τ ∈ ( 0 , 2 ) \tau\in(0,2) τ ∈ ( 0 , 2 ) and ρ 1 , ρ 2 ∈ ( 0 , 1 ) \rho_1,\rho_2 \in(0,1) ρ 1 , ρ 2 ∈ ( 0 , 1 ) . Then there exists some n 0 = n 0 ( τ , ρ 1 , ρ 2 ) n_0 = n_0(\tau,\rho_1,\rho_2) n 0 = n 0 ( τ , ρ 1 , ρ 2 ) such that for all n > n 0 n > n_0 n > n 0 , the dual tensor code C : = ( C 1 ⊗ C 2 ) ⊥ C := (C_1 \otimes C_2)^\perp C := ( C 1 ⊗ C 2 ) ⊥ of two random linear codes C 1 , C 2 ⊆ F 2 n C_1,C_2 \subseteq\mathbb{F}_2^n C 1 , C 2 ⊆ F 2 n of rates ( 1 − ρ 1 ) (1-\rho_1) ( 1 − ρ 1 ) and ( 1 − ρ 2 ) (1-\rho_2) ( 1 − ρ 2 ) satisfies, for ρ : = ρ 1 + ρ 2 − ρ 1 ρ 2 \rho:= \rho_1+\rho_2-\rho_1\rho_2 ρ := ρ 1 + ρ 2 − ρ 1 ρ 2 ,
Pr C 1 , C 2 x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) : 0 < wt ( c ) ≤ n 2 − τ ] ≤ e − a n , \Pr_{C_1,C_2}^{\mathbf{x}\sim1-\rho}\left[\exists\mathbf{c} \in S_C(\mathbf{x}) : 0 < \operatorname{wt}(\mathbf{c}) \le n^{2-\tau}\right] \le e^{-an}, C 1 , C 2 Pr x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) : 0 < wt ( c ) ≤ n 2 − τ ] ≤ e − an , where a = a ( τ , ρ 1 , ρ 2 ) a = a(\tau,\rho_1,\rho_2) a = a ( τ , ρ 1 , ρ 2 ) is a positive constant that depends on τ , ρ 1 \tau,\rho_1 τ , ρ 1 and ρ 2 ∗ b u t n o t o n ∗ \rho_2 *but not on* ρ 2 ∗ b u t n o t o n ∗ n$.
Proof. Let κ : = 1 2 min { 1 4 h − 1 ( 1 − ρ 1 8 ) h − 1 ( 1 − ρ 2 8 ) , h − 1 ( ( 1 − ρ 1 ) ( 1 − ρ 2 ) 8 ) } \kappa:= \frac{1}{2}\min\left\{\frac{1}{4}h^{-1}\left(\frac{1-\rho_1}{8}\right)h^{-1}\left(\frac{1-\rho_2}{8}\right),h^{-1}\left(\frac{(1-\rho_1)(1-\rho_2)}{8}\right)\right\} κ := 2 1 min { 4 1 h − 1 ( 8 1 − ρ 1 ) h − 1 ( 8 1 − ρ 2 ) , h − 1 ( 8 ( 1 − ρ 1 ) ( 1 − ρ 2 ) ) } and recall from Theorem 12 that
Pr C 1 , C 2 [ C is κ -expanding ] ≥ 1 − 5 ⋅ 2 − ( 1 − ρ 1 ) ( 1 − ρ 2 ) 8 n 2 − 16 ⋅ 2 − ( 1 − ρ 1 ) ( 1 − ρ 2 ) 8 n . (13) \Pr_{C_1,C_2}\left[C\text{ is }\kappa\text{-expanding}\right] \ge1 - 5 \cdot2^{-\frac{(1-\rho_1)(1-\rho_2)}{8}n^2} - 16 \cdot2^{-\frac{(1-\rho_1)(1-\rho_2)}{8}n}. \tag*{(13)} C 1 , C 2 Pr [ C is κ -expanding ] ≥ 1 − 5 ⋅ 2 − 8 ( 1 − ρ 1 ) ( 1 − ρ 2 ) n 2 − 16 ⋅ 2 − 8 ( 1 − ρ 1 ) ( 1 − ρ 2 ) n . (13)
But if C C C is κ \kappa κ -expanding, every codeword c ∈ C \mathbf{c} \in C c ∈ C can be decomposed into c = c c o l + c r o w \mathbf{c} = \mathbf{c}_{\mathrm{col}}+\mathbf{c}_{\mathrm{row}} c = c col + c row for some c c o l ∈ C 1 ⊥ ⊗ F 2 n \mathbf{c}_{\mathrm{col}} \in C_1^\perp\otimes\mathbb{F}_2^n c col ∈ C 1 ⊥ ⊗ F 2 n and c r o w ∈ F 2 n ⊗ C 2 ⊥ \mathbf{c}_{\mathrm{row}} \in\mathbb{F}_2^n \otimes C_2^\perp c row ∈ F 2 n ⊗ C 2 ⊥ satisfying
max { ∥ c c o l ∥ , ∥ c r o w ∥ } ≤ wt ( c ) κ n . \max\left\{\|\mathbf{c}_{\mathrm{col}}\|,\|\mathbf{c}_{\mathrm{row}}\|\right\} \le\frac{\operatorname{wt}(\mathbf{c})}{\kappa n}. max { ∥ c col ∥ , ∥ c row ∥ } ≤ κn wt ( c ) .
Thus, fix any w ≤ n 2 − τ w \le n^{2-\tau} w ≤ n 2 − τ and consider any row-set S ⊆ [ n ] S \subseteq[n] S ⊆ [ n ] and any column-set T ⊆ [ n ] T \subseteq[n] T ⊆ [ n ] of sizes ∣ S ∣ = ∣ T ∣ = w κ n |S| = |T| = \frac{w}{\kappa n} ∣ S ∣ = ∣ T ∣ = κn w . We will show that it is very unlikely for a ( 1 − ρ ) (1-\rho) ( 1 − ρ ) -noisy erasure pattern x \mathbf{x} x to cover any w w w -weight codeword c ∈ C \mathbf{c} \in C c ∈ C whose rows of c r o w \mathbf{c}_{\mathrm{row}} c row are supported on S S S and whose columns of c c o l \mathbf{c}_{\mathrm{col}} c col are supported on T T T . To this end, we first note that in order for x \mathbf{x} x to cover any such codeword c \mathbf{c} c , we must have x i j = 1 x_{ij}=1 x ij = 1 for every ( i , j ) ∉ S × T (i,j)\notin S\times T ( i , j ) ∈ / S × T where either [ c c o l ] i j = 1 [\mathbf{c}_{\mathrm{col}}]_{ij}=1 [ c col ] ij = 1 or [ c r o w ] i j = 1 [\mathbf{c}_{\mathrm{row}}]_{ij}=1 [ c row ] ij = 1 . But since for every n n n large enough,
∣ S × T ∣ = w 2 κ 2 n 2 ≤ w κ 2 n τ < wt ( c ) , |S\times T|=\frac{w^2}{\kappa^2 n^2}\le\frac{w}{\kappa^2 n^\tau}<\operatorname{wt}(\mathbf{c}), ∣ S × T ∣ = κ 2 n 2 w 2 ≤ κ 2 n τ w < wt ( c ) ,
the support of c \mathbf{c} c cannot be contained in S × T S\times T S × T . Denoting by C ~ 1 \widetilde{C}_1 C 1 and C ~ 2 \widetilde{C}_2 C 2 the restrictions of C 1 ⊥ , C 2 ⊥ C_1^\perp,C_2^\perp C 1 ⊥ , C 2 ⊥ to the coordinate sets [ n ] ∖ S [n]\setminus S [ n ] ∖ S and [ n ] ∖ T [n]\setminus T [ n ] ∖ T respectively, we thus get that at least one column-codeword of C ~ 1 \widetilde{C}_1 C 1 or one row-codeword of C ~ 2 \widetilde{C}_2 C 2 must be erased. That is,
Pr C 1 , C 2 x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) of weight w with supp ( c r o w ) ⊆ S × [ n ] and supp ( c c o l ) ⊆ [ n ] × T ] \Pr_{C_1,C_2}^{\mathbf{x}\sim1-\rho}\left[\exists\mathbf{c}\in S_C(\mathbf{x})\text{ of weight }w\text{ with }\operatorname{supp}(\mathbf{c}_{\mathrm{row}})\subseteq S\times[n]\text{ and }\operatorname{supp}(\mathbf{c}_{\mathrm{col}})\subseteq[n]\times T\right] C 1 , C 2 Pr x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) of weight w with supp ( c row ) ⊆ S × [ n ] and supp ( c col ) ⊆ [ n ] × T ]
≤ 2 w ⋅ max { Pr C 1 x ∼ 1 − ρ [ decode ( C ~ 1 , x ) = 0 ] , Pr C 2 x ∼ 1 − ρ [ decode ( C ~ 2 , x ) = 0 ] } . (14) \le2w\cdot\max\left\{\Pr_{C_1}^{\mathbf{x}\sim1-\rho}\left[\operatorname{decode}(\widetilde{C}_1,\mathbf{x})=0\right],\Pr_{C_2}^{\mathbf{x}\sim1-\rho}\left[\operatorname{decode}(\widetilde{C}_2,\mathbf{x})=0\right]\right\}. \tag*{(14)} ≤ 2 w ⋅ max { C 1 Pr x ∼ 1 − ρ [ decode ( C 1 , x ) = 0 ] , C 2 Pr x ∼ 1 − ρ [ decode ( C 2 , x ) = 0 ] } . (14)
But whenever n n n is large enough as a function of ρ 1 , ρ 2 , τ \rho_1,\rho_2,\tau ρ 1 , ρ 2 , τ , the code C ~ 1 \widetilde{C}_1 C 1 is a random linear code of rate
dim C ~ 1 n − ∣ S ∣ ≤ ρ 1 n n − n 1 − τ κ ≤ ρ 1 + 1 2 ρ 2 ( 1 − ρ 1 ) . \frac{\dim\widetilde{C}_1}{n-|S|}\le\frac{\rho_1 n}{n-\frac{n^{1-\tau}}{\kappa}}\le\rho_1+\frac{1}{2}\rho_2(1-\rho_1). n − ∣ S ∣ dim C 1 ≤ n − κ n 1 − τ ρ 1 n ≤ ρ 1 + 2 1 ρ 2 ( 1 − ρ 1 ) .
and C ~ 2 \widetilde{C}_2 C 2 is a random linear code of rate
dim C ~ 2 n − ∣ T ∣ ≤ ρ 2 n n − n 1 − τ κ ≤ ρ 2 + 1 2 ρ 1 ( 1 − ρ 2 ) . \frac{\dim\widetilde{C}_2}{n-|T|}\le\frac{\rho_2 n}{n-\frac{n^{1-\tau}}{\kappa}}\le\rho_2+\frac{1}{2}\rho_1(1-\rho_2). n − ∣ T ∣ dim C 2 ≤ n − κ n 1 − τ ρ 2 n ≤ ρ 2 + 2 1 ρ 1 ( 1 − ρ 2 ) .
By Lemma 9, both C ~ 1 \widetilde{C}_1 C 1 and C ~ 2 \widetilde{C}_2 C 2 can thus decode ( 1 − ρ 1 − ρ 2 + ρ 1 ρ 2 ) (1-\rho_1-\rho_2+\rho_1\rho_2) ( 1 − ρ 1 − ρ 2 + ρ 1 ρ 2 ) -noisy erasures with high probability. Thus for all n n n large enough, equation (14) becomes
Pr C 1 , C 2 x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) of weight w with supp ( c r o w ) ⊆ S × [ n ] and supp ( c c o l ) ⊆ [ n ] × T ] ≤ e − b n . (15) \Pr_{C_1,C_2}^{\mathbf{x}\sim1-\rho}\left[\exists\mathbf{c}\in S_C(\mathbf{x})\text{ of weight }w\text{ with }\operatorname{supp}(\mathbf{c}_{\mathrm{row}})\subseteq S\times[n]\text{ and }\operatorname{supp}(\mathbf{c}_{\mathrm{col}})\subseteq[n]\times T\right]\le e^{-bn}. \tag*{(15)} C 1 , C 2 Pr x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) of weight w with supp ( c row ) ⊆ S × [ n ] and supp ( c col ) ⊆ [ n ] × T ] ≤ e − bn . (15)
for some constant b = b ( ρ 1 , ρ 2 , τ ) b=b(\rho_1,\rho_2,\tau) b = b ( ρ 1 , ρ 2 , τ ) . Letting E E E denote the event that C C C is κ \kappa κ -product expanding and noting that there are at most ( n w / κ n ) ⋅ ( n w / κ n ) ≤ 2 2 n 1 − τ / κ log n = 2 o ( n ) \binom{n}{w/\kappa n}\cdot\binom{n}{w/\kappa n}\le2^{2n^{1-\tau}/\kappa\log n}=2^{o(n)} ( w / κn n ) ⋅ ( w / κn n ) ≤ 2 2 n 1 − τ / κ l o g n = 2 o ( n ) choices for a pair ( S , T ) (S,T) ( S , T ) with ∣ S ∣ = ∣ T ∣ = w κ n |S|=|T|=\frac{w}{\kappa n} ∣ S ∣ = ∣ T ∣ = κn w , we get by equations (13) , (15) and the union bound that for all n n n large enough, every w ≤ n 2 − τ w\le n^{2-\tau} w ≤ n 2 − τ satisfies
Pr C 1 , C 2 x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) with wt ( c ) = w ∣ E ] ≤ e − b ~ n \Pr_{C_1,C_2}^{\mathbf{x}\sim1-\rho}\left[\exists\mathbf{c}\in S_C(\mathbf{x})\text{ with }\operatorname{wt}(\mathbf{c})=w\mid E\right]\le e^{-\widetilde{b}n} C 1 , C 2 Pr x ∼ 1 − ρ [ ∃ c ∈ S C ( x ) with wt ( c ) = w ∣ E ] ≤ e − b n
for some constant b ~ = b ~ ( ρ 1 , ρ 2 , τ ) \widetilde{b}=\widetilde{b}(\rho_1,\rho_2,\tau) b = b ( ρ 1 , ρ 2 , τ ) . Combining this with (13) and a union bound over all weights w ≤ n 2 − τ w\le n^{2-\tau} w ≤ n 2 − τ gives our theorem statement.
Theorem 15. Fix any ρ 1 , ρ 2 ∈ ( 0 , 1 ) \rho_1,\rho_2\in(0,1) ρ 1 , ρ 2 ∈ ( 0 , 1 ) and ν ∈ ( 0 , 1 3 ) \nu\in(0,\frac{1}{3}) ν ∈ ( 0 , 3 1 ) . Then there exists some n 0 = n 0 ( ν , ρ 1 , ρ 2 ) n_0=n_0(\nu,\rho_1,\rho_2) n 0 = n 0 ( ν , ρ 1 , ρ 2 ) such that for all n > n 0 n>n_0 n > n 0 , the dual tensor code C : = ( C 1 ⊗ C 2 ) ⊥ C:=(C_1\otimes C_2)^\perp C := ( C 1 ⊗ C 2 ) ⊥ of two
independent uniform random linear codes C 1 , C 2 ⊆ F 2 n C_1,C_2 \subseteq\mathbb{F}_2^n C 1 , C 2 ⊆ F 2 n of rates ( 1 − ρ 1 ) (1-\rho_1) ( 1 − ρ 1 ) and ( 1 − ρ 2 ) (1-\rho_2) ( 1 − ρ 2 ) satisfies
Pr C 1 , C 2 x ∼ 1 − ρ − n − 1 2 + 3 ν 2 [ decode ( C , x ) = 0 ] ≤ 4 n − ν 2 \Pr_{C_1,C_2}^{x\sim1-\rho-n^{-\frac{1}{2}+\frac{3\nu}{2}}}\left[\operatorname{decode}(C,x)=0\right]\leq4n^{-\frac{\nu}{2}} C 1 , C 2 Pr x ∼ 1 − ρ − n − 2 1 + 2 3 ν [ decode ( C , x ) = 0 ] ≤ 4 n − 2 ν
for ρ : = ρ 1 + ρ 2 − ρ 1 ρ 2 \rho:= \rho_1+\rho_2-\rho_1\rho_2 ρ := ρ 1 + ρ 2 − ρ 1 ρ 2 .
Proof. We first bound the decoding error probabilities of C 1 C_1 C 1 and C 2 C_2 C 2 near capacity: by Lemma 9 , for γ = n − 1 − ν 2 \gamma=n^{-\frac{1-\nu}{2}} γ = n − 2 1 − ν and any n n n large enough, we have
Pr C 1 ⊆ F 2 n x ∼ ρ 1 − γ 2 [ decode ( C 1 , x ) = 0 ] ≤ e − b n ν , \Pr_{C_1\subseteq\mathbb{F}_2^n}^{x\sim\rho_1-\frac{\gamma}{2}}\left[\operatorname{decode}(C_1,x)=0\right]\leq e^{-bn^\nu}, C 1 ⊆ F 2 n Pr x ∼ ρ 1 − 2 γ [ decode ( C 1 , x ) = 0 ] ≤ e − b n ν ,
Pr C 2 ⊆ F 2 n x ∼ ρ 2 − γ 2 [ decode ( C 2 , x ) = 0 ] ≤ e − b n ν \Pr_{C_2\subseteq\mathbb{F}_2^n}^{x\sim\rho_2-\frac{\gamma}{2}}\left[\operatorname{decode}(C_2,x)=0\right]\leq e^{-bn^\nu} C 2 ⊆ F 2 n Pr x ∼ ρ 2 − 2 γ [ decode ( C 2 , x ) = 0 ] ≤ e − b n ν
for some constant b = b ( ν ) b=b(\nu) b = b ( ν ) . Thus the code C 1 ⊗ C 2 C_1\otimes C_2 C 1 ⊗ C 2 has a small decoding error probability and achieves capacity. More specifically, since
ρ − γ ≤ ρ ~ 1 + ρ ~ 2 − ρ ~ 1 ρ ~ 2 \rho-\gamma\leq\widetilde{\rho}_1+\widetilde{\rho}_2-\widetilde{\rho}_1\widetilde{\rho}_2 ρ − γ ≤ ρ 1 + ρ 2 − ρ 1 ρ 2
for ρ ~ 1 = ρ 1 − γ 2 \widetilde{\rho}_1=\rho_1-\frac{\gamma}{2} ρ 1 = ρ 1 − 2 γ and ρ ~ 2 = ρ 2 − γ 2 \widetilde{\rho}_2=\rho_2-\frac{\gamma}{2} ρ 2 = ρ 2 − 2 γ , Theorem 7 implies that
E C 1 , C 2 x ∼ ρ − γ [ dim S C ⊥ ( x ) ] ≤ 2 n 3 e − b n ν . (16) \mathbb{E}_{C_1,C_2}^{x\sim\rho-\gamma}\left[\dim S_{C^\perp}(x)\right]\leq2n^3e^{-bn^\nu}. \tag*{(16)} E C 1 , C 2 x ∼ ρ − γ [ dim S C ⊥ ( x ) ] ≤ 2 n 3 e − b n ν . (16)
We will now show that (16) implies that the code C = ( C 1 ⊗ C 2 ) ⊥ C=(C_1\otimes C_2)^\perp C = ( C 1 ⊗ C 2 ) ⊥ has a small decoding error probability and achieves capacity. Let A ∈ F 2 ( n 2 − dim C ) × n 2 A\in\mathbb{F}_2^{(n^2-\dim C)\times n^2} A ∈ F 2 ( n 2 − d i m C ) × n 2 be a generator matrix of C ⊥ = C 1 ⊗ C 2 C^\perp=C_1\otimes C_2 C ⊥ = C 1 ⊗ C 2 . Note that by equation (16) and Lemma 13, we have
E C 1 , C 2 x ∼ ρ − γ [ rank A x ‾ ] ≥ dim C ⊥ − 2 n 3 e − b n ν , \mathbb{E}_{C_1,C_2}^{x\sim\rho-\gamma}\left[\operatorname{rank} A_{\overline{x}}\right]\geq\dim C^\perp-2n^3e^{-bn^\nu}, E C 1 , C 2 x ∼ ρ − γ [ rank A x ] ≥ dim C ⊥ − 2 n 3 e − b n ν ,
where for any vector z ∈ F 2 n z\in\mathbb{F}_2^n z ∈ F 2 n , we denote by A z A_z A z the restriction of the matrix A A A to the columns i ∈ [ n ] i\in[n] i ∈ [ n ] where z i = 1 z_i=1 z i = 1 . Thus
E C 1 , C 2 x ∼ 1 − ρ + γ [ rank A x ] ≥ dim C ⊥ − 2 n 3 e − b n ν . (17) \mathbb{E}_{C_1,C_2}^{x\sim1-\rho+\gamma}\left[\operatorname{rank} A_x\right]\geq\dim C^\perp-2n^3e^{-bn^\nu}. \tag*{(17)} E C 1 , C 2 x ∼ 1 − ρ + γ [ rank A x ] ≥ dim C ⊥ − 2 n 3 e − b n ν . (17)
But by definition, A A A is also the parity-check matrix of C C C , so Lemma 13 and equation (17) give
E C 1 , C 2 x ∼ 1 − ρ + γ [ dim S C ( x ) ] = E C 1 , C 2 x ∼ 1 − ρ + γ [ wt ( x ) − rank A x ] ≤ γ n 2 + 2 n 3 e − b n ν = n 3 + ν 2 + 2 n 3 e − b n ν . \begin{aligned}
\mathbb{E}_{C_1,C_2}^{x\sim1-\rho+\gamma}\left[\dim S_C(x)\right]
=
\mathbb{E}_{C_1,C_2}^{x\sim1-\rho+\gamma}\left[\operatorname{wt}(x)-\operatorname{rank} A_x\right] \\
&\leq\gamma n^2+2n^3e^{-bn^\nu} \\
&= n^{\frac{3+\nu}{2}}+2n^3e^{-bn^\nu}.
\end{aligned} E C 1 , C 2 x ∼ 1 − ρ + γ [ dim S C ( x ) ] = E C 1 , C 2 x ∼ 1 − ρ + γ [ wt ( x ) − rank A x ] ≤ γ n 2 + 2 n 3 e − b n ν = n 2 3 + ν + 2 n 3 e − b n ν .
In particular, by Markov’s inequality and monotonicity of the erasure channel, for all n n n large enough we have
Pr C 1 , C 2 x ∼ 1 − ρ [ dim S C ( x ) ≥ n 3 2 + ν ] ≤ 2 n − ν 2 . (18) \underset{\substack{C_1,C_2\\ \mathbf{x}\sim1-\rho}}{\Pr}\left[\dim S_C(\mathbf{x}) \ge n^{\frac{3}{2}+\nu}\right] \le2n^{-\frac{\nu}{2}}. \tag*{(18)} C 1 , C 2 x ∼ 1 − ρ Pr [ dim S C ( x ) ≥ n 2 3 + ν ] ≤ 2 n − 2 ν . (18)
We have thus established that when the noise parameter is slightly above 1 − ρ 1-\rho 1 − ρ , the covered subcode of C C C has small dimension with high probability. But by Lemma 14, every codeword in this covered subcode must have large weight. Intuitively, this means that if we randomly uncover a few erasures, we will with high probability uncover at least one erasure in each of those covered codewords. Formally, let z 1 , … , z ⌊ n 3 2 + ν ⌋ ∈ F 2 n \mathbf{z}^{1},\ldots,\mathbf{z}^{\left\lfloor n^{\frac{3}{2}+\nu}\right\rfloor}\in\mathbb{F}_2^n z 1 , … , z ⌊ n 2 3 + ν ⌋ ∈ F 2 n be independent n − ( 2 − ν 2 ) n^{-(2-\frac{\nu}{2})} n − ( 2 − 2 ν ) -noisy variables and define for each i ∈ { 1 , … , ⌊ n 3 2 + ν ⌋ } i\in\{1,\ldots,\lfloor n^{\frac{3}{2}+\nu}\rfloor\} i ∈ { 1 , … , ⌊ n 2 3 + ν ⌋} the erasure pattern
x i : = x \ ( z 1 ∨ ⋯ ∨ z i ) . \mathbf{x}^{i}:=\mathbf{x}\backslash\left(\mathbf{z}^{1}\vee\cdots\vee\mathbf{z}^{i}\right). x i := x \ ( z 1 ∨ ⋯ ∨ z i ) .
Consider the event E = E ( x ) E=E(\mathbf{x}) E = E ( x ) defined by
E ( x ) : = { 1 if dim S C ( x ) ≤ n 3 2 + ν and wt ( c ) ≥ n 2 − ν 4 for all c ∈ S C ( x ) ∖ 0 , 0 otherwise. E(\mathbf{x}):=
\begin{cases}
1 & \text{if }\dim S_C(\mathbf{x})\le n^{\frac{3}{2}+\nu}\text{ and }\operatorname{wt}(c)\ge n^{2-\frac{\nu}{4}}\text{ for all }c\in S_C(\mathbf{x})\setminus0,\\
0 & \text{otherwise.}
\end{cases} E ( x ) := { 1 0 if dim S C ( x ) ≤ n 2 3 + ν and wt ( c ) ≥ n 2 − 4 ν for all c ∈ S C ( x ) ∖ 0 , otherwise.
Note that by equation (18) and Lemma 14, for all n n n large enough we have
Pr C 1 , C 2 x ∼ 1 − ρ [ E ( x ) = 1 ] ≥ 1 − 3 n − ν 2 . (19) \underset{\substack{C_1,C_2\\ \mathbf{x}\sim1-\rho}}{\Pr}[E(\mathbf{x})=1]\ge1-3n^{-\frac{\nu}{2}}. \tag*{(19)} C 1 , C 2 x ∼ 1 − ρ Pr [ E ( x ) = 1 ] ≥ 1 − 3 n − 2 ν . (19)
Let E i ( x ) E_i(\mathbf{x}) E i ( x ) be the event that dim S C ( x i ) > 0 \dim S_C(\mathbf{x}^{i})>0 dim S C ( x i ) > 0 . Since ∣ supp S C ( x i ) ∣ ≥ n 2 − ν 4 |\operatorname{supp} S_C(\mathbf{x}^{i})|\ge n^{2-\frac{\nu}{4}} ∣ supp S C ( x i ) ∣ ≥ n 2 − 4 ν whenever E ( x ) = E i ( x ) = 1 E(\mathbf{x})=E_i(\mathbf{x})=1 E ( x ) = E i ( x ) = 1 , we have
Pr C 1 , C 2 x ∼ 1 − ρ z 1 , … , z i + 1 ∼ n − ( 2 − ν 2 ) [ dim S C ( x i + 1 ) < dim S C ( x i ) ∣ E , E i ] ≥ 1 − ( 1 − n − ( 2 − ν 2 ) ) n 2 − ν 4 \underset{\substack{C_1,C_2\\ \mathbf{x}\sim1-\rho\\ \mathbf{z}^{1},\ldots,\mathbf{z}^{i+1}\sim n^{-(2-\frac{\nu}{2})}}}{\Pr}\left[\dim S_C(\mathbf{x}^{i+1})<\dim S_C(\mathbf{x}^{i})\mid E,E_i\right]\ge1-\left(1-n^{-(2-\frac{\nu}{2})}\right)^{n^{2-\frac{\nu}{4}}} C 1 , C 2 x ∼ 1 − ρ z 1 , … , z i + 1 ∼ n − ( 2 − 2 ν ) Pr [ dim S C ( x i + 1 ) < dim S C ( x i ) ∣ E , E i ] ≥ 1 − ( 1 − n − ( 2 − 2 ν ) ) n 2 − 4 ν
≥ 1 − e − n ν 4 , \ge1-e^{-n^{\frac{\nu}{4}}}, ≥ 1 − e − n 4 ν ,
where in the last line we used the inequality 1 − a ≤ e − a 1-a\le e^{-a} 1 − a ≤ e − a . So with high probability, every S C ( x i ) S_C(\mathbf{x}^{i}) S C ( x i ) of nonzero dimension has smaller dimension than its predecessor S C ( x i − 1 ) S_C(\mathbf{x}^{i-1}) S C ( x i − 1 ) . We will thus exhaust the original subcode cover’s dimension after at most n 3 2 + ν n^{\frac{3}{2}+\nu} n 2 3 + ν steps. Formally, by equation (19) and the union bound, we have that for all n n n large enough,
Pr C 1 , C 2 x ∼ 1 − ρ z 1 , … , z ⌊ n 3 2 + ν ⌋ ∼ n − ( 2 − ν 2 ) [ dim S C ( x ⌊ n 3 2 + ν ⌋ ) > 0 ] ≤ Pr [ E ( x ) = 0 ] + Pr [ ∃ i : dim S C ( x i + 1 ) = dim S C ( x i ) > 0 ∣ E ] \underset{\substack{C_1,C_2\\ \mathbf{x}\sim1-\rho\\ \mathbf{z}^{1},\ldots,\mathbf{z}^{\left\lfloor n^{\frac{3}{2}+\nu}\right\rfloor}\sim n^{-(2-\frac{\nu}{2})}}}{\Pr}\left[\dim S_C\left(\mathbf{x}^{\left\lfloor n^{\frac{3}{2}+\nu}\right\rfloor}\right)>0\right]
\le\Pr[E(\mathbf{x})=0]
+\Pr\left[\exists i:\dim S_C(\mathbf{x}^{i+1})=\dim S_C(\mathbf{x}^{i})>0\mid E\right] C 1 , C 2 x ∼ 1 − ρ z 1 , … , z ⌊ n 2 3 + ν ⌋ ∼ n − ( 2 − 2 ν ) Pr [ dim S C ( x ⌊ n 2 3 + ν ⌋ ) > 0 ] ≤ Pr [ E ( x ) = 0 ] + Pr [ ∃ i : dim S C ( x i + 1 ) = dim S C ( x i ) > 0 ∣ E ]
≤ 4 n − ν 2 . \le4n^{-\frac{\nu}{2}}. ≤ 4 n − 2 ν .
Now the erasure pattern x ~ = x \ ( z 1 ∨ ⋯ ∨ z ⌊ n 3 2 + ν ⌋ ) \widetilde{\mathbf{x}}=\mathbf{x}\backslash\left(\mathbf{z}^{1}\vee\cdots\vee\mathbf{z}^{\left\lfloor n^{\frac{3}{2}+\nu}\right\rfloor}\right) x = x \ ( z 1 ∨ ⋯ ∨ z ⌊ n 2 3 + ν ⌋ ) is μ \mu μ -noisy for
μ = ( 1 − ρ ) ( 1 − n − ( 2 − ν 2 ) ) [ n 3 2 + ν ] ≥ ( 1 − ρ ) ( 1 − n − 1 2 + 3 ν 2 ) ≥ 1 − ρ − n − 1 2 + 3 ν 2 , \mu= (1-\rho)\left(1-n^{-(2-\frac{\nu}{2})}\right)^{\left[n^{\frac{3}{2}+\nu}\right]} \ge(1-\rho)\left(1-n^{-\frac{1}{2}+\frac{3\nu}{2}}\right) \ge1-\rho-n^{-\frac{1}{2}+\frac{3\nu}{2}}, μ = ( 1 − ρ ) ( 1 − n − ( 2 − 2 ν ) ) [ n 2 3 + ν ] ≥ ( 1 − ρ ) ( 1 − n − 2 1 + 2 3 ν ) ≥ 1 − ρ − n − 2 1 + 2 3 ν ,
so our previous equation implies that
Pr C 1 , C 2 x ∼ 1 − ρ − n − 1 2 + 3 ν 2 [ decode ( C , x ) = 0 ] ≤ 4 n − ν 2 . \underset{\mathbf{x}\sim1-\rho-n^{-\frac{1}{2}+\frac{3\nu}{2}}}{\Pr_{C_1,C_2}}\left[\operatorname{decode}(C,\mathbf{x})=0\right]\le4n^{-\frac{\nu}{2}}. x ∼ 1 − ρ − n − 2 1 + 2 3 ν C 1 , C 2 Pr [ decode ( C , x ) = 0 ] ≤ 4 n − 2 ν .
Capacity-achieving quantum Tanner codes
In this section, we prove that the quantum Tanner code construction described in Section 4 achieves capacity on the erasure channel with a positive error exponent.
Theorems 3 and 4
10.1. Theorems 3 and 4. First, we give some comments on the proofs of Theorems 3 and 4 and the fact that the generalisation to four constituent inner codes C A , C B , D A , D B C_A,C_B,D_A,D_B C A , C B , D A , D B instead of two leaves the proofs of [22 ] unchanged.
Consider Theorem 3 on the minimum distance of the quantum Tanner code. We consider a codeword x \mathbf{x} x of one of the two codes, say C X C_X C X , and want to prove that if its weight is too small, then it must belong to the row-space of H Z \mathbf{H}_Z H Z , namely C Z ⊥ C_Z^\perp C Z ⊥ . The codeword x \mathbf{x} x may be thought of as subset of squares, and since the code C X C_X C X is defined by equations that are supported by the local views at vertices of V 00 V_{00} V 00 and V 11 V_{11} V 11 , we may momentarily forget the vertices of V 01 V_{01} V 01 and V 10 V_{10} V 10 so that squares become incident to only two vertices, thus defining the edges of a bipartite graph G \mathcal{G} G . If the component Cayley graphs Cay ( A , G ) \operatorname{Cay}(A,G) Cay ( A , G ) and Cay ( G , B ) \operatorname{Cay}(G,B) Cay ( G , B ) are chosen to be Ramanujan graphs, then the graph G \mathcal{G} G has degree Δ 2 \Delta^2 Δ 2 and second eigenvalue not more than 4 Δ 4\Delta 4Δ [21 Lemma 4] . Standard expansion of graphs arguments tell us that any subgraph of G \mathcal{G} G that has average degree more than 4 Δ 4\Delta 4Δ must be linear in the number of edges of G \mathcal{G} G , i.e. the length of C X C_X C X . Conversely, if the weight of our codeword x \mathbf{x} x is chosen to be smaller than this quantity, it must have an average degree that scales like Δ \Delta Δ .
After arriving at this first conclusion, we consider how typically x \mathbf{x} x intersects nontrivially local views of vertices of V 00 ∪ V 11 V_{00}\cup V_{11} V 00 ∪ V 11 and invoke Theorem 12 to claim that pairs C A , C B C_A,C_B C A , C B and D A , D B D_A,D_B D A , D B have some fixed robustness (or product expansion) parameter κ \kappa κ . This means that typical local views of vertices v ∈ V 00 v\in V_{00} v ∈ V 00 incident to x \mathbf{x} x decompose into a sum of a constant number of column codewords of C A ⊥ C_A^\perp C A ⊥ and a constant number of row codewords of C B ⊥ C_B^\perp C B ⊥ (for v ∈ V 11 v\in V_{11} v ∈ V 11 C A C_A C A and C B C_B C B are replaced by D A D_A D A and D B D_B D B ). We then look at the typical local views of vertices incident to x \mathbf{x} x , but for the other vertex types V 01 V_{01} V 01 and V 10 V_{10} V 10 . Using the local structure of the square complex and the expansion properties of Cay ( A , G ) \operatorname{Cay}(A,G) Cay ( A , G ) and Cay ( G , B ) \operatorname{Cay}(G,B) Cay ( G , B ) one obtains that the local views for these vertices are typically very different. The sparse sets of rows and columns that support the local views for V 00 ∪ V 11 V_{00}\cup V_{11} V 00 ∪ V 11 must cluster around the local views for V 01 ∪ V 10 V_{01}\cup V_{10} V 01 ∪ V 10 . We obtain that some local views at v ∈ V 01 v\in V_{01} v ∈ V 01 must be made up of large number of rows that are almost all close to codewords of C A ⊥ C_A^\perp C A ⊥ and they also consist of a large number of columns that are almost all close to codewords of D B ⊥ D_B^\perp D B ⊥ . Here ’large’ means at least a quantity that is governed by the smallest minimum distance of the two constituent codes C A ⊥ C_A^\perp C A ⊥ and D B ⊥ D_B^\perp D B ⊥ . (The vertex v v v may possibly need to belong to V 10 V_{10} V 10 instead of V 01 V_{01} V 01 , in which case the codes C A ⊥ C_A^\perp C A ⊥ and D B ⊥ D_{B}^{\perp} D B ⊥ need to be replaced by D A ⊥ D_{A}^{\perp} D A ⊥ and C B ⊥ C_{B}^{\perp} C B ⊥ . Robustness is then again invoked to claim that such a pattern must be close to a codeword of the tensor code C A ⊥ ⊗ D B ⊥ C_{A}^{\perp} \otimes D_{B}^{\perp} C A ⊥ ⊗ D B ⊥ . But this is exactly a parity-check equation of C Z C_{Z} C Z , which we may therefore add to x \mathbf{x} x to obtain a codeword of C X C_{X} C X of smaller weight. Iterating gives us that x \mathbf{x} x must belong to C Z C_{Z} C Z which is the desired behaviour.
The point of this sketch is to stress that the proof only needs to know lower bounds δ \delta δ and κ \kappa κ on the relative minimum distances and the robustness of the relevant constituent codes and pairs of constituent codes. The rest consists of the combinatorics of expansion and averaging arguments. Once δ \delta δ and κ \kappa κ are fixed by the rates ρ A , ρ B , 1 − ρ A , 1 − ρ B , ε , 1 − ε \rho_{A}, \rho_{B}, 1-\rho_{A}, 1-\rho_{B}, \varepsilon, 1-\varepsilon ρ A , ρ B , 1 − ρ A , 1 − ρ B , ε , 1 − ε of the constituent codes, a sufficiently large Δ \Delta Δ should be chosen so that expansion can apply, notably δ Δ \delta\Delta δ Δ and κ Δ \kappa\Delta κ Δ should exceed significantly the second eigenvalue of the graphs, Cay ( A , G ) \operatorname{Cay}(A,G) Cay ( A , G ) and Cay ( G , B ) \operatorname{Cay}(G,B) Cay ( G , B ) , which holds for sufficiently large Δ \Delta Δ after fixing δ \delta δ and κ \kappa κ .
For Theorem 4 the proof of [22 ] is more involved but follows the same principle. We are given the syndrome of an error vector e Z \mathbf{e}_{Z} e Z , and to decode it we apply a local decoding algorithm at every vertex of V 00 ∪ V 11 V_{00} \cup V_{11} V 00 ∪ V 11 . If all the local decoders agree on every coordinate, then we have global candidate for the error vector. This is unlikely to happen though, there will be coordinates for which the two local views to which it belongs, in V 00 V_{00} V 00 and V 11 V_{11} V 11 , disagree. The set of positions for which the local decoders disagree is called the mismatch vector. It is equal to a sum of dual tensor codewords supported by local views of vertices of V 00 ∪ V 11 V_{00} \cup V_{11} V 00 ∪ V 11 . Robustness ensures that every dual tensor codeword decomposes as a sum of row codewords and column codewords. Every row codeword and every column codeword can be shared with a neighbouring vertex whose local view shares this very row or column. Therefore the mismatch vector can also be read locally on the local views of vertices of V 01 ∪ V 10 V_{01} \cup V_{10} V 01 ∪ V 10 . Analysing the local structure of the mismatch vector leads us to conclude that it must be possible to add a dual tensor codeword on the local view of one of the four types of vertices that decreases the mismatch weight. Iterating eventually reduces the mismatch to zero, after which we have a candidate for the error vector. Again, the proof consists of leveraging expansion arguments, with the only coding requirements being that local dual tensor codewords can be faithfully decomposed as a sum of row codewords and column codewords (robustness) and that everyone of those codewords has a sufficiently large minimum weight (distance).
Analysing the behaviour on the erasure channel
For convenience, we briefly recall our construction: fix any parameters ρ ∈ ( 0 , 1 2 ) \rho\in(0,\frac{1}{2}) ρ ∈ ( 0 , 2 1 ) and any small ε \varepsilon ε . We consider a quadripartite Cayley square complex with vertex set V 00 ∪ V 11 ∪ V 01 ∪ V 10 V_{00} \cup V_{11} \cup V_{01} \cup V_{10} V 00 ∪ V 11 ∪ V 01 ∪ V 10 and generators A , B A,B A , B of sizes ∣ A ∣ = ∣ B ∣ = Δ |A|=|B|=\Delta ∣ A ∣ = ∣ B ∣ = Δ . We place the qubits of our code on the squares of the complex. We let the vertices of V 00 V_{00} V 00 and V 11 V_{11} V 11 support the X X X -check equations and we let the vertices of V 10 V_{10} V 10 and V 01 V_{01} V 01 support the Z Z Z -check equations. By construction, each check equation is thus supported on a set of Δ 2 \Delta^{2} Δ 2 qubits that can naturally be indexed by A × B A \times B A × B . We take the V 00 V_{00} V 00 check equations to come from C A ⊗ C B C_{A} \otimes C_{B} C A ⊗ C B , the V 11 V_{11} V 11 check equations to come from D A ⊗ D B D_{A} \otimes D_{B} D A ⊗ D B , the V 01 V_{01} V 01 check equations to come from C A ⊥ ⊗ D B ⊥ C_{A}^{\perp} \otimes D_{B}^{\perp} C A ⊥ ⊗ D B ⊥ and the V 10 V_{10} V 10 check equations to come from D A ⊥ ⊗ C B ⊥ D_{A}^{\perp} \otimes C_{B}^{\perp} D A ⊥ ⊗ C B ⊥ , where C A , C B , D A , D B C_{A},C_{B},D_{A},D_{B} C A , C B , D A , D B are linear codes of length Δ \Delta Δ and rate
rate ( C A ) = 1 − ρ − ε 3 , \operatorname{rate}(C_A)=1-\rho-\frac{\varepsilon}{3}, rate ( C A ) = 1 − ρ − 3 ε ,
rate ( C B ) = ρ + ε 6 1 − ρ − ε 3 , \operatorname{rate}(C_B)=\frac{\rho+\frac{\varepsilon}{6}}{1-\rho-\frac{\varepsilon}{3}}, rate ( C B ) = 1 − ρ − 3 ε ρ + 6 ε ,
rate ( D A ) = 1 − ε 4 , \operatorname{rate}(D_A)=1-\frac{\varepsilon}{4}, rate ( D A ) = 1 − 4 ε ,
rate ( D B ) = ε 4 , \operatorname{rate}(D_B)=\frac{\varepsilon}{4}, rate ( D B ) = 4 ε ,
for some fixed ε ∈ ( 0 , 1 − 2 ρ ) \varepsilon\in(0,1-2\rho) ε ∈ ( 0 , 1 − 2 ρ ) . As we established in § 2.3 , this code is a valid CSS code. We compute
rate ( C A ⊗ C B ) = ( 1 − ρ − ε 3 ) ρ + ε 6 1 − ρ − ε 3 = ρ + ε 6 , \operatorname{rate}(C_A\otimes C_B)=\left(1-\rho-\frac{\varepsilon}{3}\right)\frac{\rho+\frac{\varepsilon}{6}}{1-\rho-\frac{\varepsilon}{3}}=\rho+\frac{\varepsilon}{6}, rate ( C A ⊗ C B ) = ( 1 − ρ − 3 ε ) 1 − ρ − 3 ε ρ + 6 ε = ρ + 6 ε ,
rate ( C A ⊥ ⊗ D B ⊥ ) = ( ρ + ε 3 ) ( 1 − ε 4 ) , \operatorname{rate}(C_A^\perp\otimes D_B^\perp)=\left(\rho+\frac{\varepsilon}{3}\right)\left(1-\frac{\varepsilon}{4}\right), rate ( C A ⊥ ⊗ D B ⊥ ) = ( ρ + 3 ε ) ( 1 − 4 ε ) ,
rate ( D A ⊗ D B ) ≤ ε 4 , \operatorname{rate}(D_A\otimes D_B)\leq\frac{\varepsilon}{4}, rate ( D A ⊗ D B ) ≤ 4 ε ,
rate ( D A ⊥ ⊗ C B ⊥ ) ≤ ε 4 . \operatorname{rate}(D_A^\perp\otimes C_B^\perp)\leq\frac{\varepsilon}{4}. rate ( D A ⊥ ⊗ C B ⊥ ) ≤ 4 ε .
In particular, we have
rate ( C ρ , ε , Δ , n ) ≥ 1 − 2 ρ − ε \operatorname{rate}(C_{\rho,\varepsilon,\Delta,n})\geq1-2\rho-\varepsilon rate ( C ρ , ε , Δ , n ) ≥ 1 − 2 ρ − ε
but also
rate ( C A ⊗ C B ) ≥ ρ + ε 12 , \operatorname{rate}(C_A\otimes C_B)\geq\rho+\frac{\varepsilon}{12}, rate ( C A ⊗ C B ) ≥ ρ + 12 ε ,
rate ( C A ⊥ ⊗ D B ⊥ ) ≥ ρ + ε 12 . \operatorname{rate}(C_A^\perp\otimes D_B^\perp)\geq\rho+\frac{\varepsilon}{12}. rate ( C A ⊥ ⊗ D B ⊥ ) ≥ ρ + 12 ε .
Thus we have obtained a quantum Tanner code of rate arbitrarily close to 1 − 2 ρ 1-2\rho 1 − 2 ρ for which the X X X and Z Z Z checks associated with the vertices in V 00 V_{00} V 00 and V 01 V_{01} V 01 come from codes of rates larger than ρ \rho ρ . By Theorem 15 , these two codes typically succeed in decoding ρ \rho ρ -noisy erasures; we should thus be able to decode e Z e_Z e Z almost entirely by using the X X X -checks associated with the vertices of V 00 V_{00} V 00 , and we should be able to decode e X e_X e X almost entirely by using the Z Z Z -checks associated with the vertices of V 01 V_{01} V 01 .
More formally, by Theorem 12, there exists constants δ \delta δ , κ \kappa κ depending only on ρ \rho ρ and ε \varepsilon ε such that we can choose C A C_A C A , C B C_B C B , D A D_A D A , D B D_B D B and their duals to have minimum distance δ Δ \delta\Delta δ Δ and any pair (except for those comprised of a component code and its dual) to be κ \kappa κ -robust. (For Δ \Delta Δ large enough, a random choice of C A C_A C A , C B C_B C B , D A D_A D A , D B D_B D B satisfies these requirements with high probability.) Furthermore, by Theorem 15 , as long as Δ \Delta Δ is large enough in terms of ρ \rho ρ , ε \varepsilon ε , we can additionally choose our component codes so that C A ⊗ C B C_A\otimes C_B C A ⊗ C B and C A ⊥ ⊗ D B ⊥ C_A^\perp\otimes D_B^\perp C A ⊥ ⊗ D B ⊥ satisfy
Pr x ∼ ρ + ε 15 [ decode ( ( C A ⊗ C B ) ⊥ , x ) = 0 ] ≤ Δ − 1 10 , (20) \Pr_{x\sim\rho+\frac{\varepsilon}{15}}\left[\operatorname{decode}\left((C_A\otimes C_B)^\perp,x\right)=0\right]\leq\Delta^{-\frac{1}{10}}, \tag*{(20)} x ∼ ρ + 15 ε Pr [ decode ( ( C A ⊗ C B ) ⊥ , x ) = 0 ] ≤ Δ − 10 1 , (20)
Pr x ∼ ρ + ε 15 [ decode ( ( C A ⊥ ⊗ D B ⊥ ) ⊥ , x ) = 0 ] ≤ Δ − 1 10 . (21) \Pr_{x\sim\rho+\frac{\varepsilon}{15}}\left[\operatorname{decode}\left(\left(C_A^\perp\otimes D_B^\perp\right)^\perp,x\right)=0\right]\leq\Delta^{-\frac{1}{10}}. \tag*{(21)} x ∼ ρ + 15 ε Pr [ decode ( ( C A ⊥ ⊗ D B ⊥ ) ⊥ , x ) = 0 ] ≤ Δ − 10 1 . (21)
(Again, a random choice of component codes will satisfy these requirements with high probability.) Denote by C ρ , ε , Δ , n C_{\rho,\varepsilon,\Delta,n} C ρ , ε , Δ , n any such construction of Tanner codes, i.e. any construction above with C A , C B , D A , D B C_A,C_B,D_A,D_B C A , C B , D A , D B and their duals having minimal distance at least δ Δ \delta\Delta δ Δ , robustness at least κ \kappa κ , and satisfying equations (20) and (21) . In our next theorem, which is a generalization of Theorem 2, we show that C ρ , ε , Δ , n C_{\rho,\varepsilon,\Delta,n} C ρ , ε , Δ , n achieves capacity on the quantum erasure channel.
Theorem 16. Consider any ρ ∈ ( 0 , 1 2 ) \rho\in\left(0,\frac{1}{2}\right) ρ ∈ ( 0 , 2 1 ) and any ε ∈ ( 0 , 1 − 2 ρ ) \varepsilon\in(0,1-2\rho) ε ∈ ( 0 , 1 − 2 ρ ) . Then there exists positive constants a , Δ , N 0 a,\Delta,N_0 a , Δ , N 0 (i.e. depending only on ρ \rho ρ and ε \varepsilon ε ) such that for all N > N 0 N>N_0 N > N 0 , the quantum Tanner code C ρ , ε , Δ , N C_{\rho,\varepsilon,\Delta,N} C ρ , ε , Δ , N has rate at least 1 − 2 ρ − ε 1-2\rho-\varepsilon 1 − 2 ρ − ε and can decode random quantum erasures of rate ρ \rho ρ with probability
Pr ε ∼ ρ [ decode ( C ρ , ε , Δ , N , ε ) = 1 ] ≥ 1 − 2 − a N \Pr_{\varepsilon\sim\rho}\left[\operatorname{decode}\left(C_{\rho,\varepsilon,\Delta,N},\varepsilon\right)=1\right]\geq1-2^{-aN} ε ∼ ρ Pr [ decode ( C ρ , ε , Δ , N , ε ) = 1 ] ≥ 1 − 2 − a N and decoding time ≤ N a \leq\frac{N}{a} ≤ a N .
Proof. We are given a subset ε ⊆ [ N ] \varepsilon\subseteq[N] ε ⊆ [ N ] of erased coordinates and the syndromes H X e Z T \mathbf{H}_X\mathbf{e}_Z^{\mathsf T} H X e Z T and H Z e X T \mathbf{H}_Z\mathbf{e}_X^{\mathsf T} H Z e X T of two vectors e X , e Z ∈ F 2 N \mathbf{e}_X,\mathbf{e}_Z\in\mathbb{F}_2^N e X , e Z ∈ F 2 N that were sampled uniformly randomly on ε \varepsilon ε and are identically 0 everywhere else. Our goal is to output the cosets e X + C X ⊥ \mathbf{e}_X+C_X^\perp e X + C X ⊥ and e Z + C Z ⊥ \mathbf{e}_Z+C_Z^\perp e Z + C Z ⊥ .
Our decoding algorithm is quite simple: first, go through every vertex v ∈ V 00 v\in V_{00} v ∈ V 00 and attempt to decode the vector e v \mathbf{e}_v e v from the erasure set ε \varepsilon ε and the syndrome H v e Z T \mathbf{H}_v\mathbf{e}_Z^{\mathsf T} H v e Z T , where e v \mathbf{e}_v e v denotes the restriction of the error vector e Z \mathbf{e}_Z e Z to the local view Q ( v ) Q(v) Q ( v ) and H v \mathbf{H}_v H v denotes the restriction of the parity-check matrix H X \mathbf{H}_X H X to the set of constraints imposed by the vertex v v v . 1
Then, proceed in exactly the same way for the X X X -component of the error: go through every vertex v ∈ V 01 v\in V_{01} v ∈ V 01 and attempt to decode the vector e v \mathbf{e}_v e v from the erasure set ε \varepsilon ε and the syndrome H v e X T \mathbf{H}_v\mathbf{e}_X^{\mathsf T} H v e X T , where now e v \mathbf{e}_v e v denotes the restriction of the error vector e X \mathbf{e}_X e X to the local view Q ( v ) Q(v) Q ( v ) and H v \mathbf{H}_v H v denotes the restriction of the parity-check matrix H Z \mathbf{H}_Z H Z to the set of constraints imposed by the vertex v v v .
Denote by u X ∈ F 2 N \mathbf{u}_X\in\mathbb{F}_2^N u X ∈ F 2 N the vector that is identical to e X \mathbf{e}_X e X on the coordinates i ∈ [ N ] i\in[N] i ∈ [ N ] that we were able to recover and has zeroes everywhere else. Denote by u Z ∈ F 2 N \mathbf{u}_Z\in\mathbb{F}_2^N u Z ∈ F 2 N the vector that is identical to e Z \mathbf{e}_Z e Z on the coordinates i ∈ [ N ] i\in[N] i ∈ [ N ] that we were able to recover and has zeroes everywhere else. As the final step of our decoding algorithm, apply the adversarial algorithm of Theorem 4 ([22 ] ) to the X X X -syndrome H X e Z T + H X u Z T \mathbf{H}_X\mathbf{e}_Z^{\mathsf T}+\mathbf{H}_X\mathbf{u}_Z^{\mathsf T} H X e Z T + H X u Z T and the Z Z Z -syndrome H Z e X T + H Z u X T \mathbf{H}_Z\mathbf{e}_X^{\mathsf T}+\mathbf{H}_Z\mathbf{u}_X^{\mathsf T} H Z e X T + H Z u X T .
We first bound the probability that our algorithm fails. Define
N X : = ∣ { v ∈ V 00 : e v cannot be recovered from ε and H v e v T } ∣ , N_X := \left|\left\{v \in V_{00}: \mathbf{e}_v \text{ cannot be recovered from } \varepsilon\text{ and } H_v\mathbf{e}_v^{\mathsf{T}}\right\}\right|, N X := { v ∈ V 00 : e v cannot be recovered from ε and H v e v T } ,
N Z : = ∣ { v ~ ∈ V 01 : e v ~ cannot be recovered from ε and H v ~ e v ~ T } ∣ . N_Z := \left|\left\{\widetilde{v} \in V_{01}: \mathbf{e}_{\widetilde{v}} \text{ cannot be recovered from } \varepsilon\text{ and } H_{\widetilde{v}}\mathbf{e}_{\widetilde{v}}^{\mathsf{T}}\right\}\right|. N Z := { v ∈ V 01 : e v cannot be recovered from ε and H v e v T } .
Here the subscripts of N X N_X N X and N Z N_Z N Z denote the check type: N X N_X N X counts failed local recoveries of e Z \mathbf{e}_Z e Z at V 00 V_{00} V 00 , and N Z N_Z N Z counts failed local recoveries of e X \mathbf{e}_X e X at V 01 V_{01} V 01 . By Corollary 5, as long as Δ \Delta Δ is large enough in terms of ρ , ε \rho,\varepsilon ρ , ε , there exists a constant f ( ρ , ε ) f(\rho,\varepsilon) f ( ρ , ε ) such that whenever the first part of our algorithm manages to recover all but f ( ρ , ε ) N Δ \frac{f(\rho,\varepsilon)N}{\Delta} Δ f ( ρ , ε ) N erroneous entries of e X \mathbf{e}_X e X and e Z \mathbf{e}_Z e Z , the adversarial decoding of [22 ] is guaranteed to succeed. Thus, since every vector e v \mathbf{e}_v e v has length Δ 2 \Delta^2 Δ 2 , we have that for all Δ \Delta Δ large enough in terms of ρ \rho ρ and ε \varepsilon ε ,
Pr [ decode ( C ρ , ε , Δ , N , ε ) = 0 ] ≤ Pr [ N X ≥ f ( ρ , ε ) N 2 Δ 3 ] + Pr [ N Z ≥ f ( ρ , ε ) N 2 Δ 3 ] . (22) \Pr\left[\operatorname{decode}(C_{\rho,\varepsilon,\Delta,N},\varepsilon)=0\right]\leq\Pr\left[N_X\geq\frac{f(\rho,\varepsilon)N}{2\Delta^3}\right]+\Pr\left[N_Z\geq\frac{f(\rho,\varepsilon)N}{2\Delta^3}\right]. \tag*{(22)} Pr [ decode ( C ρ , ε , Δ , N , ε ) = 0 ] ≤ Pr [ N X ≥ 2 Δ 3 f ( ρ , ε ) N ] + Pr [ N Z ≥ 2 Δ 3 f ( ρ , ε ) N ] . (22)
Now for any vertex v ∈ V 00 v\in V_{00} v ∈ V 00 , we succeed in recovering e v \mathbf{e}_v e v from ε \varepsilon ε and H v e v T H_v\mathbf{e}_v^{\mathsf{T}} H v e v T if and only if the restriction of H v H_v H v to the columns indexed by ε \varepsilon ε has full rank (see footnote 1), which by Lemma 13 happens if and only if the classical code ( C A ⊗ C B ) ⊥ (C_A\otimes C_B)^\perp ( C A ⊗ C B ) ⊥ is capable of decoding the error string ε \varepsilon ε . But recall from equation (20) that
Pr x ∼ ρ + ε 15 [ decode ( ( C A ⊗ C B ) ⊥ , x ) = 0 ] ≤ Δ − 1 10 . \Pr_{x\sim\rho+\frac{\varepsilon}{15}}\left[\operatorname{decode}\left((C_A\otimes C_B)^\perp,x\right)=0\right]\leq\Delta^{-\frac{1}{10}}. x ∼ ρ + 15 ε Pr [ decode ( ( C A ⊗ C B ) ⊥ , x ) = 0 ] ≤ Δ − 10 1 .
Thus by Theorem 11, there exists a constant α > 0 \alpha>0 α > 0 for which
Pr x ∼ ρ + ε 20 [ decode ( ( C A ⊗ C B ) ⊥ , x ) = 0 ] ≤ e − α ε 2 Δ ≤ f ( ρ , ε ) 4 Δ , \Pr_{x\sim\rho+\frac{\varepsilon}{20}}\left[\operatorname{decode}\left((C_A\otimes C_B)^\perp,x\right)=0\right]\leq e^{-\alpha\varepsilon^2\Delta}\leq\frac{f(\rho,\varepsilon)}{4\Delta}, x ∼ ρ + 20 ε Pr [ decode ( ( C A ⊗ C B ) ⊥ , x ) = 0 ] ≤ e − α ε 2 Δ ≤ 4Δ f ( ρ , ε ) ,
for f ( ρ , ε ) f(\rho,\varepsilon) f ( ρ , ε ) the constant in Corollary 5 and Δ \Delta Δ large enough in terms of ρ , ε \rho,\varepsilon ρ , ε . Thus by the Chernoff bound, since on average we expect ≤ N Δ 2 ⋅ f ( ρ , ε ) 4 Δ = f ( ρ , ε ) N 4 Δ 3 \leq\frac{N}{\Delta^2}\cdot\frac{f(\rho,\varepsilon)}{4\Delta}=\frac{f(\rho,\varepsilon)N}{4\Delta^3} ≤ Δ 2 N ⋅ 4Δ f ( ρ , ε ) = 4 Δ 3 f ( ρ , ε ) N vertices of V 00 V_{00} V 00 to have a decoding failure and since the local views of any two distinct vertices v , v ′ ∈ V 00 v,v'\in V_{00} v , v ′ ∈ V 00 are disjoint, we have
Pr [ N X ≥ f ( ρ , ε ) N 2 Δ 3 ] ≤ e − f ( ρ , ε ) N 12 Δ 3 . (23) \Pr\left[N_X\geq\frac{f(\rho,\varepsilon)N}{2\Delta^3}\right]\leq e^{-\frac{f(\rho,\varepsilon)N}{12\Delta^3}}. \tag*{(23)} Pr [ N X ≥ 2 Δ 3 f ( ρ , ε ) N ] ≤ e − 12 Δ 3 f ( ρ , ε ) N . (23)
The exact same argument applied to the Z Z Z -checks of V 01 V_{01} V 01 and the code C A ⊥ ⊗ D B ⊥ C_A^\perp\otimes D_B^\perp C A ⊥ ⊗ D B ⊥ gives
Pr [ N Z ≥ f ( ρ , ε ) N 2 Δ 3 ] ≤ e − f ( ρ , ε ) N 12 Δ 3 . (24) \Pr\left[N_Z\geq\frac{f(\rho,\varepsilon)N}{2\Delta^3}\right]\leq e^{-\frac{f(\rho,\varepsilon)N}{12\Delta^3}}. \tag*{(24)} Pr [ N Z ≥ 2 Δ 3 f ( ρ , ε ) N ] ≤ e − 12 Δ 3 f ( ρ , ε ) N . (24)
Fixing some Δ \Delta Δ and combining (23) and (24) with equation (22) , we get that there exists a constant a = a ( ρ , ε ) a=a(\rho,\varepsilon) a = a ( ρ , ε ) for which
Pr ε ∼ ρ [ decode ( C ρ , ε , Δ , N , ε ) = 0 ] ≤ 2 − a N \Pr_{\varepsilon\sim\rho}\left[\operatorname{decode}(C_{\rho,\varepsilon,\Delta,N},\varepsilon)=0\right]\leq2^{-aN} ε ∼ ρ Pr [ decode ( C ρ , ε , Δ , N , ε ) = 0 ] ≤ 2 − a N
for all N N N large enough, as desired. All that remains to show is then that the runtime of our algorithm is linear in N N N . For any v ∈ V 00 ∪ V 01 v\in V_{00}\cup V_{01} v ∈ V 00 ∪ V 01 , the vector e v \mathbf{e}_v e v has length Δ 2 \Delta^2 Δ 2 and the matrix H v H_v H v has fewer than Δ 2 \Delta^2 Δ 2 rows. Since our chosen Δ \Delta Δ is dependent only on ρ \rho ρ and ε \varepsilon ε , the Gaussian elimination process described in footnote 1 runs in time independent on N N N , and decoding e v e_v e v for all the vertices v ∈ V 00 ∪ V 01 v \in V_{00} \cup V_{01} v ∈ V 00 ∪ V 01 thus takes time ≤ β N \le\beta N ≤ β N for some constant β = β ( ε , ρ ) \beta= \beta(\varepsilon,\rho) β = β ( ε , ρ ) . Then since each row of H X , H Z \mathbf{H}_X,\mathbf{H}_Z H X , H Z has weight at most Δ 2 = O ε , ρ ( 1 ) \Delta^2 = O_{\varepsilon,\rho}(1) Δ 2 = O ε , ρ ( 1 ) , constructing H X u Z T \mathbf{H}_X\mathbf{u}_Z^{\mathsf{T}} H X u Z T and H Z u X T \mathbf{H}_Z\mathbf{u}_X^{\mathsf{T}} H Z u X T (and summing them with H X e Z \mathbf{H}_X\mathbf{e}_Z H X e Z and H Z e X \mathbf{H}_Z\mathbf{e}_X H Z e X respectively) takes time linear in N N N as well. Finally, by Corollary 5, the adversarial algorithm of [22 ] takes time O ( N ) O(N) O ( N ) . Thus overall, our algorithm runs in linear time.
Acknowledgements
The work of Henry D. Pfister was supported in part by the NSF under Grant 2120757. The work of Oscar Sprumont and of Gilles Zémor was supported by Plan France 2030 through the Project NISQ2LSQ, ANR-22-PETQ-0006. A conversation with the free version of ChatGPT helped speed up the proof of Lemma 6. While the manuscript was drafted without artificial intelligence, ChatGPT was used for editing assistance and to help find typos and errors. The authors take full responsibility for the contents of this paper.
References
† Université de Bordeaux, oscar.sprumont@u-bordeaux.fr
‡ Université de Bordeaux and Institut universitaire de France, zemor@math.u-bordeaux.fr