This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Quantum Locally Testable Code with Constant Soundness

Andrew Cross IBM Quantum, IBM T.J. Watson Research Center, Yorktown Heights, NY, United States. Zhiyang He (Sunny) szhe@mit.edu IBM Quantum, IBM T.J. Watson Research Center, Yorktown Heights, NY, United States. Department of Mathematics, Massachusetts Institute of Technology. Anand Natarajan Computer Science and Artificial Intelligence Laboratory, Massachusetts Institute of Technology. Mario Szegedy Rutgers, The State University of New Jersey, New Brunswick, NJ, United States. Guanyu Zhu IBM Quantum, IBM T.J. Watson Research Center, Yorktown Heights, NY, United States.
Abstract

In this paper, we present two constructions of QLTCs with constant soundness. In the first approach, we introduce an operation which we call check product, and show how this operation gives rise to QLTCs of constant soundness, constant rate, and distance scaling with locality. In the second approach, we utilize homological product of codes and prove a special case in which the soundness of component codes is preserved through the homological product. This observation leads us to construct QLTCs of constant soundness, scalable rate and distance, and constant average locality. Our work marks a step towards constructing QLTCs of high soundness and distance, which would give a different construction to the No Low-Energy Trivial States (NLTS) theorem.

1 Introduction

Quantum error correcting codes (QECCs) are essential objects of study in quantum information science due to their broad applications in both practical and theoretical quantum computation. Practically, QECC is the foundation of fault-tolerant quantum computation, which holds the promise to scalable quantum computing. Theoretically, quantum coding theory interacts extensive with quantum complexity theory and information theory, much like how classical coding theory interacts with theoretical computer science. In development of quantum codes for theoretical purposes, we often focus on their asymptotic properties, such as relative rate and distance. In this paper, we study the testability of quantum codes and present two novel constructions.

A classical code CC is called testable if the syndrome of a proposed code word ww reveals more than whether ww belongs to the code: the relative weight of the syndrome is also proportional to the relative distance of ww from the codespace, and their ratio is called the soundness of CC. A code is further called locally testable if all of its checks involves at most a constant number of bits from ww. The theory of code checking, which began with the pioneering work of Blum, Luby, and Rubinfeld [BLR90], has grown into a widely successful area of the theory of computing, affecting PCP theory, combinatorial optimization, combinatorial property testing, program checking and even cryptography.

With the advancement of quantum information science, a quantum notion of locally testable codes (QLTC) was first proposed and studied by Aharonov and Eldar in [AE15]. The existence of such codes gained major interest in 2015, when Eldar and Harrow showed in [EH17] that any QLTC with constant soundness, locality and relative distance could be used to construct Hamiltonians with no low-energy trivial states, which would resolve the famous NLTS conjecture of Freedman and Hastings [FH13]. This conjecture is deeply related to the quantum PCP conjecture [AAV13], one of the most important open problems in quantum complexity theory. Further, classical LTCs are important components in the proofs of the classical PCP Theorem [Aro+98, Din07]. Naturally, the connections between QLTCs and the qPCP conjecture became a topic of major importance in the field.

However, constructing QLTCs of high soundness and distance seemed far-fetched at the time, as the best known quantum LDPC codes (QLDPC) had distance Θ~(N)\tilde{\Theta}(\sqrt{N}) and no bound on soundness. Here we say that a (quantum) code is LDPC if the number of (qu)bits each check involves and the number of checks each (qu)bit is involved in are all bounded by a constant \ell, which we call the locality of the code. The first QLTC with unconditional guarantee on soundness is the hypersphere product code constructed by Hastings [Has17a], which encodes two logical qubits, has soundness 1/log(N)21/\log(N)^{2}, locality Θ(log(N))\Theta(\log(N)) and distance Θ(N)\Theta(\sqrt{N}). In 2019, Leverrier, Londe and Zémor constructed another family of QLTC called the hemicubic codes [LLZ22], which encodes one qubit and has an improved soundness of 1/log(N)1/\log(N), with roughly the same locality and distance. These constructions remain the only known QLTCs, and it was unclear how to improve the soundness to Ω(1)\Omega(1), without reducing the code to have no encoded qubits.

The landscape of QLDPC constructions changed significantly in 2020, following Hastings, Haah and O’Donnell’s breakthrough construction of fiber bundle codes [HHO21] that achieved Ω~(N3/5)\tilde{\Omega}(N^{3/5}) distance. Their ideas were soon generalized to lifted product codes [PK22a] by Panteleev and Kalachev, and balanced product codes [BE21] by Breuckmann and Eberhardt, culminating in the 2021 result of Panteleev and Kalachev that presented the first family of asymptotically good qLPDC codes [PK22]. It was further shown that embedded in the construction in [PK22] is a c3c^{3}-LTC: asymptotically good classical LDPC code (CLDPC) that is locally testable with constant soundness. Around the same time, Dinur, Evra, Livne, Lubotzky and Mozes announced their construction of a c3c^{3}-LTC using left-right Cayley complexes [Din+22]. Building upon their works, two other families of asymptotically good QLDPCs are constructed [LZ22, Din+23]. One such family, namely quantum Tanner codes [LZ22] by Leverrier and Zémor, was utilized by Anshu, Breuckmann and Nirkhe [ABN23] to prove the NLTS conjecture. Following these developments, the problem of constructing QLTCs with good parameters became one of major interest.

In this paper, we take a concrete step towards this open problem by constructing the first few families of QLTCs with constant soundness and varying distance.

1.1 Main Results

We begin by presenting a simple idea that transforms a good classical LDPC locally testable code with constant soundness into a quantum LDPC locally testable code with constant soundness and constant rate. However, it has the striking deficit of having distance 2.

Lemma 1.1.

Given a family of classical LDPC codes with parameters [n,k,d][n,k,d] that are locally testable with soundness ρ\rho, there exists a family of quantum LDPC codes that are locally testable with soundness 2ρ2\rho and parameters [2n,2k,2][2n,2k,2].

It is important to note that the soundness condition is nontrivial, because it concerns the distance of an arbitrary state from the codespace, which can be much larger than the code distance, which is the distance between two codewords. For instance, if CC is a classical LTC over nn bits, then the code C¯={(x,y)𝔽22n:x+yC}\bar{C}=\{(x,y)\in\mathbb{F}_{2}^{2n}:x+y\in C\} has distance 2 (since it contains (ei,ei)(e_{i},e_{i}) for all ii), yet if xx is far from CC, then (x,0)(x,0) is far from C¯\bar{C}. Our quantum construction is in fact based on this simple classical example. We present this construction in section 3 and discuss how it could be generalized to a new operation which we give the name check product. Using this operation and random quantum codes, we obtain the first main result of our paper, a family of QLTCs with constant soundness, constant rate, and distance scaling with locality.

Theorem 1.2.

Suppose we have a family of classical LDPC codes with parameters [n1,k1=rn1,d1][n_{1},k_{1}=rn_{1},d_{1}] that are locally testable with soundness ρ\rho. Then for any n2n_{2}, there exists a family of quantum locally testable codes with soundness 4ρ4\rho, locality bounded by O(n2)O(n_{2}), and parameters [n1n2,(1+r)n1n2/2,Θ(min(d1,n2))][n_{1}n_{2},(1+r)n_{1}n_{2}/2,\Theta(\min(d_{1},n_{2}))].

For instance, taking n2=log(n1)n_{2}=\log(n_{1}), we obtain QLTCs of constant soundness, constant rate, Θ(log(n))\Theta(\log(n)) distance and O(log(n))O(\log(n)) locality.

Our second main result utilizes the distance balancing technique for quantum codes introduced by Hastings [Has17]. Given a quantum code of distinct XX and ZZ distance, Hastings showed that one could take the hypergraph product of this quantum code with a classical repetition code to obtain a new quantum code with balanced XX and ZZ distance. Notably, this technique balances distance at the expense of soundness – if the original quantum code has soundness ρ\rho and one uses a repetition code of length \ell in the hypergraph product, the soundness of the resulting quantum code would be ρ/\rho/\ell.

To address this deficiency, we propose a slight yet critical modification to the distance balancing technique such that the soundness of the component quantum code is preserved, at partial expense in locality. We present these results in Section 5, arriving at our second main result.

Theorem 1.3.

Fix integer 2\ell\geq 2. Given a family of classical LDPC codes with parameters [n,k,d][n,k,d] that are locally testable with mm checks and soundness ρ\rho, there exists a family of quantum locally testable codes of soundness Ω(ρ)\Omega(\rho) and parameters [N=n+m(1),k,min(d,2)][N=n\ell+m(\ell-1),k,\min(d,2\ell)], such that a 1/1/\ell fraction of XX-stabilizer generators have weight Θ()\Theta(\ell), and at most 1/1/\ell fraction of the qubits are checked by Θ()\Theta(\ell) ZZ-stabilizer generators. All other stabilizer generators are constant weight, and all other qubits are checked by a constant number of stabilizer generators.

As an example, choosing =n\ell=n, we obtain QLTCs with constant soundness, Θ(1/N)\Theta(1/\sqrt{N}) rate, Θ(N)\Theta(\sqrt{N}) distance and O(N)O(\sqrt{N}) locality. While this code family is no longer LDPC for any \ell scaling with nn, we note that the check weights are non-uniform. In particular, we note that the total check weight of all stabilizer generators is Θ(N)\Theta(N), which means the average locality is Θ(1)\Theta(1). While it is unclear whether average locality is an useful measure, we note the constant average locality here since it is an interesting property that arises naturally from our constructions.

We now present a summary of parameters of known QLTCs and our constructions in the following tables. Since some of these constructions have components whose size can be tweaked (such as the length of the repetition code in Theorem 1.3), in table 1 we present the parameters of the general forms of these constructions, and in table 2 we present the parameters of special cases for direct comparison. We further remark that in terms of worst case bounds, the parameters of Theorem 1.2 are strictly better than that of Theorem 1.3. However, the average locality of Theorem 1.3 are both constant, which is not the case in Theorem 1.2.

Constructions Ref [Has17a] Ref [LLZ22] Theorem 1.2 Theorem 1.3
Physical qubits N(2p)2nN\approx(2p)^{2n} NN N=n1n2N=n_{1}n_{2} N=nlN=nl
Soundness 1/(np)1/(np) Ω(1/log(N))\Omega(1/\log(N)) Ω(1)\Omega(1) Ω(1)\Omega(1)
Logical qubits 2 1 n1n2n_{1}n_{2} nn
Distance Θ(pn+1)\Theta(p^{n+1}) Θ(N)\Theta(\sqrt{N}) Θ(min(n1,n2))\Theta(\min(n_{1},n_{2})) Θ(min(n,))\Theta(\min(n,\ell))
Locality Θ(2n)\Theta(2n) O(log(N))O(\log(N)) O(n2)O(n_{2}) avg=Θ(1),max=Θ()\operatorname{avg}=\Theta(1),\max=\Theta(\ell)
Table 1: Parameters of the general forms of the constructions.
Constructions Ref [Has17a] Ref [LLZ22] Theorem 1.2 Theorem 1.3
Physical qubits NN NN NN NN
Soundness 1/log(N)21/\log(N)^{2} Ω(1/log(N))\Omega(1/\log(N)) Ω(1)\Omega(1) Ω(1)\Omega(1)
Logical qubits 2 1 Θ(N)\Theta(N) Θ(N)\Theta(\sqrt{N})
Distance Θ(N)\Theta(\sqrt{N}) Θ(N)\Theta(\sqrt{N}) Θ(log(N))\Theta(\log(N)) Θ(N)\Theta(\sqrt{N})
Locality O(log(N))O(\log(N)) O(log(N))O(\log(N)) O(log(N))O(\log(N)) avg=Θ(1),max=Θ(N)\operatorname{avg}=\Theta(1),\max=\Theta(\sqrt{N})
Table 2: Parameters of special cases of the constructions.

2 Preliminaries

In this section, we introduce the basic definitions of quantum CSS codes and local testability. Given a vector v𝔽2nv\in\mathbb{F}_{2}^{n}, we let XvX^{v} denote the nn-qubit Pauli operator Xv1Xv2XvnX^{v_{1}}\otimes X^{v_{2}}\otimes\cdots X^{v_{n}}, where X1=XX^{1}=X and X0=IX^{0}=I. We define ZvZ^{v} similarly.

Definition 2.1 (CSS Codes).

Let CX=ker(HX)C_{X}=\ker(H_{X}) and CZ=ker(HZ)C_{Z}=\ker(H_{Z}) be linear codes of length nn such that CXCZC_{X}^{\perp}\subseteq C_{Z} (equivalently, HXHZT=0H_{X}H_{Z}^{T}=0). The quantum code Q=CSS(HX,HZ)Q=\operatorname{CSS}(H_{X},H_{Z}) is the stabilizer code where the XX-stabilizers have the form XcX^{c} for cCXc\in C_{X}^{\perp}, and the ZZ-stabilizers have the form ZcZ^{c} for cCZc\in C_{Z}^{\perp}. Its code space is spanned by following states, where for γ\gamma ranges over CZC_{Z}.

|γ+CX:=1|CX|cCX|γ+c|\gamma+C_{X}^{\perp}\rangle:=\frac{1}{\sqrt{|C_{X}^{\perp}|}}\sum_{c\in C_{X}^{\perp}}|\gamma+c\rangle (1)
Fact 2.2.

If CXC_{X} and CZC_{Z} are [n,kX,dX][n,k_{X},d_{X}^{\prime}] and [n,kZ,dZ][n,k_{Z},d_{Z}^{\prime}] codes, respectively, then Q=CSS(HX,HZ)Q=\operatorname{CSS}(H_{X},H_{Z}) has dimension k=kX+kZnk=k_{X}+k_{Z}-n and minimum distance d=min(dX,dZ)min(dX,dZ)d=\min(d_{X},d_{Z})\geq\min(d_{X}^{\prime},d_{Z}^{\prime}) where dX:=min{|c|:cCXCZ}d_{X}:=\min\{|c|:c\in C_{X}\setminus C_{Z}^{\perp}\} and dZ:=min{|c|:cCZCX}d_{Z}:=\min\{|c|:c\in C_{Z}\setminus C_{X}^{\perp}\}.

In this paper, we consider the following definition of local testability, which is the same as in [LLZ22].

Definition 2.3 (Locally testable code).

A linear code C𝔽2nC\in\mathbb{F}_{2}^{n} is locally testable with soundness ρ\rho and check weight ww if it has parity check matrix H𝔽2m×nH\in\mathbb{F}_{2}^{m\times n} with rows of weight ww such that for any x𝔽2nx\in\mathbb{F}_{2}^{n} we have

1m|Hx|ρnd(x,C)\frac{1}{m}|Hx|\geq\frac{\rho}{n}d(x,C) (2)

where d(x,C):=mincCd(x,c)d(x,C):=\min_{c\in C}d(x,c) and d(,)d(\cdot,\cdot) denotes the Hamming distance.

We consider the definition of quantum locally testable codes as in [EH17]. Given a quantum stabilizer code with stabilizer generators S1,,SmS_{1},\cdots,S_{m} all having weight at most ww, we define the projector operators Πi=12(ISi)\Pi_{i}=\frac{1}{2}(I-S_{i}). For a quantum codespace Q(2)nQ\leq(\mathbb{C}^{2})^{\otimes n}, we define the tt-fattening of QQ as

Qt=Span{(A1An)|ψ:|ψQ,#{i[n],AiI}t}.Q_{t}=\operatorname{Span}{\{(A_{1}\otimes\cdots\otimes A_{n})\ket{\psi}:\ket{\psi}\in Q,\#\{i\in[n],A_{i}\neq I\}\leq t\}}.

This is the space of states that are at distance at most tt from the codespace QQ. Let ΠQt\Pi_{Q_{t}} be the projector onto QtQ_{t}, and let

DQ=t1t(ΠQtΠQt1).D_{Q}=\sum_{t\geq 1}t(\Pi_{Q_{t}}-\Pi_{Q_{t-1}}).
Definition 2.4 (Quantum Locally Testable Codes).

A nn-qubit quantum code QQ with stabilizer generators S1,,SmS_{1},\cdots,S_{m} is locally testable with soundness ρ\rho and check weight ww if all its stabilizer generators have weight at most ww, and

1mi=1m12(ISi)ρnDQ.\frac{1}{m}\sum_{i=1}^{m}\frac{1}{2}(I-S_{i})\succeq\frac{\rho}{n}D_{Q}.

Local testability of quantum CSS codes and the testability of their classical component codes are closely related, as shown by [EH17]:

Lemma 2.5 (Fact 17 of [EH17]).

A quantum CSS code CSS(HX,HZ)\operatorname{CSS}(H_{X},H_{Z}) is a QLTC with soundness ρ\rho if CX=ker(HX),CZ=ker(HZ)C_{X}=\ker(H_{X}),C_{Z}=\ker(H_{Z}) are CLTCs of soundness ρ\rho. Conversely, if CSS(HX,HZ)\operatorname{CSS}(H_{X},H_{Z}) is a QLTC with soundness ρ\rho, then CX,CZC_{X},C_{Z} are CLTCs of soundness at least ρ/2\rho/2.

With this lemma in place, we now proceed to present our constructions.

3 Check Product of Codes

We start by presenting a simple construction that proves Lemma 1.1. All proofs in section 3 and 4, except for that of Claim 3.1, are included in the appendix.

3.1 A Motivating Example

Suppose C=ker(H)C=\ker(H), H𝔽2m×nH\in\mathbb{F}_{2}^{m\times n} is a classical LTC with soundness ρ\rho, rate rr, distance dd, and in addition an LDPC with weight ww. Define C¯=ker(H¯)\bar{C}=\ker(\bar{H}), where H¯=[H,H]\bar{H}=[H,H]. Then H¯H¯T=0\bar{H}\bar{H}^{T}=0, which means Q=CSS(H¯,H¯)Q=\operatorname{CSS}(\bar{H},\bar{H}) is a valid quantum code. We now prove the following claim, which justifies considering this approach.

Claim 3.1.

C¯=ker(H¯)\bar{C}=\ker(\bar{H}) is a LDPC CLTC with soundness 2ρ2\rho, rate 1+r2\frac{1+r}{2}, and distance 2.

Proof.

A way to understand the code C¯\bar{C} is through its Tanner graph. Suppose the Tanner graph of CC consists of bit vertices BB and check vertices KK. Then the Tanner graph of C¯\bar{C} is obtained simply by creating a copy vv^{\prime} of each vBv\in B, where vv^{\prime} and vv are connected to the same check bits in KK. We can therefore represent each zC¯z\in\bar{C} as z=(x,y)z=(x,y), where x,y𝔽2nx,y\in\mathbb{F}_{2}^{n}. We show

C¯={(x,y):x,y𝔽2n,x+yC}.\bar{C}=\{(x,y):x,y\in\mathbb{F}_{2}^{n},x+y\in C\}. (3)

Fix (x,y)(x,y) such that x+yCx+y\in C. Then H¯(x,y)=Hx+Hy=0\bar{H}(x,y)=Hx+Hy=0, which means (x,y)C¯(x,y)\in\bar{C}. Similarly, fix (x,y)C¯(x,y)\in\bar{C}, then we have H(x+y)=H¯(x,y)=0H(x+y)=\bar{H}(x,y)=0. This proves (3). Now we see that C¯\bar{C} has distance 22, because for any vBv\in B, let 𝟙v𝔽2n\mathbbm{1}_{v}\in\mathbb{F}_{2}^{n} be the indicator vector of vv (meaning that it has a one at index vv, and 0 elsewhere), then (𝟙v,𝟙v)C¯(\mathbbm{1}_{v},\mathbbm{1}_{v^{\prime}})\in\bar{C}. We observe that any weight 11 vector v𝔽22nv\in\mathbb{F}_{2}^{2n} will have non-zero syndrome.

Now note that the check weights of C¯\bar{C} are bounded by 2w2w, and each qubit is checked by at most ww checks. Therefore C¯\bar{C} is LDPC. The rate of C¯\bar{C} is also easy to compute – the number of linearly independent checks stay at (1r)n(1-r)n, while the number of bits is doubled. So the overall rate is 1+r2\frac{1+r}{2}.

The more interesting part is to show local testability. We want to show x,y𝔽2n\forall x,y\in\mathbb{F}_{2}^{n},

|H¯(x,y)|/m2ρd((x,y),C¯)/2n.|\bar{H}(x,y)|/m\geq 2\rho\cdot d((x,y),\bar{C})/2n.

We first note that |H¯(x,y)|=|Hx+Hy|=|H(x+y)||\bar{H}(x,y)|=|Hx+Hy|=|H(x+y)|. Moreover, d((x,y),C¯)=d(x+y,C)d((x,y),\bar{C})=d(x+y,C). By local testability of CC, we have

|H(x+y)|/mρd((x+y),C)/n,|H(x+y)|/m\geq\rho\cdot d((x+y),C)/n,

which completes our proof. ∎

Corollary 3.2.

The quantum code Q=CSS(H¯,H¯)Q=\operatorname{CSS}(\bar{H},\bar{H}) is a QLTC of soundness 2ρ2\rho, check-weights bounded by 2w2w, rate rr, and dx=dz=2d_{x}=d_{z}=2.

By choosing CC as a known c3c^{3}-LTC, such as the left-right Cayley complex code [Din+22], we obtain Lemma 1.1. It is surprising that such a simple construction could already give us quantum codes of constant soundness. Moreover, this example demonstrates that the soundness and distance of a quantum code are not necessarily related. We generalize this construction in the following section.

3.2 General Check Products

We begin by making the following observation: the matrix H¯=[H,H]\bar{H}=[H,H] of the previous section could also be written as [1,1]H[1,1]\otimes H, where H0=[1,1]H_{0}=[1,1] is the parity check matrix of the repetition code C0={00,11}C_{0}=\{00,11\}. More generally, for any two classical codes C1=ker(H1),C2=ker(H2)C_{1}=\ker(H_{1}),C_{2}=\ker(H_{2}), we can define the following check product of the two codes:

C1C2=ker(H1H2).C_{1}\star C_{2}=\ker(H_{1}\otimes H_{2}).

The following facts are well known.

Lemma 3.3.

Let C1,C2C_{1},C_{2} be classical codes with parameters [n1,k1,d1][n_{1},k_{1},d_{1}] and [n2,k2,d2][n_{2},k_{2},d_{2}]. The following hold:

  1. 1.

    C1C2=C1𝔽2n2+𝔽2n1C2C_{1}\star C_{2}=C_{1}\otimes\mathbb{F}_{2}^{n_{2}}+\mathbb{F}_{2}^{n_{1}}\otimes C_{2}. Namely, C1C2C_{1}\star C_{2} is the dual tensor code of C1C_{1} and C2C_{2}.

  2. 2.

    C1C2C_{1}\star C_{2} has dimension n1n2(n1k1)(n2k2)n_{1}n_{2}-(n_{1}-k_{1})(n_{2}-k_{2}).

  3. 3.

    C1C2C_{1}\star C_{2} has distance min(d1,d2)\min(d_{1},d_{2}).

With this definition formalized, we can extend it to the check product of a classical code and a quantum code, as follows.

Definition 3.4 (Check-Product of classical and quantum code).

Given a classical code C=ker(H)C=\ker(H) and a quantum CSS code given by Q=CSS(HX,HZ)Q=\operatorname{CSS}(H_{X},H_{Z}), we define the check-product of QQ and CC to be the quantum code QC=CSS(HXH,HZH)Q\star C=\operatorname{CSS}(H_{X}\otimes H,H_{Z}\otimes H).

It is straightforward to see that the commutativity condition is satisfied, so this definition is valid. We now address the distance of this quantum code.

Lemma 3.5.

Given a quantum code Q=CSS(HX,HZ)Q=\operatorname{CSS}(H_{X},H_{Z}), the code QCQ\star C has distance min(d(C),d(CX),d(CZ))\min(d(C),d(C_{X}),d(C_{Z})). In words, its distance is the minimum of all of its component classical codes’ distance.

The natural question to ask now is — what can we say about the soundness of general check product codes? It is straightforward to see that the check product of a CLTC with a classical code that is not locally testable is also not locally testable, and it is also not clear if the check product of two arbitrary CLTCs remains locally testable. However, as we will show in section 4, the check product of CLTCs with a specific form is indeed locally testable. This enables us to prove Theorem 1.2 by considering the check product of a c3c^{3}-LTC with random quantum CSS codes.

4 The Check Product of a CLTC and a QLTC

In this section, we present a construction that proves Theorem 1.2. We once again begin by making a simple observation. Given a classical code C=ker(H)C=\ker(H), suppose HH is a m×nm\times n matrix with linearly independent rows. We may do Gaussian operations on the rows of HH, formally multiplying HH from the left by a non-singular matrix GG, such that the resulting matrix has the form (up to permuting the columns with a permutation matrix, Π\Pi):

H=[Im|R](=GHΠ)~{}H^{\prime}=\begin{bmatrix}I_{m}|R\end{bmatrix}\;\;(=GH\Pi) (4)

where ImI_{m} is the m×mm\times m identity matrix, and RR is a m×(nm)m\times(n-m) matrix. Note that ker(H)=Π1ker(H)=Π1C\ker(H^{\prime})=\Pi^{-1}\ker(H)=\Pi^{-1}C, and the rows of HH^{\prime} can have arbitrary weight due to the row operations.

Claim 4.1.

The code CC with check matrix HΠ1H^{\prime}\Pi^{-1} has soundness 1/r\geq 1/r, where rr is the rate of CC.

This claim directly implies the following simple corollary, which we include without proof.

Corollary 4.2.

Any classical linear code of rate rr can be turned into a CLTC with soundness 1/r\geq 1/r at the cost of having arbitrary locality, while keeping the same rate and distance. Similarly, any quantum CSS codes where both component codes are classical linear codes can be turned into a QLTC with soundness 1/r\geq 1/r at the cost of having arbitrary locality, while keeping the same rate and distance.

We note that the same idea of Claim 4.1 was discussed by Campbell in section 5 of [Cam19], but we only became aware of this correspondence after this paper was finished.

In spite of its simplicity, Claim 4.1 has an important application in our check product construction, as shown in the following lemma.

Lemma 4.3.

Suppose C=ker(H)𝔽2nC=\ker(H)\subset\mathbb{F}_{2}^{n} is a CLTC with soundness ρ\rho and locality ww. Let CX=ker(HX)C_{X}=\ker(H_{X}) be a classical code where HXH_{X} is a mX×nXm_{X}\times n_{X} matrix of the form [ImXhX][I_{m_{X}}\mid h_{X}], such that its locality is bounded by wXw_{X}. Then CXCC_{X}\star C is a CLTC with soundness at least ρnX/mX\rho n_{X}/m_{X} and locality wwXww_{X}.

Combining Lemma 4.3 with Lemma 3.3 and Corollary 4.2, we obtain:

Theorem 4.4.

Given a nn-bit classical LTC, C=ker(H)\,C=\ker(H), of soundness ρ\rho, dimension kk, distance dd and locality ww, and a nqn_{q}-qubit quantum code Q=CSS(HX,HZ)Q=\operatorname{CSS}(H_{X},H_{Z}) of dimension kqk_{q}, we can reduce HX,HZH_{X},H_{Z} to have the form in equation (4), and denote the resulting quantum code Q¯=CSS(H¯X,H¯Z)\bar{Q}=\operatorname{CSS}(\bar{H}_{X},\bar{H}_{Z}). (QQ and Q¯\bar{Q} as sub-spaces are the same. What makes them different is their sets of XX and ZZ checks.) Then the check product code Q¯C\bar{Q}\star C has

  1. 1.

    local testability with soundness ρmin(nqmX,nqmZ)\rho\cdot\min(\frac{n_{q}}{m_{X}},\frac{n_{q}}{m_{Z}}) (in particular, soundness ρ)\geq\rho),

  2. 2.

    distance min(d,d(CX),d(CZ))\min(d,d(C_{X}),d(C_{Z})), where CX=ker(HX),CZ=ker(HZ)C_{X}=\ker(H_{X}),C_{Z}=\ker(H_{Z}).

  3. 3.

    locality bounded by wnqwn_{q},

  4. 4.

    and dimension nnq(nk)(nqkq)nn_{q}-(n-k)(n_{q}-k_{q}).

While it is tempting to apply this theorem to a c3c^{3}-LTC and a good QLDPC code, we note that the result will have constant distance. Indeed, for a quantum CSS code that is LDPC, we necessarily have d(CX),d(CZ)=O(1)d(C_{X}),d(C_{Z})=O(1). For instance, to argue that d(CX)=O(1)d(C_{X})=O(1), we notice that CXCZC_{X}\geq C_{Z}^{\perp}, and since CZC_{Z}^{\perp} contains all possible checks for CZC_{Z}, it also contains the low-weight ones. In fact, to construct QLTC of scalable distance from Theorem 4.4, we want d(CX),d(CZ)d(C_{X}),d(C_{Z}) to be as large as possible, which in turn implies that the quantum code Q=CSS(HX,HZ)Q=\operatorname{CSS}(H_{X},H_{Z}) has correspondingly large check weights for all possible checks (i.e. checks in CXC_{X}^{\perp} and CZC_{Z}^{\perp}). In the following theorem, we show that random codes satisfy this property.

Theorem 4.5.

Let C𝔽2nC\leq\mathbb{F}_{2}^{n}, C=ker(HC)C=\ker(H_{C}) be a random code with dimension 3n4\frac{3n}{4}. Let DCD\leq C be a random subspace of CC of dimension n4\frac{n}{4}. Let HDH_{D} be the n4×n\frac{n}{4}\times n matrix such that its rows span the space DD, then with high probability CC and DD^{\perp} both have linear distances, and the CSS code made from the classical codes CC and DD^{\perp} (here check sets do not influence the statement) has rate 1/21/2.

Combining Theorem 4.4 and 4.5, we obtain Theorem 1.2.

5 Gauge Fixing and Distance Balancing

Theorem 1.2 shows a family of QLTCs where the quantum distance scales positively with the check weight. In this section, we prove Theorem 1.3 by tweaking our construction in section 3.1 and applying distance balancing with our modifications.

5.1 Modifying Stabilizer and Logical Operators

We briefly recall our earlier construction. Given a LDPC CLTC C=kerH𝔽2nC=\ker{H}\leq\mathbb{F}_{2}^{n} of soundness ρ\rho, dimension kk and distance dd, we define C¯=ker(H¯)\bar{C}=\ker(\bar{H}), where H¯=[H,H]\bar{H}=[H,H], and Q=CSS(H¯,H¯)Q=\operatorname{CSS}(\bar{H},\bar{H}). Let us consider the stabilizers and logical operators of QQ. Consider the set of Pauli operators

{X(ei,ei),i[n]:ei are the standard basis vectors of 𝔽2n}.\{X^{(e_{i},e_{i})},i\in[n]:e_{i}\text{ are the standard basis vectors of $\mathbb{F}_{2}^{n}$}\}.

We observe that exactly kk of these operators are independent XX-logical operators, and the other nkn-k of them can be generated from the previous kk operators together with the XX-stabilizers. There are another set of XX-logical operators, namely

{X(v,0):vC}.\{X^{(v,0)}:v\in C\}.

Exactly kk logical operators in this set are independent, and they all have linear weight. Together, these 2k2k operators generate the complete set of XX-logical operators of QQ. Similarly, by replacing XXs with ZZs, we found the set of ZZ-logical operators of QQ. We see that dx=dz=2d_{x}=d_{z}=2.

Now suppose we move all the ZZ-logical operators of weight 2 into the ZZ-stabilizer group. Then the remaining kk ZZ-logical operators all have linear weight, which means we have dz=O(n)d_{z}=O(n). On the other hand, all the high-weight XX-logical operators of the form {X(v,0):vC}\{X^{(v,0)}:v\in C\} are no longer valid logical operators, as they do not compute with all the ZZ-stabilizers. Therefore, the set of XX-logical operators that remain is precisely

{X(v,v):v𝔽2n}.\{X^{(v,v)}:v\in\mathbb{F}_{2}^{n}\}.

A more direct way of writing this new code would be the following. Let HZ=[I,I],HX=[H,H]H_{Z}=[I,I],H_{X}=[H,H]. Our new code is precisely Q=CSS(HX,HZ)Q^{\prime}=\operatorname{CSS}(H_{X},H_{Z}). The code states of QQ^{\prime} can be explicitly written out as

|ψv=(a,b)𝔽2na+bkerH|v+a,v+b.\ket{\psi_{v}}=\sum_{\begin{subarray}{c}(a,b)\in\mathbb{F}_{2}^{n}\\ a+b\in\ker{H}\end{subarray}}\ket{v+a,v+b}.

This code then has dz=O(n),dx=2d_{z}=O(n),d_{x}=2. It is locally testable with soundness 2ρ2\rho, LDPC, and has dimension kk.

5.2 Distance Balancing

We can now apply the distance balancing techniques in [Has17]. Specifically, we consider our code QQ^{\prime} as a chain complex

Q=𝔽2nHZT=[I,I]T𝔽22nHX=[H,H]𝔽2m,Q=\mathbb{F}_{2}^{n}\xrightarrow{H_{Z}^{T}=[I,I]^{T}}\mathbb{F}_{2}^{2n}\xrightarrow{H_{X}=[H,H]}\mathbb{F}_{2}^{m},

and we take a repetition code of length \ell, also viewed as a chain complex

R=EHV,R=E\xrightarrow{H_{\ell}}V,

where E=𝔽21,V=𝔽2E=\mathbb{F}_{2}^{\ell-1},V=\mathbb{F}_{2}^{\ell}, and HH_{\ell} is the ×(1)\ell\times(\ell-1) matrix of the form

H=[10001100011000110001].~{}H_{\ell}=\begin{bmatrix}1&0&0&0&\cdots\\ 1&1&0&0&\cdots\\ 0&1&1&0&\cdots\\ &&\cdots&&\\ &&\cdots&&\\ 0&0&\cdots&1&1\\ 0&0&\cdots&0&1\\ \end{bmatrix}. (5)

We take the homological product of the two complexes, and the resulting chain complex Q×RQ\times R is

𝔽22nE{\mathbb{F}_{2}^{2n}\otimes E}𝔽2mE{\mathbb{F}_{2}^{m}\otimes E}𝔽2nE{\mathbb{F}_{2}^{n}\otimes E}{\oplus}{\oplus}𝔽2mV{\mathbb{F}_{2}^{m}\otimes V}𝔽2nV{\mathbb{F}_{2}^{n}\otimes V}𝔽22nV{\mathbb{F}_{2}^{2n}\otimes V}C3{C_{3}}C2{C_{2}}C1{C_{1}}C0{C_{0}}HXI\scriptstyle{H_{X}\otimes I}IH\scriptstyle{I\otimes H_{\ell}}IH\scriptstyle{I\otimes H_{\ell}}HZTI\scriptstyle{H_{Z}^{T}\otimes I}IH\scriptstyle{I\otimes H_{\ell}}HZTI\scriptstyle{H_{Z}^{T}\otimes I}HXI\scriptstyle{H_{X}\otimes I}3\scriptstyle{\partial_{3}}2\scriptstyle{\partial_{2}}1\scriptstyle{\partial_{1}} (6)

Now we take the sub-chain complex C2C1C0C_{2}\rightarrow C_{1}\rightarrow C_{0}, and view it as a quantum code. From [Has17], the following holds.

Lemma 5.1.

If the original quantum code QQ is a 2n2n-qubit LDPC quantum code with dimension kk and distance dx,dzd_{x},d_{z}, then this new code QQ^{\prime} is a 2n+m(1)2n\ell+m(\ell-1)-qubit LDPC quantum code with dimension kk and distance dx,dz\ell d_{x},d_{z}.

We refer the readers to [Has17], statement 7 and 8 of Lemma 2 for the proofs. Moreover, it was also shown in [Has17] that the resulting code is locally testable, albeit having a lower soundness.

Lemma 5.2 (Lemma 7 of [Has17]).

If QQ is a QLTC with constant soundness, then the code QQ^{\prime} is a QLTC with soundness Ω(1/)\Omega(1/\ell).

Combining these two lemmas, we obtain the following corollary.

Corollary 5.3.

Fix integer 2\ell\geq 2. Given a family of classical LDPC codes with paramaters [n,k,d][n,k,d] that are locally testable with mm checks and soundness ρ\rho, there exists a family of quantum LDPC locally testable codes of soundness Ω(ρ/)\Omega(\rho/\ell) and parameters [N=n+m(1),k,min(d,2)][N=n\ell+m(\ell-1),k,\min(d,2\ell)].

We choose not to include direct proofs of these two lemmas in this paper, because in the following section we would present a slight modification to the above construction and prove Lemma 5.4 and 5.5. The proof of Lemma 5.4 would be a slightly modified version of the proof of Lemma 5.1 in [Has17], and the proof of Lemma 5.5 would follow a similar scheme as the proof of Lemma 5.2 in [Has17].

5.3 Preserving Soundness

As the primary goal of this paper is to achieve constant soundness, we present a simple modification to the above distance balancing technique that preserves soundness, while sacrificing some locality. We perform column operation on HH_{\ell} such that it has the following form.

H=[10000100001000011111].~{}H_{\ell}=\begin{bmatrix}1&0&0&0&\cdots\\ 0&1&0&0&\cdots\\ 0&0&1&0&\cdots\\ &&\cdots&&\\ &&\cdots&&\\ 0&0&\cdots&0&1\\ 1&1&\cdots&1&1\\ \end{bmatrix}. (7)

Note that as before, HTH_{\ell}^{T} is a valid parity check matrix for the repetition code. The rest of the construction remains unchanged.

While this modification seems superficial on first glance, it actually follows important geometric insights. To see that, we construct two graphs from the two matrices in equation (5) and (7). We create a vertex for each bit of the repetition code, which corresponds to rows of HlH_{l}, and for each column in HlH_{l}, we create an edge that connects the two vertices that has entry 11 at that column. Then the previous matrix (5) gives a line segment, while the new matrix (7) gives a star graph. Intuitively, the star graph has better soundness than a line segment since any collection of edges SS in the star graph must have at least the same number of vertices on its boundary S\partial S, while in a line segment a partial line segment have only two vertices on its boundary. This intuition can be formally formulated as boundary and co-boundary expansion of chain complexes, which are directly related to the soundness of classical and quantum codes derived from such chain complexes.

We now prove the following lemmas regarding the parameters of QQ^{\prime}. We suggest that the readers follow the chain complex in equation (6) when reading the following lemmas and proofs.

Lemma 5.4.

QQ^{\prime} is a 2n+m(1)2n\ell+m(\ell-1)-qubit quantum code with dimension kk and distance dx,dz\ell d_{x},d_{z}. A 1/1/\ell fraction of XX-stabilizer generators have weight Θ()\Theta(\ell), and at most 1/1/\ell fraction of the qubits are checked by Θ()\Theta(\ell) ZZ-checks. All other checks are constant weight, and all other qubits are checked by a constant number of checks.

Proof.

To show the dimension of the new code, we cite the Künneth formula from algebraic topology. Define the rrth homology group of a chain complex as Hr(C)=kerr/imr+1H_{r}(C)=\ker{\partial_{r}}/\operatorname{im}{\partial_{r+1}}, then the number of logical qubits of a quantum code is precisely dim(H1(C))\dim(H_{1}(C)). From the Künneth formula, we have

H1(Q×R)=(H1(Q)H0(R))(H0(Q)H1(R)).H_{1}(Q\times R)=(H_{1}(Q)\otimes H_{0}(R))\oplus(H_{0}(Q)\otimes H_{1}(R)).

Note that dim(H1(Q))=k,dim(H0(R))=1,\dim(H_{1}(Q))=k,\dim(H_{0}(R))=1, and dim(H1(R))=0\dim(H_{1}(R))=0. Therefore dim(H1(Q×R))=k\dim(H_{1}(Q\times R))=k.

For the ZZ distance of QQ^{\prime}, let c=(x,y)C1c=(x,y)\in C_{1} such that x𝔽22nVx\in\mathbb{F}_{2}^{2n}\otimes V, y𝔽2mEy\in\mathbb{F}_{2}^{m}\otimes E, and Z(x,y)Z^{(x,y)} is a ZZ-logical operator. Let v1,,vv_{1},\cdots,v_{\ell} be the standard basis vector of V=𝔽2V=\mathbb{F}_{2}^{\ell}, and e1,,e1e_{1},\cdots,e_{\ell-1} be the standard basis vector of E=𝔽21E=\mathbb{F}_{2}^{\ell-1}. Write x=i=1xivix=\sum_{i=1}^{\ell}x_{i}\otimes v_{i}. We describe a simplification procedure that turns xx into the form x¯v1\bar{x}\otimes v_{1}, such that |x¯|i=1|xi||\bar{x}|\leq\sum_{i=1}^{\ell}|x_{i}|.

We begin with xvx_{\ell}\otimes v_{\ell}. Consider 2(xe1)=(x(v1+v),(HXx)e1)\partial_{2}(x_{\ell}\otimes e_{1})=(x_{\ell}\otimes(v_{1}+v_{\ell}),(H_{X}x_{\ell})\otimes e_{1}), then

(i=1xivi,y)+2(xe1)=((x1+x)v1+i=21xivi,y+(HXx)e1).(\sum_{i=1}^{\ell}x_{i}\otimes v_{i},y)+\partial_{2}(x_{\ell}\otimes e_{1})=((x_{1}+x_{\ell})\otimes v_{1}+\sum_{i=2}^{\ell-1}x_{i}\otimes v_{i},y+(H_{X}x_{\ell})\otimes e_{1}).

In the stabilizer formalism, this step correspond to multiplying the logical operator Z(x,y)Z^{(x,y)} with the ZZ-stabilizer Z2(xe1)Z^{\partial_{2}(x_{\ell}\otimes e_{1})}. Now for all other i=2,,1i=2,\cdots,\ell-1, we multiply by the ZZ-stabilizer specified by 2(xi(e1+ei))=(xi(v1+vi),(HXxi)(e1+ei))\partial_{2}(x_{i}\otimes(e_{1}+e_{i}))=(x_{i}\otimes(v_{1}+v_{i}),(H_{X}x_{i})\otimes(e_{1}+e_{i})) and the final vector in C1C_{1} will have the form

c¯=((i=1xi)v1,y¯)\bar{c}=((\sum_{i=1}^{\ell}x_{i})\otimes v_{1},\bar{y})

for some y¯𝔽2nE\bar{y}\in\mathbb{F}_{2}^{n}\otimes E. Since Zc¯Z^{\bar{c}} is a valid logical operator, we must have 1(c¯)=0\partial_{1}(\bar{c})=0, which means

HX(i=1xi)v1+(IH)y¯=0.H_{X}(\sum_{i=1}^{\ell}x_{i})\otimes v_{1}+(I\otimes H_{\ell})\bar{y}=0.

However, note that v1im(H)v_{1}\notin\operatorname{im}(H_{\ell}), which means for the above equation to hold we must have y¯=0\bar{y}=0 and i=1xikerHX\sum_{i=1}^{\ell}x_{i}\in\ker{H_{X}}. This implies that Zi=1xiZ^{\sum_{i=1}^{\ell}x_{i}} must be a ZZ-logical operator of QQ. Therefore

|c|=|x|+|y||i=1xi|+|y|dz(Q),|c|=|x|+|y|\geq|\sum_{i=1}^{\ell}x_{i}|+|y|\geq d_{z}(Q),

which means dz(Q)dz(Q)d_{z}(Q^{\prime})\geq d_{z}(Q). We also note that dz(Q)dz(Q)d_{z}(Q^{\prime})\leq d_{z}(Q) since if ZxZ^{x} is a ZZ-logical operator of QQ, then Zxv1Z^{x\otimes v_{1}} is a ZZ-logical operator of QQ^{\prime}. We conclude that dz(Q)=dz(Q)d_{z}(Q^{\prime})=d_{z}(Q).

To discuss the XX distance, we define cohomologies and cite the Künneth formula again. For a chain complex CC, define the rrth homology group of a chain complex as Hr(C)=kerr+1T/imrTH^{r}(C)=\ker{\partial_{r+1}^{T}}/\operatorname{im}{\partial_{r}^{T}}, and the Künneth formula in this case states

H1(Q×R)=(H1(Q)H0(R))(H0(Q)H1(R)).H^{1}(Q\times R)=(H^{1}(Q)\otimes H^{0}(R))\oplus(H^{0}(Q)\otimes H^{1}(R)).

Since H1(R)=0H^{1}(R)=0, we have H1(Q×R)=(H1(Q)H0(R))H^{1}(Q\times R)=(H^{1}(Q)\otimes H^{0}(R)), which means any XX-logical operator (which corresponds to a chain cc in H1(Q×R)H^{1}(Q\times R)) can be written in the form

c=xv+1T(u)c=x\otimes v+\partial_{1}^{T}(u)

where xH1(Q),vH0(R),x\in H^{1}(Q),v\in H^{0}(R), and u𝔽2mVu\in\mathbb{F}_{2}^{m}\otimes V. Note that the H0(R)H^{0}(R) has dimension 11, which means v=i=1viv=\sum_{i=1}^{\ell}v_{i}. Now suppose u=i=1uiviu=\sum_{i=1}^{\ell}u_{i}\otimes v_{i}, and consider the projection of cc onto the space 𝔽22nV\mathbb{F}_{2}^{2n}\otimes V. It has the form

c𝔽22nV=i=1(x+HXTui)vi.c\mid_{\mathbb{F}_{2}^{2n}\otimes V}=\sum_{i=1}^{\ell}(x+H_{X}^{T}u_{i})\otimes v_{i}.

Since 2Tc=0\partial_{2}^{T}c=0, we must have x+HXTuiH1(Q)x+H_{X}^{T}u_{i}\in H^{1}(Q) for all ii, which means |c|dx(Q)|c|\geq\ell d_{x}(Q). This shows dx(Q)dx(Q)d_{x}(Q^{\prime})\geq\ell d_{x}(Q). We also note that dx(Q)dx(Q)d_{x}(Q^{\prime})\leq\ell d_{x}(Q) since if XxX^{x} is a XX-logical operator of QQ, then Xx(i=1vi)X^{x\otimes(\sum_{i=1}^{\ell}v_{i})} is a XX-logical operator of QQ^{\prime}. We conclude that dx(Q)=dx(Q)d_{x}(Q^{\prime})=\ell d_{x}(Q).

For the locality of QQ^{\prime}, we note that HXIH_{X}\otimes I and HZTIH_{Z}^{T}\otimes I are matrices with constant row and column weights. For IHI\otimes H_{\ell}, exactly 1/1/\ell fraction of its rows have weight \ell, while the other rows have weight 11, and all its columns have weight 22. Let us enumerate the standard basis vector of 𝔽22n\mathbb{F}_{2}^{2n} as q1,,q2nq_{1},\cdots,q_{2n}, and the standard basis vectors of 𝔽2m\mathbb{F}_{2}^{m} as c1,,cmc_{1},\cdots,c_{m}. Then we have

  1. 1.

    All the ZZ-stabilizer generators corresponding to basis vectors of 𝔽2nV\mathbb{F}_{2}^{n}\otimes V have constant weight;

  2. 2.

    All the ZZ-stabilizer generators corresponding to basis vectors of 𝔽22nE\mathbb{F}_{2}^{2n}\otimes E have constant weight, because IHTI\otimes H_{\ell}^{T} has constant row weight;

  3. 3.

    The qubits corresponding to 𝔽22nV\mathbb{F}_{2}^{2n}\otimes V have the form qivjq_{i}\otimes v_{j} for i[2n],j[]i\in[2n],j\in[\ell]. Qubits of the form qivq_{i}\otimes v_{\ell} are checked by \ell ZZ-stabilizer generators from 𝔽22nE\mathbb{F}_{2}^{2n}\otimes E. All other qubits have constant degree (in both XX and ZZ stabilizer generator checks).

  4. 4.

    The XX-stabilizer generators corresponding to 𝔽2mV\mathbb{F}_{2}^{m}\otimes V has the form civjc_{i}\otimes v_{j} for i[m],j[]i\in[m],j\in[\ell]. Generators of the form civc_{i}\otimes v_{\ell} checks \ell qubits from 𝔽2mE\mathbb{F}_{2}^{m}\otimes E. All other XX-stabilizer generators have constant weight.

In short summary, at most 1/1/\ell fraction of the qubits are checked by Θ()\Theta(\ell) ZZ-stabilizer generators, and exactly 1/1/\ell fraction of the XX-stabilizer generators have Θ()\Theta(\ell) weight. All other check weights and qubit degrees are constant. ∎

Finally, we prove a lower bound on soundness. Recall that our code QQ has soundness 2ρ2\rho.

Lemma 5.5.

QQ^{\prime} is locally testable with soundness min(ρ,1)/8\min(\rho,1)/8 for ZZ-operators, and soundness 1/31/3 for XX-operators.

Proof.

Given a ZZ-operator ZcZ^{c} where cC1c\in C_{1}, we once again turn cc into the following form by multiplying with ZZ-stabilizers:

c¯=(x¯v1,y¯).\bar{c}=(\bar{x}\otimes v_{1},\bar{y}).

Let z𝔽22nz\in\mathbb{F}_{2}^{2n} be such that |z|=d(x¯,kerHX)|z|=d(\bar{x},\ker{H_{X}}) and x¯+zkerHX\bar{x}+z\in\ker{H_{X}}. Then we see that

1(c¯)=1((zv1,y¯)).\partial_{1}(\bar{c})=\partial_{1}((z\otimes v_{1},\bar{y})).

Therefore, it suffices for us to show that

|1(c¯)|mmin(ρ,1)(|z|+|y¯|)8(2n+m(1)).~{}\frac{|\partial_{1}(\bar{c})|}{m\ell}\geq\frac{\min(\rho,1)\cdot(|z|+|\bar{y}|)}{8(2n\ell+m(\ell-1))}. (8)

Write y¯=i=11yiei\bar{y}=\sum_{i=1}^{\ell-1}y_{i}\otimes e_{i}. Then we have

1(c¯)\displaystyle\partial_{1}(\bar{c}) =(HXx¯)v1+i=11yi(Hei)\displaystyle=(H_{X}\bar{x})\otimes v_{1}+\sum_{i=1}^{\ell-1}y_{i}\otimes(H_{\ell}e_{i})
=(HXx¯)v1+i=11yivi+(i=11yi)v\displaystyle=(H_{X}\bar{x})\otimes v_{1}+\sum_{i=1}^{\ell-1}y_{i}\otimes v_{i}+(\sum_{i=1}^{\ell-1}y_{i})\otimes v_{\ell}
=(HXx¯)v1+y1v1+i=21yivi+y1v+(i=21yi)v.\displaystyle=(H_{X}\bar{x})\otimes v_{1}+y_{1}\otimes v_{1}+\sum_{i=2}^{\ell-1}y_{i}\otimes v_{i}+y_{1}\otimes v_{\ell}+(\sum_{i=2}^{\ell-1}y_{i})\otimes v_{\ell}.

Let y=i=21yiy^{\prime}=\sum_{i=2}^{\ell-1}y_{i}. For two vectors u,v,u,v, let uvu\cap v denote the vector where (uv)(i)=1(u\cap v)(i)=1 if and only if u(i)=v(i)=1u(i)=v(i)=1. Then we have

|1(c¯)|\displaystyle|\partial_{1}(\bar{c})| =|HXx¯|+|y1|2|HXx¯y1|+i=21|yi|+|y1|+|y|2|yy1|\displaystyle=|H_{X}\bar{x}|+|y_{1}|-2|H_{X}\bar{x}\cap y_{1}|+\sum_{i=2}^{\ell-1}|y_{i}|+|y_{1}|+|y^{\prime}|-2|y^{\prime}\cap y_{1}|
=|HXx¯|2|HXx¯y1|+|y|+2|y1|2|yy1|+i=21|yi|.\displaystyle=|H_{X}\bar{x}|-2|H_{X}\bar{x}\cap y_{1}|+|y^{\prime}|+2|y_{1}|-2|y^{\prime}\cap y_{1}|+\sum_{i=2}^{\ell-1}|y_{i}|.

We first observe that since |u|,|v||uv||u|,|v|\geq|u\cap v| for any u,vu,v,

|1(c¯)|\displaystyle|\partial_{1}(\bar{c})| i=21|yi|+|y1||yy1|,\displaystyle\geq\sum_{i=2}^{\ell-1}|y_{i}|+|y_{1}|-|y^{\prime}\cap y_{1}|,
|1(c¯)|\displaystyle|\partial_{1}(\bar{c})| |HXx¯|.\displaystyle\geq|H_{X}\bar{x}|.

The first inequality implies |1(c¯)||y¯/3||\partial_{1}(\bar{c})|\geq|\bar{y}/3|, for the following reason. If |y1|2|y¯|/3|y_{1}|\leq 2|\bar{y}|/3, then |1(c¯)|i=21|yi||y¯|/3|\partial_{1}(\bar{c})|\geq\sum_{i=2}^{\ell-1}|y_{i}|\geq|\bar{y}|/3; otherwise if |y1|2|y¯|/3|y_{1}|\geq 2|\bar{y}|/3, then |y|<i=21|yi|<|y¯|/3|y^{\prime}|<\sum_{i=2}^{\ell-1}|y_{i}|<|\bar{y}|/3, which again implies |1(c¯)||y¯|/3|\partial_{1}(\bar{c})|\geq|\bar{y}|/3.

Therefore, if |HXx¯||y¯|/3|H_{X}\bar{x}|\leq|\bar{y}|/3, then by soundness of HXH_{X},

|1(c¯)|\displaystyle|\partial_{1}(\bar{c})| |y¯|/3|y¯|+|HXx¯|4|y¯|4+2ρmd(x¯,kerHX)42n,\displaystyle\geq|\bar{y}|/3\geq\frac{|\bar{y}|+|H_{X}\bar{x}|}{4}\geq\frac{|\bar{y}|}{4}+\frac{2\rho md(\bar{x},\ker{H_{X}})}{4\cdot 2n},
|1(c¯)|m\displaystyle\frac{|\partial_{1}(\bar{c})|}{m\ell} |y¯|4m+ρd(x¯,kerHX)4n.\displaystyle\geq\frac{|\bar{y}|}{4m\ell}+\frac{\rho d(\bar{x},\ker{H_{X}})}{4n\ell}.

Assuming 8(1)48(\ell-1)\geq 4\ell, we have equation (8). Now if |HXx¯||y¯|/3|H_{X}\bar{x}|\geq|\bar{y}|/3, we also have

|1(c¯)||HXx¯||y¯|+|HXx¯|4,|\partial_{1}(\bar{c})|\geq|H_{X}\bar{x}|\geq\frac{|\bar{y}|+|H_{X}\bar{x}|}{4},

and the same calculations as above follows. Therefore, QQ^{\prime} is locally testable with soundness ρ/8\rho/8 for ZZ-operators.

For XX-operators XcX^{c} where cC1c\in C_{1}, suppose c=(x,j=11yjej)c=(x,\sum_{j=1}^{\ell-1}y_{j}\otimes e_{j}). Note that since imHT=𝔽21=E\operatorname{im}{H_{\ell}^{T}}=\mathbb{F}_{2}^{\ell-1}=E, we can multiply XcX^{c} by XX-stabilizers of the form XrX^{r}, where

r=1T(j=11yjvj)=(j=11HXTyjvj,j=11yjej).r=\partial_{1}^{T}(\sum_{j=1}^{\ell-1}y_{j}\otimes v_{j})=(\sum_{j=1}^{\ell-1}H_{X}^{T}y_{j}\otimes v_{j},\sum_{j=1}^{\ell-1}y_{j}\otimes e_{j}).

Then c+r=(x¯,0)c+r=(\bar{x},0) for some x¯\bar{x}. In other words, we may assume without loss of generality that all XX-operators XcX^{c} has the form

c=(i=1xivi,0).c=(\sum_{i=1}^{\ell}x_{i}\otimes v_{i},0).

We will show that |2T(c)|(i=1|xi|)/2|\partial_{2}^{T}(c)|\geq(\sum_{i=1}^{\ell}|x_{i}|)/2. To prove this, we need to use the fact that our HZH_{Z} has the form [I,I][I,I]. For notation purposes, we let

xi=(xi1,xi2)=(xi1(1),,xi1(n),xi2(1),,xi2(n))𝔽22n.x_{i}=(x_{i}^{1},x_{i}^{2})=(x_{i}^{1}(1),\cdots,x_{i}^{1}(n),x_{i}^{2}(1),\cdots,x_{i}^{2}(n))\in\mathbb{F}_{2}^{2n}.

Further, without loss of generality, we may assume x1x2=0x_{\ell}^{1}\cap x_{\ell}^{2}=0 because if x1x20x_{\ell}^{1}\cap x_{\ell}^{2}\neq 0, we can add ((x1x2,x1x2)(i=1vi),0)((x_{\ell}^{1}\cap x_{\ell}^{2},x_{\ell}^{1}\cap x_{\ell}^{2})\otimes(\sum_{i=1}^{\ell}v_{i}),0) to cc. Note here that 2T((x1x2,x1x2)(i=1vi),0)=0\partial_{2}^{T}((x_{\ell}^{1}\cap x_{\ell}^{2},x_{\ell}^{1}\cap x_{\ell}^{2})\otimes(\sum_{i=1}^{\ell}v_{i}),0)=0. Now we are ready for the proof.

For clarity purposes, in the following equations, we denote “addition mod 2” as +m+_{m}. We have

2T(c)\displaystyle\partial_{2}^{T}(c) =i=1(xi1+mxi2)vi+mi=1(xi1,xi2)(HTvi)\displaystyle=\sum_{i=1}^{\ell}(x_{i}^{1}+_{m}x_{i}^{2})\otimes v_{i}+_{m}\sum_{i=1}^{\ell}(x_{i}^{1},x_{i}^{2})\otimes(H_{\ell}^{T}v_{i})
=i=1(xi1+mxi2)vi+mi=11(xi1,xi2)ei+m(x1,x2)(i=11ei).\displaystyle=\sum_{i=1}^{\ell}(x_{i}^{1}+_{m}x_{i}^{2})\otimes v_{i}+_{m}\sum_{i=1}^{\ell-1}(x_{i}^{1},x_{i}^{2})\otimes e_{i}+_{m}(x_{\ell}^{1},x_{\ell}^{2})\otimes(\sum_{i=1}^{\ell-1}e_{i}).
|2T(c)|\displaystyle|\partial_{2}^{T}(c)| =i=1|xi1+mxi2|+i=11(|xi1|+|xi2|)+i=11(|x1|+|x2|)2i=11(|xi1x1|+|xi2x2|),\displaystyle=\sum_{i=1}^{\ell}|x_{i}^{1}+_{m}x_{i}^{2}|+\sum_{i=1}^{\ell-1}(|x_{i}^{1}|+|x_{i}^{2}|)+\sum_{i=1}^{\ell-1}(|x_{\ell}^{1}|+|x_{\ell}^{2}|)-2\sum_{i=1}^{\ell-1}(|x_{i}^{1}\cap x_{\ell}^{1}|+|x_{i}^{2}\cap x_{\ell}^{2}|),
=|x1+mx2|+i=11j=1n[(xi1(j)+mxi2(j))+xi1(j)+xi2(j)+x1(j)+x2(j)\displaystyle=|x_{\ell}^{1}+_{m}x_{\ell}^{2}|+\sum_{i=1}^{\ell-1}\sum_{j=1}^{n}[(x_{i}^{1}(j)+_{m}x_{i}^{2}(j))+x_{i}^{1}(j)+x_{i}^{2}(j)+x_{\ell}^{1}(j)+x_{\ell}^{2}(j)
2(xi1x1)(j)2(xi2x2)(j)].\displaystyle\phantom{{}=|x_{\ell}^{1}+_{m}x_{\ell}^{2}|+\sum\sum[}-2(x_{i}^{1}\cap x_{\ell}^{1})(j)-2(x_{i}^{2}\cap x_{\ell}^{2})(j)].

We abbreviate the above equation into

|2T(c)|=|x1+mx2|+i=11j=1nci,j.|\partial_{2}^{T}(c)|=|x_{\ell}^{1}+_{m}x_{\ell}^{2}|+\sum_{i=1}^{\ell-1}\sum_{j=1}^{n}c_{i,j}.

We now prove |2T(c)|12i=1j=1n|xi1(j)|+|xi2(j)||\partial_{2}^{T}(c)|\geq\frac{1}{2}\sum_{i=1}^{\ell}\sum_{j=1}^{n}|x_{i}^{1}(j)|+|x_{i}^{2}(j)| by a counting argument. In particular, for any i1,j[n]i\leq\ell-1,j\in[n], if at least one of xi1(j)x_{i}^{1}(j), xi2(j)x_{i}^{2}(j) is 1, then regardless of the values of x1(j)x_{\ell}^{1}(j), x2(j)x_{\ell}^{2}(j), we have ci,j1c_{i,j}\geq 1. This can be seen from the following table. Note that by our assumptions, x1(j)x_{\ell}^{1}(j), x2(j)x_{\ell}^{2}(j) cannot both be 1.

xi1(j)x_{i}^{1}(j) xi2(j)x_{i}^{2}(j) x1(j)x_{\ell}^{1}(j) x1(j)x_{\ell}^{1}(j) ci,jc_{i,j}
1 0 0 0 2
1 0 1 0 1
1 0 0 1 3
1 1 0 0 2
1 1 1 0 1
1 1 0 1 1
0 1 0 0 2
0 1 1 0 3
0 1 0 1 1
Table 3: Table of possible values of the four variables and ci,jc_{i,j}.

The only case that remains is i=li=l, and we observe that since x1x2=0x_{\ell}^{1}\cap x_{\ell}^{2}=0, |x1+x2|=|x1|+|x2||x_{\ell}^{1}+x_{\ell}^{2}|=|x_{\ell}^{1}|+|x_{\ell}^{2}|. Combining this observation with the values in table 3, we see that

|2T(c)|\displaystyle|\partial_{2}^{T}(c)| 12i=1j=1n|xi1(j)|+|xi2(j)|=(i=1|xi|)/2\displaystyle\geq\frac{1}{2}\sum_{i=1}^{\ell}\sum_{j=1}^{n}|x_{i}^{1}(j)|+|x_{i}^{2}(j)|=(\sum_{i=1}^{\ell}|x_{i}|)/2
|2T(c)|n+2n(1)\displaystyle\frac{|\partial_{2}^{T}(c)|}{n\ell+2n(\ell-1)} i=1|xi|2n+4n(1)13i=1|xi|2n+m(1).\displaystyle\geq\frac{\sum_{i=1}^{\ell}|x_{i}|}{2n\ell+4n(\ell-1)}\geq\frac{1}{3}\frac{\sum_{i=1}^{\ell}|x_{i}|}{2n\ell+m(\ell-1)}.

Therefore, QQ^{\prime} is locally testable with soundness 1/31/3 for XX-operators. ∎

Together, Lemma 5.4 and 5.5 gives Theorem 1.3.

Acknowledgements

We thank Ted Yoder for the discussion on gauge fixing of the check product codes.

Z.H and A.N. thank Eugene Tang and the QLDPC reading group at MIT, especially Aram Harrow and Peter Shor for many helpful discussions. Z.H. also thanks Nikolas Breuckmann for many insightful conversations. Part of this work was done while Z.H. was at IBM T.J. Watson Research Center.

A.C. thanks Aram Harrow and the QLDPC reading group at MIT for helpful discussions. A.C and G.Z. are supported by the U.S. Department of Energy, Office of Science, National Quantum Information Science Research Centers, Co-design Center for Quantum Advantage (C2QA) under contract number DE-SC0012704.

References

  • [AAV13] Dorit Aharonov, Itai Arad and Thomas Vidick “Guest column: the quantum PCP conjecture” In SIGACT News 44.2 New York, NY, USA: Association for Computing Machinery, 2013, pp. 47–79 DOI: 10.1145/2491533.2491549
  • [ABN23] Anurag Anshu, Nikolas P. Breuckmann and Chinmay Nirkhe “NLTS Hamiltonians from Good Quantum Codes” New York, NY, USA: Association for Computing Machinery, 2023 DOI: 10.1145/3564246.3585114
  • [AE15] Dorit Aharonov and Lior Eldar “Quantum Locally Testable Codes” In SIAM Journal on Computing 44.5, 2015, pp. 1230–1262 DOI: 10.1137/140975498
  • [Aro+98] Sanjeev Arora et al. “Proof verification and the hardness of approximation problems” New York, NY, USA: Association for Computing Machinery, 1998 DOI: 10.1145/278298.278306
  • [BE21] Nikolas P. Breuckmann and Jens N. Eberhardt “Balanced Product Quantum Codes” In IEEE Transactions on Information Theory 67.10, 2021, pp. 6653–6674 DOI: 10.1109/TIT.2021.3097347
  • [BLR90] M. Blum, M. Luby and R. Rubinfeld “Self-testing/correcting with applications to numerical problems” In Proceedings of the Twenty-Second Annual ACM Symposium on Theory of Computing, STOC ’90 Baltimore, Maryland, USA: Association for Computing Machinery, 1990, pp. 73–83 DOI: 10.1145/100216.100225
  • [Cam19] Earl T Campbell “A theory of single-shot error correction for adversarial noise” In Quantum Science and Technology 4.2 IOP Publishing, 2019, pp. 025006 DOI: 10.1088/2058-9565/aafc8f
  • [Din+22] Irit Dinur et al. “Locally testable codes with constant rate, distance, and locality” In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022 Rome, Italy: Association for Computing Machinery, 2022, pp. 357–374 DOI: 10.1145/3519935.3520024
  • [Din+23] Irit Dinur, Min-Hsiu Hsieh, Ting-Chun Lin and Thomas Vidick “Good Quantum LDPC Codes with Linear Time Decoders” In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023 Orlando, FL, USA: Association for Computing Machinery, 2023, pp. 905–918 DOI: 10.1145/3564246.3585101
  • [Din07] Irit Dinur “The PCP theorem by gap amplification” In J. ACM 54.3 New York, NY, USA: Association for Computing Machinery, 2007, pp. 12–es DOI: 10.1145/1236457.1236459
  • [EH17] L. Eldar and A.. Harrow “Local Hamiltonians Whose Ground States Are Hard to Approximate” In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS) Los Alamitos, CA, USA: IEEE Computer Society, 2017, pp. 427–438 DOI: 10.1109/FOCS.2017.46
  • [FH13] Michael Freedman and Matthew Hastings “Quantum Systems on Non-kk-Hyperfinite Complexes: A Generalization of Classical Statistical Mechanics on Expander Graphs” In Quantum Information and Computation 14, 2013 DOI: 10.26421/QIC14.1-2-9
  • [Has17] Mathew B. Hastings “Weight reduction for quantum codes” In Quant. Inf. Comput. 17.15-16, 2017, pp. 1307–1334 DOI: 10.26421/QIC17.15-16-4
  • [Has17a] Matthew B. Hastings “Quantum Codes from High-Dimensional Manifolds” In 8th Innovations in Theoretical Computer Science Conference (ITCS 2017) 67, Leibniz International Proceedings in Informatics (LIPIcs) Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017, pp. 25:1–25:26 DOI: 10.4230/LIPIcs.ITCS.2017.25
  • [HHO21] Matthew B. Hastings, Jeongwan Haah and Ryan O’Donnell “Fiber bundle codes: breaking the n1/2n^{1/2} polylog(n) barrier for Quantum LDPC codes” In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2021 Virtual, Italy: Association for Computing Machinery, 2021, pp. 1276–1288 DOI: 10.1145/3406325.3451005
  • [LLZ22] Anthony Leverrier, Vivien Londe and Gilles Zémor “Towards local testability for quantum coding” In Quantum 6 Verein zur Förderung des Open Access Publizierens in den Quantenwissenschaften, 2022, pp. 661 DOI: 10.22331/q-2022-02-24-661
  • [LZ22] A. Leverrier and G. Zemor “Quantum Tanner codes” In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS) Los Alamitos, CA, USA: IEEE Computer Society, 2022, pp. 872–883 DOI: 10.1109/FOCS54457.2022.00117
  • [PK22] Pavel Panteleev and Gleb Kalachev “Asymptotically good Quantum and locally testable classical LDPC codes” In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022 Rome, Italy: Association for Computing Machinery, 2022, pp. 375–388 DOI: 10.1145/3519935.3520017
  • [PK22a] Pavel Panteleev and Gleb Kalachev “Quantum LDPC Codes With Almost Linear Minimum Distance” In IEEE Transactions on Information Theory 68.1, 2022, pp. 213–229 DOI: 10.1109/TIT.2021.3119384

Appendix

Omitted Proofs in Section 3

See 3.2

Proof.

We note that the soundness follows from Lemma 2.5, and the LDPC property follows from the fact that both of its component codes are LDPC. The rate can be calculated from the number of checks: there are 2n2n qubits and 2(1r)n2(1-r)n checks, which gives rate rr.

The quantum distance can be seen from the following fact. Consider Z(𝟙v,𝟙v)Z^{(\mathbbm{1}_{v},\mathbbm{1}_{v})} and X(𝟙v,𝟙v)X^{(\mathbbm{1}_{v},\mathbbm{1}_{v})} for vBv\in B. If Z(𝟙v,𝟙v)Z^{(\mathbbm{1}_{v},\mathbbm{1}_{v})} is in the stabilizer group for all vBv\in B, then HH must be a matrix of rank nn. Equivalently, HH can be transformed into the n×nn\times n identity matrix II by row operations, which means the original code CC is trivial. Therefore there exists some vv such that Z(𝟙v,𝟙v)Z^{(\mathbbm{1}_{v},\mathbbm{1}_{v})} and X(𝟙v,𝟙v)X^{(\mathbbm{1}_{v},\mathbbm{1}_{v})} are both logical operators. ∎

See 3.3

Proof.

To prove the first claim, we see that the row space of H1H2H_{1}\otimes H_{2} is exactly C1C2C_{1}^{\perp}\otimes C_{2}^{\perp}. Therefore, the dual of its row space is exactly the dual tensor code C1𝔽2n2+𝔽2n1C2C_{1}\otimes\mathbb{F}_{2}^{n_{2}}+\mathbb{F}_{2}^{n_{1}}\otimes C_{2}. The rate of the new code is also easy to compute, as the number of linearly independent checks is simply (n1k1)(n2k2)(n_{1}-k_{1})(n_{2}-k_{2}).

To argue about the distance of C1C2C_{1}\star C_{2} (item 2.) is not hard either. Let 0xC1C20\neq x\in C_{1}\star C_{2}, and imagine xx as an n1×n2n_{1}\times n_{2} matrix MM over 𝔽2\mathbb{F}_{2}. We will have shown that |x|min(d1d2)|x|\geq\min(d_{1}d_{2}) if we find any v𝔽2n1v\in\mathbb{F}_{2}^{n_{1}} or w𝔽2n2w\in\mathbb{F}_{2}^{n_{2}} such that |vTM|d2|v^{T}M|\geq d_{2} or |Mw|d1|Mw|\geq d_{1} (|.||.| is the Hamming weight).

Let us now run vv through all checks of C1C_{1} (i.e. rows of H1H_{1}), and ww through all checks of C2C_{2} (i.e. rows of H2H_{2}). There are two possibilities.

  1. 1.

    Either all of the above matrix-vector products give the zero vector. In that case xx is not only in C1C2C_{1}\star C_{2}, but also in the smaller C1C2C_{1}\otimes C_{2}, and therefore its distance from the zero vector is at least d1d2min(d1,d2)d_{1}d_{2}\geq\min(d_{1},d_{2}).

  2. 2.

    One of the above matrix-vector products is non-zero. Notice that for any vv that is a C1C_{1}-check (any ww that is a a C2C_{2}-check), we have vTMC2v^{T}M\in C_{2} (MwC1Mw\in C_{1}), by definition, since MM represents an xC1C2x\in C_{1}\star C_{2}, and now we get a min(d1d2)\min(d_{1}d_{2}) bound for that reason.

This proves that the distance is at least min(d1,d2)\min(d_{1},d_{2}). To prove equality, take xC2x\in C_{2} and yC1y\in C_{1} with minimum distances (d2d_{2} and d1d_{1}, respectively) from zero. Then (1,0,,0n1)x(\underbrace{1,0,\cdots,0}_{n_{1}})\otimes x and y(1,0,,0n2)y\otimes(\underbrace{1,0,\cdots,0}_{n_{2}}) are both valid codewords of C1C2=C1𝔽2n2+𝔽2n1C2C_{1}\star C_{2}=C_{1}\otimes\mathbb{F}_{2}^{n_{2}}+\mathbb{F}_{2}^{n_{1}}\otimes C_{2}. This concludes the proof of our claims. ∎

See 3.5

Proof.

Suppose QQ has nqn_{q} physical qubits. We have from Lemma 3.3

dx(QC)\displaystyle d_{x}(Q\star C) =min{|w|:wCXC(CZC)}\displaystyle=\min\{|w|:w\in C_{X}\star C\setminus(C_{Z}\star C)^{\perp}\}
=min{|w|:wCX𝔽2n+𝔽2nqCCZC}.\displaystyle=\min\{|w|:w\in C_{X}\otimes\mathbb{F}_{2}^{n}+\mathbb{F}_{2}^{n_{q}}\otimes C\setminus C_{Z}^{\perp}\otimes C^{\perp}\}.

Since C𝔽2nC^{\perp}\neq\mathbb{F}_{2}^{n}, we can find xCX,|x|=d(CX)x\in C_{X},|x|=d(C_{X}), and a standard basis vector ei𝔽2nCe_{i}\in\mathbb{F}_{2}^{n}\setminus C^{\perp} such that xeiCX𝔽2nCZCx\otimes e_{i}\in C_{X}\otimes\mathbb{F}_{2}^{n}\setminus C_{Z}^{\perp}\otimes C^{\perp}. Similarly, since CZ𝔽2nqC_{Z}^{\perp}\neq\mathbb{F}_{2}^{n_{q}}, we can find yC,|y|=d(C)y\in C,|y|=d(C), and a standard basis vector ej𝔽2nqCZe_{j}\in\mathbb{F}_{2}^{n_{q}}\setminus C_{Z}^{\perp} such that ejy𝔽2nqCCZCe_{j}\otimes y\in\mathbb{F}_{2}^{n_{q}}\otimes C\setminus C_{Z}^{\perp}\otimes C^{\perp}. This shows that dx(QC)min(d(CX),d(C))d_{x}(Q\star C)\leq\min(d(C_{X}),d(C)). On the other hand, we note that from Fact 3 of Lemma 3.3,

dx(QC)\displaystyle d_{x}(Q\star C) =min{|w|:wCXC(CZC)}\displaystyle=\min\{|w|:w\in C_{X}\star C\setminus(C_{Z}\star C)^{\perp}\}
min{|w|:wCXC}=min(d(CX),d(C)).\displaystyle\geq\min\{|w|:w\in C_{X}\star C\}=\min(d(C_{X}),d(C)).

Thus dx(QC)=min(d(CX),d(C))d_{x}(Q\star C)=\min(d(C_{X}),d(C)). Similarly, we have dz(QC)=min(d(CZ),d(C))d_{z}(Q\star C)=\min(d(C_{Z}),d(C)). This lemma then follows. ∎

Omitted Proofs in Section 4

See 4.1

Proof.

Without loss of generality we assume Π=In\Pi=I_{n}, since Π\Pi simply permute the bits of the code without changing any of its parameters. Given x𝔽2nx\in\mathbb{F}_{2}^{n}, it suffices for us to show that nmd(x,C)/n|Hx|/m\frac{n}{m}d(x,C)/n\leq|H^{\prime}x|/m. Denote the rows of HH^{\prime} as r1,,rmr_{1},\cdots,r_{m}, then |Hx|=i=1mrix|H^{\prime}x|=\sum_{i=1}^{m}r_{i}\cdot x. Now suppose r1x=1r_{1}\cdot x=1, then let x=x+e1x^{\prime}=x+e_{1}, where e1e_{1} is the standard basis vector, and we see that |Hx|=|Hx|1|H^{\prime}x^{\prime}|=|H^{\prime}x|-1. We may now repeat this procedure for all rows that give syndrome-bit 1 with respect to xx, until in |Hx||H^{\prime}x| steps we arrive at a code word. Finally we notice that n/m=1/rn/m=1/r. More explicitly, let S[m]S\subset[m] be the indices of rows violated by xx. Define

y=x+iSei.y=x+\sum_{i\in S}e_{i}.

Then |Hy|=0|H^{\prime}y|=0, since Hx=H(iSei)H^{\prime}x=H^{\prime}(\sum_{i\in S}e_{i}). Thus, d(x,C)d(x,y)=|S|=|Hx|d(x,C)\leq d(x,y)=|S|=|H^{\prime}x|, which proves our claim. ∎

See 4.3

Proof.

The check matrix of CXCC_{X}\star C is HXHH_{X}\otimes H, and since the latter has row and column weight bounded by wwXww_{X}, the bound on the locality of CXCC_{X}\star C follows. The more interesting part is to show that CXCC_{X}\star C has soundness parameter at least ρ\rho.

By definition, every check of CXCC_{X}\star C is a tensor product of a check for CXC_{X} and a check for CC. The ithi^{\rm th} check of CXC_{X} contains the ithi^{\rm th} bit of the checked word and some other bits that have index beyond mXm_{X}, due to the [ImXhX][I_{m_{X}}\mid h_{X}] structure of HXH_{X}. Given a word x𝔽2nx×nx\in\mathbb{F}_{2}^{n_{x}\times n} to be checked, we write it as x=(x1,,xnX)x=(x_{1},\cdots,x_{n_{X}}) where each xi𝔽2nx_{i}\in\mathbb{F}_{2}^{n}. Fix 1imX1\leq i\leq m_{X}, and consider the collection Γi\Gamma_{i} of all those checks of CXCC_{X}\star C that have the ithi^{\rm th} check of CXC_{X} as their first component. Then |Γi||\Gamma_{i}| is exactly the number tt of all checks for CC (hence tt is independent of ii). Define

yi=jithcheckofCXxj(𝔽2n)y_{i}=\sum_{j\in\;i^{\rm th}\;{\rm check}\;{\rm of}\;C_{X}}x_{j}\;\;\;\;\;\;\;\;\;\;\;\left(\in\,\mathbb{F}_{2}^{n}\right)

(in particular, j=ij=i is one of the participant indices on the r.h.s.). Let ΓiΓi\Gamma_{i}^{\prime}\subseteq\Gamma_{i} be the checks in Γi\Gamma_{i} that xx violates. These violated checks, due to the tensor product construction, correspond to those checks of CC that yiy_{i} violates. Therefore, due to the soundness parameter ρ\rho of CC there exists a yiCy_{i}^{\prime}\in C such that ρ|yiyi|nt|Γi|\rho|y_{i}-y_{i}^{\prime}|\leq\frac{n}{t}|\Gamma_{i}^{\prime}|. Adding now yiyiy_{i}^{\prime}-y_{i} to xix_{i}, while keeping all xjx_{j}s for jij\neq i the same, we have achieved that all checks in Γi\Gamma_{i} go through, and also we did not affect those checks that are not in Γi\Gamma_{i}, since their HXH_{X} component does not contain the ithi^{\rm th} bit of CXC_{X}. After having the above done for all 1imX1\leq i\leq m_{X} we get a word xx^{\prime} that passes all tests, therefore belongs to CXCC_{X}\star C. Further,

ρ|xx|i=1mXnt|Γi|=nti=1mX|Γi|=nts\rho|x^{\prime}-x|\;\leq\;\sum_{i=1}^{m_{X}}\,\frac{n}{t}\;|\Gamma_{i}^{\prime}|\;=\;\frac{n}{t}\;\sum_{i=1}^{m_{X}}\,|\Gamma_{i}^{\prime}|\;=\;\frac{n}{t}s (9)

where ss is the number of checks violated by xx. Relating ss to mXtm_{X}t, the number of all checks, we get from (9) that

smXtprobabilityoffailedcheck|xx|mXnρ=|xx|nXn\scaletorelativedistanceof6pt\scaletoofxfromacodeword6ptρnXmXsoundness\underbrace{\frac{s}{m_{X}t}}_{\rm probability\;of\;failed\;check}\;\geq\;\frac{|x^{\prime}-x|}{m_{X}\cdot n}\cdot\rho\;=\;\underbrace{\frac{|x^{\prime}-x|}{n_{X}\cdot n}}_{\begin{array}[]{l}\scaleto{\rm relative\;distance\;of}{6pt}\\[-4.0pt] \scaleto{\rm of\;{\it x}\;from\;a\;code\;word}{6pt}\end{array}}\cdot\underbrace{\frac{\rho\,n_{X}}{m_{X}}}_{\rm soundness}

as needed. ∎

See 4.4

Proof.

Local testability with soundness ρmin(nqmX,nqmZ)\rho\cdot\min(\frac{n_{q}}{m_{X}},\frac{n_{q}}{m_{Z}}) is proved by Lemma 4.3, by applying it to both CXCC_{X}\star C and CZCC_{Z}\star C (where the check sets associated with CXC_{X} and CZC_{Z} are H¯X\bar{H}_{X} and H¯Z)\bar{H}_{Z})) and taking the minimum. That the minimum of the respective soundness of the two classical parts is a lower bound on the soundness of the CSS code is proven in Lemma 2.5 (originally Fact 17 in [EH17]). The locality bounds also follow from Lemma 4.3, where we use the trivial nqn_{q} upper bound on the row and column weights of H¯X\bar{H}_{X} and H¯Z)\bar{H}_{Z}). Since QQ and Q¯\bar{Q} are the same code, they have the same rate and distance, and therefore the distance of Q¯C\bar{Q}\star C is easily given by Lemma 3.3. The dimension can be calculated as follows: the number of stabilizer generators in Q¯\bar{Q} is nqkqn_{q}-k_{q}, and therefore the number of stabilizer generators in Q¯C\bar{Q}\star C is (nk)(nqkq)(n-k)(n_{q}-k_{q}). ∎

See 4.5

Proof.

First recall that in our construction C𝔽2nC\leq\mathbb{F}_{2}^{n} is a random code with dimension 3n4\frac{3n}{4} and DCD\leq C is a random subspace of CC of dimension n4\frac{n}{4}. Due to the above parameters the quantum CSS code made from classical codes CC and DD^{\perp} encodes 34n12n\frac{3}{4}n-\frac{1}{2}n qubits, therefore it has rate 1/21/2.

Next we will show that both CC and DD^{\perp} have linear distances with high probability. Let δ\delta be such that H(δ)=0.25H(\delta)=0.25, where H(δ)=δlog21δ+(1δ)log211δH(\delta)=\delta\log_{2}\frac{1}{\delta}+(1-\delta)\log_{2}\frac{1}{1-\delta} is the entropy function. We show that with probability very close to one both CC and DD^{\perp} have minimum distance at least δn\delta^{\prime}n, where δδ\delta^{\prime}\rightarrow\delta (from below) as nn tends to infinity.

That CC has the above distance is simply the Gilbert-Varshamov (GV) bound for linear codes. This says that if we want to achieve relative distance δ\delta^{\prime}, then a random linear code with rate 1H(δ)ϵ1-H(\delta^{\prime})-\epsilon will achieve that, where ϵ\epsilon is arbitrary small as nn grows.

The proof of the GV bound is simple, and the code construction that leads to it, telling the proof with our parameters for simplicity, is the following: We select a random parity check matrix, MM with n4\frac{n}{4} rows and nn colums. The minimum distance of CC is the minimum number of columns of MM that sum to zero. To argue for relative distance δ\delta^{\prime} slightly below δ\delta, we use the well-known fact, that

log2(nδn)=H(δ)(nω(logn))whenδδappropriately,asn\log_{2}\binom{n}{\delta^{\prime}n}=H(\delta)\,(n-\omega(\log n))\;\;\;\;\;{\rm when}\;\;\delta^{\prime}\rightarrow\delta\;\;{\rm appropriately,\;as}\;\;n\rightarrow\infty

The number of ways to select 1kδn1\leq k\leq\delta^{\prime}n columns is then δn2(H(δ)(nω(logn))=o(2H(δ)n)\leq\delta^{\prime}n\cdot 2^{(H(\delta)\,(n-\omega(\log n))}=o\left(2^{H(\delta)n}\right), for large nn. The probability that any select kk columns (no restriction on kk) of a random matrix with 14n\frac{1}{4}n rows add up to zero is 214n2^{-\frac{1}{4}n}, and we can simply finish the proof by the union bound, since o(2H(δ)n)214n=o(1)o\left(2^{H(\delta)n}\right)\cdot 2^{-\frac{1}{4}n}=o(1).

Let us now estimate the distance of DD^{\perp} in a similar way. The dimension of the linear space DD^{\perp} is ndimD=3n4n-\dim D=\frac{3n}{4}, but at this time we have the restriction that DD must be a subspace of CC. The way to create a random subspace of CC of dimension n4\frac{n}{4} is to add n2\frac{n}{2} extra rows to the parity check matrix of CC. Therefore, to continue the construction, we select an additional 12n\frac{1}{2}n rows. The added new rows constitute a matrix NN of dimensions 12n×n\frac{1}{2}n\times n. When we concatenate NN and MM (put them together into an n×34nn\times\frac{3}{4}n matrix, we get a matrix W=(NM)W=\left(\begin{array}[]{l}N\\ \hline\cr M\end{array}\right). Here NN and MM are random, and the rows of WW generate DD^{\perp}. We calculate the probability that the rows of WW generate any vector of weight less than δn\delta^{\prime}n, where δ\delta^{\prime} is appropriately, but only slightly less, than δ\delta.

The number of vectors with weight δn\delta^{\prime}n is upper bounded by o(2H(δ)n)o\left(2^{H(\delta)n}\right) similarly to our previous calculation. The probability that any fixed select rows of WW (over the randomness of WW) add up to a any particular vector ww is 2n2^{-n}. The number of ways we can select a subset of rows of ww is 20.75n2^{0.75n}. Thus:

ProbW(there are rows of W that add up to some w with weight δn)\displaystyle{\rm Prob}_{W}(\mbox{there are rows of $W$ that add up to some $w$ with weight $\leq\delta n$})\;
o(2H(δ)n)20.75n2n=o(1)\displaystyle\leq\;o\left(2^{H(\delta)n}\right)\cdot 2^{0.75n}\cdot 2^{-n}=o(1)\hskip 108.405pt

Thus, the probability that the minimum distance of DD^{\perp} is at least δn\delta n is arbitrarily close to 1 when nn is sufficiently large.

By the union bound (at this time applied only on two terms), the probability that the minimum relative distance of either of CC or DD^{\perp} fails to be at least δ\delta^{\prime}, for a randomly chosen W=(NM)W=\left(\begin{array}[]{l}N\\ \hline\cr M\end{array}\right) becomes arbitrarily small, as nn goes to infinity. ∎