betaFeedback

WorksPhysics and Astronomy

Single-Shot Error Correction at Optimal Spacetime Cost

Abstract

Recent work established that, for independent erasures, storing KK logical qubits for SS time steps with error at most ε\varepsilon requires a spacetime cost of Ω(S(K+log⁡(S/ε)))Ω(S(K+\log(S/\varepsilon))). A matching construction was also given, but assumes ideal error correction. Here we show that the same scaling can be achieved with an explicit noisy error-correction circuit and efficient decoding, counting all state-preparation, gate, measurement, and wait locations, provided that the hardware supports long-range qubit connectivity and fast, reliable classical processing. Thus, reliability adds only a logarithmic overhead shared by all stored qubits. The construction works for sufficiently weak but otherwise general circuit noise, including faults during syndrome extraction and correlated faults, and for independent erasures it matches the best known lower bound up to constant factors. We attain this scaling using quantum Tanner codes, with each memory step consisting of one round of syndrome extraction followed by a fixed number of parallel classical decoder steps that reduce the residual error enough to keep later faults correctable, regardless of memory size, storage time, or target accuracy. Together, this gives exponentially small failure probability per step while keeping the cost of each memory step linear in the code size. The same analysis also extends to certain constant-depth logical Clifford operations.

Introduction and main results

A quantum memory must preserve information while the operations used to protect it are themselves noisy. The threshold theorem shows that sufficiently weak noise can be overcome [1, 2, 3]. The remaining question is how many physical resources this protection requires. Error correction consumes qubits, gates, measurements, and time, all of which contribute to the cumulative spacetime cost of storing a register.

For independent erasures, recent work established the lower bound

C=Ω(S(K+log⁡Sε))(1)C=\Omega\left(S\left(K+\log\frac{S}{\varepsilon}\right)\right) \tag*{(1)}

for storing KK logical qubits for SS time steps with error at most ε\varepsilon, and gave a matching construction under idealized error correction [4]. However, attaining this bound with a realistic noise model and noisy recovery requires more than a good code. Faulty syndrome measurements can lead to incorrect corrections, and the data continue to accumulate errors while the classical decoder runs.

Here we show that an explicit noisy recovery circuit with efficient decoding attains the same scaling. We use quantum Tanner codes and count every preparation, gate, measurement, and wait within memory protocol. The construction tolerates coherent errors and correlations between faults, provided that the faulty locations satisfy the local-stochastic condition specified below. We assume that the register enters and leaves the protocol encoded; a final destructive logical measurement is also possible. We further show that the same recovery method protects a class of logical Clifford operations at the same asymptotic cost per layer.

Figure 1 summarizes our method. Each cycle measures the checks once and runs a fixed number of parallel decoder iterations. Recovery need not eliminate every error: it must reduce the accumulated error enough for subsequent faults to remain correctable. This allows one code block to provide both capacity and reliability, with a logarithmic contribution to the block size shared by all stored qubits.

Optimal quantum memory through repeated partial recovery

Figure 1. Optimal quantum memory through repeated partial recovery. a) Each cycle measures every stabilizer check once, runs a fixed number of parallel decoder iterations, and applies a Pauli correction or updates the Pauli frame. Orange symbols indicate faults in the quantum circuit; we assume that classical processing is reliable. b) New faults increase the error bound, while recovery reduces it without removing every error. The curve is schematic and assumes that every cycle stays within the allowed fault count. Exceeding that count in one cycle is exponentially unlikely in the block length. c) The bar’s height represents the physical width and its horizontal extent represents the storage duration. The two shades show the capacity and reliability contributions to the required width. Each cycle has linear physical cost, giving O(S(K+log⁡(S/ϵ)))O(S(K + \log(S/\epsilon))) total locations.

Optimal memory cost

A memory cycle is one complete error-correction step: one measurement round of each stabilizer-check type, a fixed number of parallel decoder iterations, and a Pauli correction or an update of the Pauli frame. Under the classical-control and connectivity assumptions below, one cycle takes a fixed number τcyc\tau_{\mathrm{cyc}} of elementary time steps, including the waits during decoding. Once the code family, decoder iteration count, and hardware timings are fixed, τcyc\tau_{\mathrm{cyc}} is independent of NN, KK, SS, and ϵ\epsilon. Storing the register for SS cycles therefore takes SτcycS\tau_{\mathrm{cyc}} elementary time steps.

At a faulty circuit location, we allow an arbitrary quantum operation on the qubits involved and a shared environment. This includes coherent errors, such as an unintended unitary rotation, whose Pauli components can interfere, as well as correlated errors where faults at different locations need not be independent. Dependence of quantum operations on earlier measurement outcomes is also allowed. The random set of those locations is independent of the logical input and satisfies a local-stochastic bound of strength pp. Classical processing is reliable, and one parallel decoder iteration takes a fixed physical time. The required check interactions are available without a routing delay that grows with the code length. Section 2 specifies these assumptions and the logical diamond-norm error criterion.

Theorem 1.1 (Optimal encoded quantum memory). There is a family of quantum Tanner codes and a threshold p∗>0p_* > 0 such that, at every fixed p<p∗p < p_*, an encoded register of KK logical qubits can be stored for SS memory cycles with logical diamond-norm error at most ϵ\epsilon. The construction uses a code block length NN, peak quantum width QpeakQ_{\mathrm{peak}}, and total number of physical locations CC satisfying

N=O(K+log⁡Sϵ),Qpeak=O(N),C=O(SN).(2)N = O\left(K + \log\frac{S}{\epsilon}\right), \qquad Q_{\mathrm{peak}} = O(N), \qquad C = O(SN). \tag*{(2)}

Each cycle measures every listed stabilizer check once and uses a fixed number of parallel single-shot decoder iterations. Its quantum depth, including decoder waits and an optional physical Pauli correction, is constant. Classical decoding requires O(N)O(N) work per cycle. One fixed ideal recovery and decoding map defines the logical error for all fault paths and measurement records.

The upper bound applies throughout the stated noise model. Independent erasures are one allowed case, and there the bound matches Eq. (1) up to constants; Corollary 3.3 makes this comparison precise. Thus allowing noisy recovery does not increase the optimal memory scaling.

The resulting relative spacetime overhead is

CKS=O(1+log⁡(S/ϵ)K).(3)\frac{C}{KS} = O\left(1 + \frac{\log(S/\epsilon)}{K}\right). \tag*{(3)}

For a sufficiently wide register this overhead is constant. For a small register, longer storage or higher accuracy requires additional redundancy.

Why constant-time recovery suffices

The construction uses the single-shot decoder of Gu et al. [5], based on the decoding algorithms of Leverrier and Zémor [6]. Theorem 3.5 and Corollary 3.6 of Ref. [5] already establish repeated recovery and its accumulated failure bound. Here we combine these recovery guarantees with the circuit and fault model below to derive the cumulative memory cost, including the quantum waits during decoding.

The proof has three steps. First, bounded check weight and incidence give a syndrome-extraction circuit with constant depth and O(N)O(N) locations. A fault can therefore affect only a bounded number of data qubits and syndrome bits. Second, the decoder contracts earlier errors sufficiently to accommodate the new faults in each cycle. A cycle with at most a sufficiently small fixed fraction of faulty locations leaves a correctable residual error. Third, the local-stochastic bound makes a cycle exceeding this fraction exponentially unlikely in NN. A union bound over SS cycles then gives the logarithmic block-size requirement in Theorem 1.1.

For coherent faults, a bound on individual Pauli errors is not enough on its own. We show that all error operators arising on successful fault paths belong to one correctable linear space. The Knill–Laflamme conditions then give a common recovery, preserving interference between Pauli terms and entanglement with an external reference. This converts the circuit analysis into a logical diamond-norm bound without assuming a stochastic Pauli error after each cycle.

Logical Clifford operations

The memory need not remain idle between recovery cycles. We show that the same bound extends to a prescribed sequence of TT logical Clifford layers whenever each layer has a constant-depth physical implementation with bounded error spread and the output code retains the same decoder guarantees. For a fixed number of blocks, with these implementations and the allocation of logical qubits to code blocks available uniformly along the code family, the total cost is

C=O(T(K+log⁡Tε)).(4)C = O\left(T\left(K + \log\frac{T}{\varepsilon}\right)\right). \tag*{(4)}

The input and output remain encoded. Transversal CNOT between identical blocks is an explicit example: every corresponding logical pair undergoes a CNOT in one physical gate layer. Specified logical Pauli products are also supported, as is a Hadamard gate on every physical qubit, with the output interpreted in the CSS code obtained by exchanging the X-type and Z-type stabilizer generators. The extra error spread from these gates is bounded, so a fixed number of decoder iterations suffices after each layer.

We also characterize the physical CNOT circuits that realize a prescribed logical CNOT matrix between two identical CSS blocks. The allowed physical matrices form an explicit affine space. A representative with bounded row and column weights gives a constant-depth circuit with O(N)O(N) gates and therefore meets the recovery theorem’s requirements. This identifies the remaining task for selecting individual logical pairs within a Tanner block: finding such sparse representatives uniformly and efficiently. The characterization and its sparsity criterion are proved in Appendix § 8; their existence for every selection of logical pairs is an additional assumption, not a consequence of the memory construction.

Relation to previous work

Good quantum LDPC codes combine constant encoding rate, linear distance, and sparse stabilizer checks [7, 8]. Efficient decoders make these parameters useful for fault tolerance [6, 9]. Single-shot error correction, introduced by Bombín [10], uses one noisy measurement round rather than a growing number of repetitions. Campbell developed its adversarial-noise formulation [11], and Gu et al. proved single-shot decoding and constant-iteration repeated recovery for good quantum Tanner codes [5]. These results supply the code and decoder used here. We combine them with a complete circuit analysis, including coherent fault operations and decoder waits, to obtain the memory bound with explicit dependence on KK, SS, and ε\varepsilon.

Conventional code families illustrate why the encoding rate matters for this cost. Storing each logical qubit in a separate distance-dd surface-code patch uses Θ(Kd2)\Theta(Kd^2) physical qubits [12, 13]. With the usual below-threshold estimate of an error probability exponentially small in dd per syndrome cycle, taking dd of order log⁡(KS/ε)\log(KS/\varepsilon) gives a memory cost of order KSlog⁡2(KS/ε)KS\log^2(KS/\varepsilon). Here SS counts physical syndrome cycles. This comparison concerns independent patches with local interactions; our Tanner construction uses long-range check connectivity and shares the reliability contribution across the register. The different connectivity assumptions are essential, as geometric restrictions can impose growing overhead [14].

For general quantum computation, Gottesman’s framework and its realization with quantum expander codes establish constant space overhead [15, 16]. Their original universal constructions incur polynomial time overhead. Subsequent protocols reduce this to quasi-polylogarithmic overhead [17], polylogarithmic overhead including classical processing [18], and logarithmic overhead up to sub-polylogarithmic factors [19]; Han and Liu report strictly logarithmic time overhead [20]. These asymptotic statements use the respective circuit-size parameters and computational models of those works. Constant space overhead has also been extended to general noise [21]. Our constant duration per protected layer applies to encoded memory and the stated Clifford implementations. It does not replace the broader gate and interface constructions needed for universal computation. The memory bound also complements lower bounds on the physical width required for fault tolerance [22].

Constant-depth logical Clifford circuits also have precedents. Zheng et al. apply a constant number of teleportation or measurement steps to the encoded data, using encoded ancillas prepared beforehand [23]. Their resource analysis includes an average O(N2/log⁡N)O(N^2/\log N) physical-gate cost for an arbitrary Clifford circuit on a constant-rate block. The depth of the circuit acting on the data must therefore be distinguished from the cost of preparing its ancillas. Our O(N)O(N) cost applies to the restricted physical layers specified above, together with their noisy recovery. Logical Pauli measurement schemes [24, 25] and high-rate surgery [26] provide other approaches to logical operations. Golowich, Chang, and Zhu construct constant-quantum-spacetime-overhead addressable gates by single-shot code switching between product codes, allowing polynomial classical computation [27]. Tan et al. achieve single-shot state preparation, error correction, and universal logical gates through constant-depth quantum gadgets that switch between two- and three-dimensional hypergraph-product codes [28]. Their construction uses a different code family and does not supply the sparse Tanner representatives assumed here.

§ 2 specifies the noise model and coding ingredients. § 3 proves the memory theorem and its readout extension. § 4 states the Clifford extension and explains its scope. Appendix § 7 gives its proof, and Appendix § 8 derives the CNOT characterization and the conditional cost for selected logical pairs.

Noise model and coding ingredients

The resource bound depends on both the physical noise and the time required for classical recovery. We make these assumptions explicit before stating the Tanner-code and decoder guarantees used in the proof. Throughout, K,S,T≥1K,S,T \ge1, 0<ε≤1/20 < \varepsilon\le1/2, and logarithms are natural. The parameter NN denotes the number of data qubits in a code block; SS counts memory cycles and TT counts logical layers in the computation extension.

Circuit locations and classical control

We use the standard distinction between a fault, which occurs at a circuit location, and an error, which is its effect on the quantum state [29]. A location is a preparation, a gate acting on a fixed maximum number of qubits, a measurement, or a one-qubit wait for one elementary time step. Resets can be implemented by discarding and preparing a qubit. A two-qubit gate counts as one location; counting both operands changes the bounds only by a constant. The total cost CC counts all locations, including waits on every data qubit and ancilla while it remains in the circuit. The peak number of physical qubits present in the circuit is denoted by QpeakQ_{\mathrm{peak}}. A qubit is counted from its preparation or entry into the protocol until it is destructively measured or discarded.

The hardware supports the specified check interactions and any additional gate interactions required by a theorem, without routing depth growing with NN. Classical processing and stored measurement records are reliable. For the Tanner decoder, a fixed number of local parallel iterations takes fixed physical time. All quantum waits during this processing contribute to CC and are subject to noise. The O(N)O(N) classical work per cycle is stated separately from the quantum-location count. Constant latency assumes sufficient parallel classical hardware and fixed-time communication along the decoder graph; it is not a claim about a fixed-size classical processor.

Faults and logical error

A fault path specifies the set FF of faulty circuit locations [29]. We sample this set from a classical distribution independently of the logical input. For every prescribed set AA of circuit locations,

Pr⁡(A⊆F)≤p∣A∣.(5)\Pr(A \subseteq F) \le p^{|A|}. \tag*{(5)}

Thus any specified set of rr locations is simultaneously faulty with probability at most prp^r. This local-stochastic condition allows correlations without requiring independent faults. At a faulty location, an arbitrary completely positive trace-preserving (CPTP) operation may act on the location’s operands and a shared environment. Faulty preparations, resets, and measurements are local instruments; a measurement fault may also change its reported bit. The environment is initially independent of the logical input and its external reference. Fault operations may depend causally on earlier records and may be correlated across locations. An ideal location performs its prescribed operation without an additional coupling to the environment.

The model includes coherent errors for a fixed fault path, local-stochastic Pauli faults, and erasure faults whose locations are known and whose qubits are replaced. For example, an unintended rotation e−iϑP=cos⁡ϑI−isin⁡ϑPe^{-i\vartheta P}=\cos\vartheta I-i\sin\vartheta P about a Hermitian Pauli operator PP, with P2=IP^2=I and ϑ∈R\vartheta\in\mathbb{R}, acts as a coherent sum of Pauli terms, rather than a probabilistic choice between II and PP. It does not allow a coherent superposition of distinct classical fault paths. In particular, a small coherent overrotation at every location is not represented by calling those locations fault-free. Persistent leakage requires a separate analysis unless its influence remains within the bounded sets of locations and qubits used in the proof.

Let Enc⁡\operatorname{Enc} be a fixed ideal encoding isometry and R\mathcal{R} a fixed ideal recovery followed by decoding. For a noisy physical memory channel P\mathcal{P}, we require

∥R∘P∘Enc⁡−id⁡K∥⋄≤ε.(6)\left\|\mathcal{R}\circ\mathcal{P}\circ\operatorname{Enc}-\operatorname{id}_{K}\right\|_{\diamond}\leq\varepsilon. \tag*{(6)}

The diamond norm includes arbitrary entanglement with an external reference. The ideal maps at the input and output define the error criterion; they are not physical circuits included in CC. The input is therefore already encoded. The output may contain a correctable residual error and need not be close to the codespace in physical trace distance.

A Pauli correction may be applied physically or recorded in a Pauli frame, a classical record of the correction to be accounted for in later operations. In the latter case the output includes the reliable frame register ff. If PfP_f is the recorded Pauli, the fixed comparison map first applies

∑f∣f⟩⟨f∣⊗ρf⟼∑fPfρfPf†,(7)\sum_f \lvert f\rangle\langle f\rvert\otimes\rho_f\longmapsto\sum_f P_f\rho_fP_f^\dagger, \tag*{(7)}

and then performs recovery and decoding. This defines one channel, independent of the fault path. For destructive readout we instead compare the decoded quantum-to-classical channels, including the conditional reference states. Unused syndrome and auxiliary records are discarded.

Quantum Tanner codes and single-shot decoding

A binary CSS code is specified by check matrices HX,HZH_X,H_Z with HXHZT=0H_XH_Z^{\mathsf{T}}=0. Their row spaces SXS_X and SZS_Z specify the XX and ZZ stabilizers. Check lists may contain redundant rows. We write kNk_N for the number of logical qubits and dNd_N for the code distance. Paired logical representatives xi∈ker⁡HZx_i\in\ker H_Z and zi∈ker⁡HXz_i\in\ker H_X satisfy xi⋅zj=δijx_i\cdot z_j=\delta_{ij}. We fix the encoding

Enc⁡Q∣a=2−dim⁡(SX)/2∑u∈SX∣u+∑iaixi⟩.(8)\operatorname{Enc}_{Q\mid a}=2^{-\dim(S_X)/2}\sum_{u\in S_X}\left\lvert u+\sum_i a_i x_i\right\rangle. \tag*{(8)}

The chosen XX-type and ZZ-type stabilizer generators have phase +1+1, and the codespace is their simultaneous +1+1 eigenspace. This choice fixes the logical coordinates and phases used in the gate and readout statements; changing the logical basis during a computation is an additional operation. For memory with K<kNK<k_N, the encoding places the input in KK fixed logical coordinates and initializes the unused coordinates to ∣0⟩\lvert0\rangle. The ideal output map decodes the full block and discards those unused coordinates. This initialization is part of the encoded-input assumption.

For a binary error vector ee, its reduced weight ∣e∣R|e|_R is the minimum weight among vectors that differ from ee by a stabilizer of the same Pauli type. Such vectors act identically on the code. Single-shot decoding bounds the reduced weight left by one noisy syndrome round, rather than requiring that every residual error be removed.

Fact 2.1 (Tanner codes and single-shot decoding). The quantum Tanner families used in Refs. [5, 8] have constants R,δ,w,q>0R,\delta,w,q > 0 such that

kN≥RN,dN≥δN,(9)k_N \ge RN,\qquad d_N \ge\delta N, \tag*{(9)}

and every measured check has weight at most ww, while each qubit belongs to at most qq checks. For either CSS error component, a deterministic decoder DjD_j, run for jj parallel iterations, has constants a,b,c,β>0a,b,c,\beta> 0 and αj→0\alpha_j \to0 exponentially in jj such that

a∣e∣R+b∣m∣≤cN⟹∣e+Dj(syn⁡(e)+m)∣R≤αj∣e∣R+β∣m∣.(10)a|e|_R + b|m| \le cN \quad\Longrightarrow\quad|e + D_j(\operatorname{syn}(e) + m)|_R \le\alpha_j|e|_R + \beta|m|. \tag*{(10)}

Here mm is the error in the reported syndrome, and syn⁡(e)\operatorname{syn}(e) is the ideal syndrome. Constants absorb the fixed conversion between erroneous checks and erroneous local syndrome records. Fixed jj requires O(N)O(N) classical work and a fixed number of local communication steps.

The decoder acts separately on the X and Z error components and receives a classical syndrome. The data entering recovery need not lie in the codespace: the decoder theorem bounds the Pauli error relative to an encoded state. The reduced-weight form of Eq. (10) follows by applying the decoder theorem to a minimum-weight stabilizer representative: this replacement changes neither the syndrome nor the decoder output. The relevant statements are Theorems 3.4 and 4.20 of Ref. [5]. We use their deterministic error bound. § 3 extends the circuit analysis to coherent errors, without requiring a local-stochastic distribution for the residual error.

To choose a code for every target register size and accuracy, we also need available block lengths within a constant factor of any sufficiently large target. Namely, there are N0N_0 and cNc_N such that each x≥N0x \ge N_0 has an available N∈[x,cNx]N \in[x,c_Nx]. For the Tanner family this follows from the arithmetic tower in Claim 6.7 of Ref. [30]. The construction uses Gi=PSL⁡2(q∗i)G_i = \operatorname{PSL}_2(q_*^i) for a fixed odd prime power q∗q_*, with the required generating sets for all sufficiently large ii. Since NiN_i is a fixed multiple of ∣Gi∣|G_i|,

Ni+1Ni=q∗q∗2i+2−1q∗2i−1≤q∗(q∗2+1).(11)\frac{N_{i+1}}{N_i}=q_*\frac{q_*^{2i+2}-1}{q_*^{2i}-1}\le q_*(q_*^2+1). \tag*{(11)}

Taking the first available length above xx gives the claim. This step is needed for the resource bound: good rate and distance alone would not control gaps between available lengths. All constants in what follows may depend on the fixed code family, physical noise strength, and circuit schedule.

Optimal quantum memory

The proof of Theorem 1.1 follows the recovery cycle illustrated in Figure 1a. We first construct the syndrome-extraction circuit and bound the effect of new faults. We then combine this bound with the reduction of the incoming-error contribution by the factor αj<1\alpha_j < 1 in Eq. (10) to show that errors remain correctable over arbitrarily many cycles, except when a cycle contains too many faults. The probability of that event determines the block size needed for the target accuracy.

Syndrome extraction and recovery

For an XX check, prepare one ancilla in ∣+⟩\lvert+\rangle, apply CNOT gates from the ancilla to the check’s data qubits, and measure the ancilla in the XX basis. For a ZZ check, prepare one ancilla in ∣0⟩\lvert0\rangle, apply CNOTs from the data qubits to the ancilla, and measure the ancilla in the ZZ basis. Complete all XX-check circuits before the ZZ-check circuits so that their ordering implements the intended syndrome measurement.

For either check type, the data–check incidence graph is bipartite and has maximum degree at most max⁡(w,q)\max(w,q). Edge coloring schedules its CNOTs in at most that many layers. Ancilla preparation and measurement add constant depth. Bounded incidence gives O(N)O(N) nonzero checks and gates, so one syndrome round has O(N)O(N) locations, including all waits. Because circuit depth and gate size are bounded, a single fault affects only a bounded number of data qubits and reported syndrome bits.

After the syndrome round, run jj parallel decoder iterations on each CSS component and apply the resulting Pauli correction. Equivalently, record the correction in a Pauli frame and interpret the next syndrome relative to that frame. In either implementation, the data wait for the decoder and these waits are charged. Conjugating a fault operation by a known Pauli does not change its support, so the same noise model applies when corrections are tracked in a frame.

A recovery that also corrects coherent errors

For a Pauli P=XxZzP = X^x Z^z on one code block, define

r(P)=min⁡u∈SX∣x+u∣+min⁡v∈SZ∣z+v∣.(12)r(P) = \min_{u \in S_X} \lvert x + u \rvert+ \min_{v \in S_Z} \lvert z + v \rvert. \tag*{(12)}

The quantity r(P)r(P) measures the error after allowing multiplication by XX and ZZ stabilizers. It is subadditive and unchanged by multiplication by a stabilizer. A Pauli with r(P)≤rr(P) \le r has a stabilizer-equivalent representative of physical weight at most rr. Let E(r)E(r) be the linear span of these Paulis. Working with the entire span allows us to keep coherent combinations of errors throughout the proof.

Lemma 3.1 (Common recovery). If 2r<dN2r < d_N, a single ideal recovery corrects E(r)E(r) on the entire codespace, including coherent combinations of the form ∑νPν⊗Bν\sum_\nu P_\nu\otimes B_\nu, where each PνP_\nu is a Pauli with r(Pν)≤rr(P_\nu) \le r and BνB_\nu is an operator on the shared environment.

Proof. Let Π\Pi project onto the codespace. For Pauli generators P,QP,Q of this span, P†QP^\dagger Q has a stabilizer-equivalent representative of weight at most 2r<dN2r < d_N. If it has nonzero syndrome, ΠP†QΠ=0\Pi P^\dagger Q\Pi= 0. If its syndrome is zero, it is a stabilizer up to phase, so ΠP†QΠ=cPQΠ\Pi P^\dagger Q\Pi= c_{PQ}\Pi. Expanding arbitrary linear combinations of these Pauli errors gives the Knill–Laflamme conditions for the whole span [31]. An ideal recovery for the error criterion in Eq. (6) measures the ideal syndrome and inverts one fixed Pauli PsP_s with syndrome ss and r(Ps)≤rr(P_s) \le r, for each syndrome ss attained by such a Pauli. Any two Paulis Ps,QsP_s,Q_s with the same syndrome and r(Ps),r(Qs)≤rr(P_s),r(Q_s) \le r act identically on the code up to a scalar. Extending arbitrarily on other syndromes gives a CPTP map. Linearity retains all cross terms.

Faults in a complete cycle

The decoder receives the actual classical measurement record. For a coherent fault, different Pauli terms can be compatible with that same record, and all must receive the same correction. The following lemma bounds their data and syndrome errors without treating those terms as a classical mixture.

Lemma 3.2 (Fault propagation and the observed syndrome). Fix the original fault path in one complete error-correction cycle and its observed syndrome record yy. Let ff be its number of new faulty locations, and let the incoming error operators lie in E(rin)E(r_{\mathrm{in}}). Let Πin\Pi_{\mathrm{in}} project onto the input codespace,

and let KyK_y denote any Kraus operator for the incoming error map followed by this cycle, associated with the recorded syndrome yy. The shared environment is retained explicitly, and any additional Kraus label is suppressed. Every such Kraus operator, restricted to the input codespace, is a sum of terms

KyΠin=∑ν[zνF^(y)eνΠin]⊗Bν,(13)K_y\Pi_{\mathrm{in}}=\sum_{\nu}\left[z_\nu\widehat{F}(y)e_\nu\Pi_{\mathrm{in}}\right]\otimes B_\nu, \tag*{(13)}

where F^(y)\widehat{F}(y) is the same decoder correction in every term. Each BνB_\nu is an operator on the retained environment, and ν\nu labels terms in the local operator expansion. The projector Πin\Pi_{\mathrm{in}} acts as the identity on that environment. For fixed constants hdh_d, hsh_s, hlh_l,

r(eν)≤rin+hdf,∣mν∣≤hsf,r(zν)≤hlf,y=syn⁡(eν)+mν.(14)\begin{aligned} r(e_\nu)&\le r_{\mathrm{in}}+h_df, & |m_\nu|&\le h_sf,\\ r(z_\nu)&\le h_lf, & y&=\operatorname{syn}(e_\nu)+m_\nu. \tag*{(14)} \end{aligned}

The symbols eνe_\nu, zνz_\nu denote Pauli operators and mνm_\nu a binary syndrome error. The operators BνB_\nu include environment and Kraus indices; they are amplitudes in an operator expansion, not probabilities.

Proof. Dilate the operation at every faulty location and expand its local system part in a Pauli basis, retaining the environment coefficients. For a preparation or reset, include discarded systems in the environment. Refine faulty measurement instruments by their actual recorded outcome and expand the resulting local Kraus operators in matrix units. These rectangular operators can equivalently be written using local Pauli insertions and the ideal measurement bras. Propagation through the fixed Clifford circuit confines each new insertion to the forward light cone of its original location. This also treats interference between different operator terms.

For an incoming Pauli E0E_0, let VV denote the ideal syndrome-extraction isometry, so that

VE0Πin=E0Πin⊗∣syn⁡(E0)⟩.(15)VE_0\Pi_{\mathrm{in}}=E_0\Pi_{\mathrm{in}}\otimes\lvert\operatorname{syn}(E_0)\rangle. \tag*{(15)}

Let PP be the propagated new data Pauli and Δ\Delta the resulting change to the ideal record in a particular surviving term. Its final extraction error is e=PE0e=PE_0, whereas

y=syn⁡(E0)+Δ=syn⁡(e)+Δ+syn⁡(P)⏟m.(16)y=\operatorname{syn}(E_0)+\Delta=\operatorname{syn}(e)+\underbrace{\Delta+\operatorname{syn}(P)}_{m}. \tag*{(16)}

A fault late in syndrome extraction can therefore change both the final data error and the discrepancy between its syndrome and the observed record. Both changes have size O(f)O(f) because light cones and check incidence are bounded. There is no term proportional to rinr_{\mathrm{in}} in the bound on mm: ideal extraction reads the incoming error’s own syndrome correctly.

Faults during decoder waits or an applied correction layer can be placed after the ideal Pauli correction. Their resulting data operator is zz, with reduced weight O(f)O(f). Every compatible term is corrected using the one deterministic function F^(y)\widehat{F}(y) of the actual record. Summing the propagated terms proves the claimed form without removing density-operator cross terms.

Keeping the residual error correctable

The remaining task is to prevent errors from accumulating across cycles. Combining the decoder contraction with Lemma 3.2, and absorbing the two CSS components into the constants, gives

rout≤λrin+Bf,λ=αj,B=αjhd+βhs+hl.(17)r_{\mathrm{out}}\le\lambda r_{\mathrm{in}}+Bf,\qquad\lambda=\alpha_j,\qquad B=\alpha_jh_d+\beta h_s+h_l. \tag*{(17)}

This estimate applies within the decoder’s stated error range. To keep every cycle in that range, choose jj first, so that λ≤1/2\lambda\le1/2. The physical circuit depth and the bounds on fault propagation are now fixed. Set L=B/(1−λ)L=B/(1-\lambda) and choose η>0\eta>0 sufficiently small that, for ρ=Lη\rho=L\eta,

2ρ<δ,a(ρ+hdη)+bhsη<c.(18)2\rho<\delta,\qquad a(\rho+h_d\eta)+bh_s\eta<c. \tag*{(18)}

The left sides tend to zero with η\eta, so this choice is possible.

If rin≤ρNr_{\mathrm{in}} \le\rho N and f≤ηNf \le\eta N, the second inequality in Eq. (18) puts every term in the decoder domain before the contraction is invoked. Equation (17) then gives rout≤λρN+BηN=ρNr_{\mathrm{out}} \le\lambda\rho N + B\eta N = \rho N. Starting with an exact encoded state proves the bound after every cycle, provided that each preceding cycle also contains at most ηN\eta N faults. The stronger history-dependent estimate is

rt≤B∑u=1tλt−ufu.(19)r_t \le B \sum_{u=1}^{t} \lambda^{t-u} f_u. \tag*{(19)}

Each additional recovery suppresses the contribution of an earlier fault by a factor λ\lambda. Thus the decoder does not need to finish correcting the current error before the next cycle begins. Lemma 3.1 applies uniformly since 2ρN<dN2\rho N < d_N.

Failure probability and complete cost

Call a fault path good if every cycle has at most ηN\eta N faulty locations. The preceding argument shows that every good fault path leaves only errors in E(ρN)E(\rho N), regardless of the reported syndromes. There are at most c0Nc_0N physical locations in a cycle, with c0c_0 including the decoder waits. Put m=⌊ηN⌋+1m = \lfloor\eta N \rfloor+ 1. If m≤⌊c0N⌋m \le\lfloor c_0N \rfloor, the local-stochastic condition gives

Pr⁡(f>ηN)≤(⌊c0N⌋m)pm≤(ec0Npm)m≤Ae−γN(20)\Pr(f > \eta N) \le\binom{\lfloor c_0N \rfloor}{m}p^m \le\left(\frac{ec_0Np}{m}\right)^m \le Ae^{-\gamma N} \tag*{(20)}

for sufficiently small fixed pp, with constants A,γ>0A,\gamma> 0. Otherwise the event is empty. This estimate is applied to the original fault locations. No conditioning on an observed syndrome is needed.

A union bound over the SS cycles gives Pbad≤ASe−γNP_{\mathrm{bad}} \le ASe^{-\gamma N}, even when faults in different cycles are correlated. On each good fault path, Lemma 3.1 supplies the same recovery and restores the logical state, including its reference. Summing all measurement branches for that fixed fault path gives a trace-preserving channel. Averaging over the input-independent fault distribution therefore yields

R∘P∘Enc⁡=(1−Pbad)id⁡K+PbadB,(21)\mathcal{R} \circ\mathcal{P} \circ\operatorname{Enc} = (1-P_{\mathrm{bad}})\operatorname{id}_K + P_{\mathrm{bad}}\mathcal{B}, \tag*{(21)}

where B\mathcal{B} is a channel if Pbad>0P_{\mathrm{bad}} > 0 and is arbitrary otherwise. The mixture is over classical fault paths, not terms in the Pauli expansion. Consequently,

∥R∘P∘Enc⁡−id⁡K∥⋄≤2ASe−γN.(22)\lVert\mathcal{R} \circ\mathcal{P} \circ\operatorname{Enc} - \operatorname{id}_K \rVert_{\diamond} \le2ASe^{-\gamma N}. \tag*{(22)}

Choose an available block length above

x=max⁡{N0,KR,1γlog⁡2ASε}.(23)x = \max\left\{N_0,\frac{K}{R},\frac{1}{\gamma}\log\frac{2AS}{\varepsilon}\right\}. \tag*{(23)}

Equation (11) allows N≤cNxN \le c_Nx. The block then has capacity for KK logical qubits and meets the target error. Each cycle uses O(N)O(N) locations, O(N)O(N) live qubits, and O(N)O(N) classical work. This proves Theorem 1.1. Each cycle uses O(N)O(N) locations, O(N)O(N) physical qubits, and O(N)O(N) classical work. This proves Theorem 1.1.

Corollary 3.3 (Optimal memory scaling under independent erasures). In the independent erasure noise model, assume that after each elementary circuit time step, every physical qubit still retained by the protocol is independently erased with a fixed probability pe>0p_{\mathrm{e}} > 0, with the erased locations reported and the qubits replaced. When the resulting circuit-location noise has strength p<p∗p < p_* for the threshold p∗p_* of Theorem 1.1, the minimum total circuit cost obeys

Cmin⁡=Θ(S(K+log⁡Sε)).(24)C_{\min} = \Theta\left(S\left(K+\log\frac{S}{\varepsilon}\right)\right). \tag*{(24)}

Proof. The upper bound is Theorem 1.1. The storage-location lower bound of Ref. [4] applies even with ideal adaptive recovery. Total circuit cost is at least storage cost, and a constant-depth cycle changes duration by only a constant factor. This proves the matching lower bound. It is asserted for the stated independent erasure noise model, not for every distribution satisfying Eq. (5), which includes the zero-fault distribution.

Destructive logical readout

The encoded-output error criterion in Eq. (6) does not require a final physical correction to the exact codespace. If the desired output is classical, the block can instead be measured and decoded. The longer final decoding then takes place after the data have been measured, as in the readout procedure discussed in Section 3.3 of Ref. [5]. Here we also track coherent fault operations and the conditional state of an external reference.

Lemma 3.4 (Destructive Tanner readout). Theorems 1.1 and 4.1 also allow a terminal measurement of every logical qubit of a block in the ZZ basis, or every logical qubit in the XX basis. Choose the incoming residual bound r(P)≤ρNr(P) \le\rho N as in Eq. (18), and a constant terminal fault fraction θ>0\theta> 0 satisfying a(ρ+hθ)<ca(\rho+ h\theta) < c, where hh bounds the number of physical outcome-bit errors per faulty terminal location as in the proof. Then destructive physical measurement followed by the full Tanner decoder gives the ideal logical measurement instrument whenever the preceding fault path is good and the terminal measurement layer has at most θN\theta N faults. Including the terminal layer preserves the asymptotic diamond-norm error bounds (22) and (28) for the intended logical measurement instrument, and the quantum-cost scalings (2) and (29), with changed constants and, if necessary, a smaller noise threshold.

Proof. Consider ZZ readout and write a Pauli term of the incoming state using a stabilizer-equivalent representative of weight at most ρN\rho N. Ideal physical ZZ outcomes have support in CX=ker⁡HZC_X = \ker H_Z. Expand each faulty measurement instrument at its actual reported outcome. Let yy be the actual reported string after the known bit relabeling specified by the incoming Pauli frame; with physical corrections it is the raw reported string. This relabeling is common to every term and is included in the terminal classical processing. For every surviving term, y=v+ey = v + e, where v∈CXv \in C_X and ∣e∣≤ρN+hf|e| \le\rho N + hf for a fixed constant hh and ff terminal measurement faults. Stabilizer replacement changes only a scalar on the encoded input.

Run the full XX-error decoder on HZy=HZeH_Zy = H_Ze, with no syndrome noise, and call its correction c(y)c(y). Shrink η\eta in Eq. (18), if necessary, and choose a fixed terminal fault fraction θ>0\theta> 0 such that

a(ρ+hθ)<c.(25)a(\rho+ h\theta) < c. \tag*{(25)}

For f≤θNf \le\theta N, choose ffin=O(log⁡N)f_{\mathrm{fin}} = O(\log N) such that αffinN<1\alpha_{f_{\mathrm{fin}}}N < 1. Fact 2.1 with noiseless syndrome gives an integer reduced residual weight smaller than one, hence e+c(y)∈SXe + c(y) \in S_X. Consequently

dZ(y)i=zi⋅[y+c(y)]=zi⋅v(26)d_Z(y)_i = z_i \cdot[y + c(y)] = z_i \cdot v \tag*{(26)}

is the same ideal logical outcome for every term compatible with yy.

More explicitly, the encoding in Eq. (8) obeys ⟨vZ∣Enc⁡Q=2−dim⁡SX/2⟨rZ(v)∣\langle v_Z \vert\operatorname{Enc}_Q = 2^{-\dim S_X/2}\langle r_Z(v)\vert for v∈CXv \in C_X, where rZ(v)i=zi⋅vr_Z(v)_i = z_i \cdot v; the bra vanishes otherwise. A propagated Pauli contributes only a scalar phase and the bit shift ee. Identify the correctable subspace with a logical subsystem and a syndrome subsystem. On these subsystems, every branch at record yy has the form ⟨dZ(y)∣⊗By\langle d_Z(y)\vert\otimes B_y, with environment and Kraus indices included in ByB_y. For a decoded result rr, sum By†ByB_y^\dagger B_y over its fine records and call the result MrM_r. Trace preservation gives ∑r∣r⟩⟨r∣⊗Mr=I\sum_r \vert r\rangle\langle r\vert\otimes M_r = I, so orthogonality implies Mr=IM_r = I for every rr. This proves the full measurement instrument, including the conditional state of an arbitrary reference, without assigning probabilities to coherent Pauli terms.

The local-stochastic bound makes f>θNf > \theta N exponentially unlikely by the same counting argument as Eq. (20). Adding this one terminal bad event changes only the constants in the total error bound. The physical measurement layer uses O(N)O(N) locations. Since all output data have been destructively measured, the subsequent classical iterations add no quantum waits. Exchange XX and ZZ for the other basis.

For specified logical representatives ziz_i, evaluating all parities in Eq. (26) directly takes O(NkN)O(Nk_N) additional bit operations, or O(NK)O(NK) if only the KK stored coordinates are requested. These representatives can be dense. We therefore distinguish the O(N)O(N) classical work of each recovery cycle while the quantum data are stored from the final classical conversion to logical outcomes. Neither this conversion nor the final decoder requires quantum waits after all output blocks have been measured. Measuring selected logical qubits in different Pauli bases requires a separately specified physical circuit.

For encoded quantum output, the theorem returns the block and its frame. A full final decoder run while quantum data remain stored would add O(Nlog⁡N)O(N\log N) waits, and faults during those waits would require continued protection. Such a step is not needed for the encoded-output error criterion in Eq. (6). Returning the quantum output to unencoded physical qubits exposes it to noise during the final decoding operations [32, 33].

Extension to logical operations

The memory can also support logical operations without changing the recovery depth. A concrete example is transversal CNOT between two identical Tanner blocks. Each block encodes kNk_N logical qubits. Let a,b∈F2kN\mathbf{a},\mathbf{b}\in\mathbb{F}_2^{k_N} label their logical computational basis states, with ∣a⟩L=Enc⁡Q∣a⟩|\mathbf{a}\rangle_L=\operatorname{Enc}_Q|\mathbf{a}\rangle. Applying NN disjoint physical CNOT gates, one between each pair of corresponding physical qubits, gives

∣a⟩L⊗∣b⟩L⟼∣a⟩L⊗∣a+b⟩L,(27)|\mathbf{a}\rangle_L\otimes|\mathbf{b}\rangle_L\longmapsto|\mathbf{a}\rangle_L\otimes|\mathbf{a}+\mathbf{b}\rangle_L, \tag*{(27)}

where addition is componentwise modulo two. Thus the physical layer implements kNk_N logical CNOT gates simultaneously, one on each corresponding logical pair. An error can spread from one block to the other, but only by a bounded factor. A fixed number of additional decoder iterations absorbs this increase.

Recovery between physical Clifford circuits

The same reasoning applies whenever a logical Clifford operation has a constant-depth physical Clifford implementation with bounded-size gates. The implementation must map the input codespace to an output code with the same uniform decoder guarantees. Its error spread ss is the maximum number of qubits in the image of a single-qubit Pauli under conjugation by the ideal circuit. Bounded depth and gate size make this spread constant.

Theorem 4.1 (Recovery between logical Clifford layers). Fix a constant number b0b_0 of length-NN Tanner blocks. Suppose every prescribed logical layer has a physical Clifford implementation of constant depth, bounded gate size, and O(N)O(N) locations. The circuit maps its input product code to its declared output product code, implements the stated logical unitary in the fixed encodings, and has physical Pauli spread at most a fixed constant. Assume in addition that every output code satisfies Fact 2.1 with constants independent of NN, TT, and the layer index. Let PT\mathcal{P}_T be the noisy physical channel for the complete sequence of TT gate-and-recovery layers, including all decoder waits and the output Pauli-frame register when used, and let Ut\mathcal{U}_t be the ideal logical unitary channel of layer tt. The maps Enc⁡\operatorname{Enc} and R\mathcal{R} are the fixed input encoding and output recovery-and-decoding maps defined analogously to Eq. (6) for the declared

input and output codes. There is a threshold p∗>0p_* > 0, depending on these uniform bounds, such that at every fixed p<p∗p < p_* a recovery cycle after each of TT layers gives

∥R∘PT∘Enc⁡−UT∘⋯∘U1∥⋄≤2ATe−γN,(28)\left\|\mathcal{R} \circ\mathcal{P}_T \circ\operatorname{Enc} - \mathcal{U}_T \circ\cdots\circ\mathcal{U}_1\right\|_\diamond\le2ATe^{-\gamma N}, \tag*{(28)}

for constants A,γ>0A, \gamma> 0. If these implementations and the prescribed allocation of the KK logical input qubits to code blocks are available uniformly along the code family, one may choose N=O(K+1+log⁡(T/ε))N = O(K + 1 + \log(T/\varepsilon)) and obtain

C=O(T(K+1+log⁡Tε)).(29)C = O\left(T\left(K + 1 + \log\frac{T}{\varepsilon}\right)\right). \tag*{(29)}

The schedule and logical layers are fixed. Their declared action includes all logical coordinates of the blocks. If only KK coordinates carry the task, the encoding fixes the remaining inputs and the output map discards the unused coordinates; the induced ideal channel must be the intended task. The input and output are encoded, and all decoder waits are included. The theorem assumes the physical gate implementations; it does not synthesize arbitrary logical Clifford circuits.

The full proof is in Appendix § 7. I have made the existing reference in the following explanatory paragraph explicitly identify Theorem 4.1.

The proof changes only the contraction estimate. If a gate increases the reduced error bound by a factor at most gg, the coefficient multiplying the previous cycle’s error becomes gαjg\alpha_j instead of αj\alpha_j. Since αj\alpha_j decreases exponentially with the number jj of parallel iterations, one fixed choice of jj makes gαj<1g\alpha_j < 1. Each complete gate-and-recovery cycle still has O(N)O(N) locations, so the same fault-count estimate and common recovery give the claimed error bound. The full proof of Theorem 4.1 is given in Appendix § 7.

Besides transversal CNOT, a logical Pauli product has a physical Pauli representative that can be applied in one parallel layer once specified. Applying Hadamard to every physical qubit exchanges the XX-type and ZZ-type stabilizer generators. In the output CSS code, choose logical XX and ZZ representatives ziz_i and xix_i, respectively. With this choice of logical basis, the physical operation implements Hadamard on every logical qubit. The decoder guarantees are unchanged after exchanging the two CSS components. The output codespace equals the input codespace only when the exchanged stabilizers define the same code; its logical action in an independently fixed basis must still be checked. These are standard CSS-code operations [29]; the result here is that noisy recovery protects them with the stated cost.

Selecting individual logical pairs

Transversal CNOT acts on all corresponding logical pairs. Selecting only some pairs requires a different physical circuit: omitting physical CNOTs from the transversal layer does not, in general, preserve the code or select the desired logical qubits.

Appendix § 8 characterizes all directed CNOT circuits between two identical CSS blocks that implement a prescribed logical CNOT matrix. The characterization gives an affine family of physical CNOT matrices. A matrix with bounded row and column weights yields a constant-depth circuit with linear cost and bounded error spread, and therefore satisfies Theorem 4.1. The remaining requirement is to find such sparse representatives uniformly for the desired logical operations. We state this condition explicitly in Assumption B.3; the algebraic characterization alone does not establish it. Thus transversal operations provide unconditional examples, while the same cost for selected logical pairs remains conditional on an additional circuit construction.

Discussion

We have shown that an encoded quantum memory can attain optimal spacetime scaling with noisy recovery and efficient decoding. Storing KK logical qubits for SS cycles uses O(S(K+log⁡(S/ε)))O(S(K + \log(S/\varepsilon))) physical locations, including syndrome ancillas and all waits during classical processing. The upper bound holds for the stated class of coherent and correlated fault operations and matches the independent-erasure lower bound. Thus the noise introduced by recovery does not force an additional asymptotic memory cost.

The same block supplies logical capacity and reliability. Its redundancy grows with the logarithm of the storage duration and inverse error, and this contribution is shared across all stored qubits. The relative overhead is therefore constant once KK is at least of order log⁡(S/ε)\log(S/\varepsilon). Separate surface-code patches pay a growing reliability cost for each logical qubit, while benefiting from local check interactions [12, 13]. Our result identifies what long-range connectivity and a good quantum LDPC code can achieve when the cost of noisy recovery is included.

The decoder does not have to remove every error before the next cycle begins. It only has to reduce the accumulated error sufficiently to leave room for new faults. The Tanner single-shot decoder already provides this contraction after a fixed number of iterations [5]. Our circuit analysis shows that the contraction survives faults during extraction, correction, and decoder waits, with O(N)O(N) classical work per cycle. Earlier syndromes can be discarded, and neither the number of iterations nor the syndrome history grows with storage time. Constant physical latency still requires enough parallel classical hardware and fixed-time communication along the decoder graph.

This reasoning also permits computation within the protected memory. A bounded-depth physical Clifford layer spreads each error by only a constant factor, which can be compensated by a fixed increase in the number of decoder iterations. Consequently, the cost remains O(T(K+log⁡(T/ε)))O(T(K+\log(T/\varepsilon))) for the supported depth-TT schedules. Transversal CNOT between identical blocks and specified logical Pauli layers give direct examples; whole-block Hadamard is covered with the corresponding change to the output code. These gates can be interleaved with recovery without introducing a growing delay.

Selecting individual logical qubits is the next gate-construction problem. Our affine characterization lists every directed physical CNOT circuit with a given logical action, and bounded row and column weights suffice for constant-depth execution. The unresolved question is whether the required sparse matrices can be found for every desired logical selection in a suitable Tanner family. Code switching and logical measurement offer alternative routes to addressability [24, 25, 26, 27]. Combining such methods with this memory would require compatible code interfaces and a bound on all preparation and waiting costs. Previously proposed constant-depth Clifford constructions based on encoded ancillas illustrate this issue [23]. Even when the gates acting on the data have constant depth, preparing the ancillas and protecting the data while they wait can contribute to the total cost.

The noise assumptions also delimit the result. Fault operations may be coherent and correlated, but their locations are sampled independently of the logical input and obey a local-stochastic bound. This suppresses histories with too many faults in a cycle. On all remaining histories, one common recovery corrects the entire linear space of possible error operators, including their coherent superpositions. The argument does not require the state to return to the codespace after each cycle. Extending the same optimal cost to noise models with small coherent perturbations at every location would require a different fault expansion; general-noise fault-tolerance results provide a relevant starting point [21].

A complete computational architecture must also prepare encoded states, admit unknown quantum inputs, and supply non-Clifford gates. Preparing a known code state, encoding an unknown state, and returning an unencoded quantum output have distinct requirements [32, 33]. Establishing these interfaces for the same Tanner family would determine when the memory advantage survives in a larger computation. The higher time overheads in universal constructions [17, 18, 19, 20] account for capabilities beyond the protected layers considered here. A useful next step is to determine which of those capabilities can be added while preserving linear cost and constant duration per layer. Assessing practical performance will require explicit schedules for finite codes, estimates of decoder communication costs, and noise thresholds. These will determine the physical resources needed for a useful device beyond the asymptotic scaling established here.

Acknowledgements

AT is supported by the CQT PhD scholarship, the Google PhD fellowship program, and the CQT Young Researcher Career Development Grant. Generative artificial intelligence tools were used to assist with ideation, language editing, organization, and the preparation of portions of the manuscript.

Proof of the Clifford extension

We give the modifications to the memory proof needed when a physical Clifford layer precedes each recovery cycle. The layer can spread existing errors, but by only a constant factor; the decoder compensates for this increase with a fixed number of iterations.

Proof of Theorem 4.1. For several blocks, extend r(P)r(P) in Eq. (12) by summing the reduced XX and ZZ weights over all blocks. Every Pauli with r(P)≤rr(P) \le r still has a stabilizer-equivalent representative of physical weight at most rr. If 2r<dN2r < d_N, the proof of Lemma 3.1 applies to the product code.

Let UU be one of the given Clifford implementations. It maps input stabilizers to output stabilizers. Reducing a Pauli before conjugation, using the spread bound, and then separating the output XX and ZZ components gives

rout(UPU†)≤grin(P),g=2s.(30)r_{\mathrm{out}}(UPU^\dagger) \le g r_{\mathrm{in}}(P), \qquad g = 2s. \tag*{(30)}

For a CNOT circuit, XX and ZZ errors propagate separately and g=sg = s suffices. The circuit in Lemma 3.2 now starts with UU. Its branch expansion has eνUΠine_\nu U\Pi_{\mathrm{in}} in place of eνΠine_\nu\Pi_{\mathrm{in}} and satisfies r(eν)≤grin+hdfr(e_\nu) \le g r_{\mathrm{in}} + h_d f. The bounds on new syndrome errors and errors during waits are unchanged in form, with constants for the complete gate and recovery circuit.

The resulting recurrence is

rout≤gαjrin+(αjhd+βhs+hl)f.(31)r_{\mathrm{out}} \le g\alpha_j r_{\mathrm{in}} + (\alpha_j h_d + \beta h_s + h_l)f. \tag*{(31)}

Choose a fixed jj so that λ=gαj≤1/2\lambda= g\alpha_j \le1/2, set B=αjhd+βhs+hlB = \alpha_j h_d + \beta h_s + h_l and ρ=Bη/(1−λ)\rho= B\eta/(1-\lambda), and take η>0\eta> 0 sufficiently small that

2ρ<δ,a(gρ+hdη)+bhsη<c.(32)2\rho< \delta,\qquad a(g\rho+ h_d\eta) + b h_s\eta< c. \tag*{(32)}

This keeps every Pauli term in the decoder’s domain and preserves r≤ρNr \le\rho N whenever a complete layer has at most ηN\eta N faults. The fault-count estimate (20) applies with the new constant number of locations per data qubit. For sufficiently small fixed pp, a union bound over TT layers gives Pbad≤ATe−γNP_{\mathrm{bad}} \le AT e^{-\gamma N}. The common recovery gives the intended logical unitary on every good fault path, proving Eq. (28).

Under the assumptions on uniform gate implementations and allocation of logical qubits, choose NN as in Eq. (23), with SS replaced by TT and with sufficient capacity for the prescribed allocation of logical qubits. A fixed number of blocks changes the cost only by a constant. Each complete layer has O(N)O(N) locations and physical qubits, which proves Eq. (29).

Physical circuits for selected logical CNOT gates

This appendix supplies the algebraic characterization used in § 4. We consider circuits in which all controls lie in one CSS block and all targets in a second identical block. These CNOT gates commute, so a binary matrix specifies the circuit. We first characterize the matrices with a prescribed logical action, then state the additional sparsity condition needed for constant-depth implementation. The characterization is unconditional and applies to any CSS code; its efficient application to Tanner blocks remains conditional on that sparsity condition. General logical Clifford synthesis can be formulated through binary symplectic constraints [34]. Here we restrict to directed CNOT circuits between two CSS blocks, for which an explicit affine parametrization exposes the row and column weights that control physical depth.

Physical circuits for a prescribed logical action

All vector spaces are over F2\mathbb{F}_2. Write SX=SXS_X = S_X and SZ=SZS_Z = S_Z for the stabilizer spaces of § 2, and define

SX=row⁡HX,SZ=row⁡HZ,CX=ker⁡HZ,CZ=ker⁡HX.(33)S_X = \operatorname{row} H_X,\qquad S_Z = \operatorname{row} H_Z,\qquad C_X = \ker H_Z,\qquad C_Z = \ker H_X. \tag*{(33)}

We use column vectors for physical Pauli supports. The CSS condition is SX⊂CXS_X \subset C_X. Write rX=dim⁡SXr_X = \dim S_X, rZ=dim⁡SZr_Z = \dim S_Z, and k=N−rX−rZk = N-r_X-r_Z. Choose full-column-rank matrices GXG_X and GZG_Z with images SXS_X and SZS_Z. These are algebraic choices used in the proof; the measured check lists HXH_X, HZH_Z are not replaced by these bases.

Fix paired logical representatives LX,LZ∈F2N×kL_X,L_Z \in\mathbb{F}_2^{N \times k} satisfying

CX=SX⊕im⁡LX,CZ=SZ⊕im⁡LZ,LZTLX=Ik.(34)C_X = S_X \oplus\operatorname{im} L_X,\qquad C_Z = S_Z \oplus\operatorname{im} L_Z,\qquad L_Z^T L_X = I_k. \tag*{(34)}

The columns of LXL_X and LZL_Z specify the paired logical Pauli operators. The basis is fixed throughout a computation. For a binary N×NN \times N matrix AA, define the physical unitary

UA∣u⟩∣v⟩=∣u⟩∣v+Au⟩.(35)U_A|u\rangle|v\rangle= |u\rangle|v+Au\rangle. \tag*{(35)}

It is the product of the CNOT gates from qubit jj in the first block to qubit ii in the second block for which Aij=1A_{ij}=1. These gates commute. A binary matrix M∈F2k×kM \in\mathbb{F}_2^{k \times k} specifies the logical action ∣x⟩L∣y⟩L↦∣x⟩L∣y+Mx⟩L|x\rangle_L|y\rangle_L \mapsto|x\rangle_L|y+Mx\rangle_L, where x,y∈F2kx,y \in\mathbb{F}_2^k label all kk logical qubits in each block. To select CNOT gates between corresponding logical pairs, take M=Dm=diag⁡(m)M=D_m=\operatorname{diag}(m) for a binary vector m∈F2km \in\mathbb{F}_2^k: apply the logical CNOT on pair ii if mi=1m_i=1, and act as the identity on that pair if mi=0m_i=0.

Theorem B.1 (Exact CNOT representatives). For a CSS code with phase-+1 X-type and Z-type stabilizer generators and the paired basis ((B.2)), UAU_A preserves the two-block code and has logical action MM if and only if

ASX⊆SX,ATSZ⊆SZ,(36)AS_X \subseteq S_X,\qquad A^T S_Z \subseteq S_Z, \tag*{(36)}
ALX−LXM∈SX⊕k.(37)AL_X-L_XM \in S_X^{\oplus k}. \tag*{(37)}

Equivalently, the complete set of such matrices is

A=LXMLZT+GXR+BGZT,R∈F2rX×N,B∈F2N×rZ.(38)A=L_XML_Z^T+G_XR+BG_Z^T,\qquad R\in\mathbb{F}_2^{r_X\times N},\qquad B\in\mathbb{F}_2^{N\times r_Z}. \tag*{(38)}

This affine space has dimension N(rX+rZ)−rXrZN(r_X+r_Z)-r_Xr_Z. Its induced action on logical ZZ operators is fixed by

ATLZ−LZMT∈SZ⊕k.(39)A^T L_Z-L_ZM^T \in S_Z^{\oplus k}. \tag*{(39)}

Proof. Pauli conjugation by UAU_A gives

X(u)⊗I⟼X(u)⊗X(Au),I⊗X(v)⟼I⊗X(v),Z(u)⊗I⟼Z(u)⊗I,I⊗Z(v)⟼Z(ATv)⊗Z(v).(40)\begin{aligned} X(u)\otimes I &\longmapsto X(u)\otimes X(Au), & I\otimes X(v)&\longmapsto I\otimes X(v),\\ Z(u)\otimes I &\longmapsto Z(u)\otimes I, & I\otimes Z(v)&\longmapsto Z(A^Tv)\otimes Z(v). \tag*{(40)} \end{aligned}

Consequently, code preservation is equivalent to ((B.4)). The logical action of a control-block XX operator is MM exactly when ((B.5)) holds. In fact, the first condition in ((B.4)) and ((B.5)) already imply ACX⊆CXAC_X \subseteq C_X, and hence the second condition in ((B.4)).

These conditions determine the unitary without an undetected logical phase. With these stabilizer generators, the code has the orthonormal basis

∣x⟩L=∣SX∣−1/2∑s∈SX∣s+LXx⟩.(41)|x\rangle_L=|S_X|^{-1/2}\sum_{s\in S_X}|s+L_Xx\rangle. \tag*{(41)}

For each fixed s∈SXs\in S_X, the target-block sum over t∈SXt\in S_X is translated by As+(ALX−LXM)x∈SXAs+(AL_X-L_XM)x\in S_X. Therefore UAU_A sends the two coset sums to the coset sums labeled by x,y+Mxx,y+Mx, with no phase. This also proves the desired action on arbitrary superpositions and states entangled with an external reference.

The particular solution A0=LXMLZTA_0=L_XML_Z^T satisfies all the conditions. Every term GXR+BGZTG_XR+BG_Z^T maps CXC_X into SXS_X, so every matrix in ((B.6)) is a solution. Conversely, let D=A−A0D=A-A_0 be the difference of two solutions. Then D(CX)⊆SXD(C_X) \subseteq S_X. Since GXG_X is an isomorphism onto SXS_X, the restriction D∣CXD|_{C_X} has a linear lift through GXG_X. Extend this lift to R:F2N→F2rXR:\mathbb{F}_2^N \to\mathbb{F}_2^{r_X}. The map D−GXRD-G_XR vanishes on CX=ker⁡GZTC_X=\ker G_Z^T. Because GZTG_Z^T is surjective, it factors as BGZTBG_Z^T for some BB.

The parameter map (R,B)↦GXR+BGZT(R,B)\mapsto G_XR+BG_Z^T has kernel precisely

(R,B)=(JGZT,GXJ),J∈F2rX×rZ.(42)(R,B)=(JG_Z^T,G_XJ),\qquad J\in\mathbb{F}_2^{r_X\times r_Z}. \tag*{(42)}

Indeed, its vanishing first implies that RR vanishes on CXC_X, and then surjectivity of GZTG_Z^T determines BB. Subtracting this kernel dimension gives the stated affine dimension.

Finally, each column of ATLZ−LZMZTA^TL_Z-L_ZM_Z^T pairs to zero with SXS_X by (B.4), and pairs to zero with im⁡LX\operatorname{im}L_X by (B.5) and (B.2). It therefore lies in CX⊥=SZC_X^\perp=S_Z, proving (B.7).

When the circuit has constant depth

The affine description determines which physical CNOTs give the right logical gate. Their scheduling cost depends on how many gates share each physical qubit. Bounded row and column weights give precisely the required bound.

Lemma B.2 (Cost of a sparse representative). Suppose the row and column weights of AA are at most a constant ΔA≥1\Delta_A\ge1. Then UAU_A uses at most ΔAN\Delta_A N CNOT gates, no ancillary qubits, and at most 2ΔA−12\Delta_A-1 layers. It maps every single-qubit Pauli error to a Pauli error of weight at most ΔA+1\Delta_A+1. Given the sparse edge list, a schedule with these properties can be found in O(N)O(N) word operations.

Proof. Make a bipartite graph with one vertex for each control and target qubit and one edge for each nonzero matrix entry. Its maximum degree is ΔA\Delta_A. Greedy edge coloring uses at most 2ΔA−12\Delta_A-1 colors because an edge meets at most 2ΔA−22\Delta_A-2 other edges. Each color is a valid gate layer. For constant degree, maintaining the used colors and assigning a color to each edge costs O(N)O(N) word operations. Equation (B.8) bounds the spread of every single-qubit XX, ZZ, or YY by ΔA+1\Delta_A+1.

Theorem B.1 does not supply a sparse matrix in its affine space. The particular solution LXMLZTL_XM L_Z^T can be dense, as can both logical-representative matrices. Gaussian elimination gives a description of the space but does not prove that any prescribed selection of logical pairs has a representative with bounded row and column weights.

Assumption B.3 (Sparse circuits for selected logical CNOT gates). A good Tanner-code family with the block-length property of § 2 satisfying the hypotheses of Theorem 4.1 has one fixed paired logical basis for each block length. There is a constant ΔA\Delta_A such that every selection vector mm has a representative (B.6) with row and column weights at most ΔA\Delta_A. A classical algorithm outputs its sparse edge list in O(N)O(N) word operations per selection vector. Any size-dependent setup is included in a reusable O(N)O(N)-work setup, and the algorithm does not require a table of all selections whose construction and storage are excluded from the cost or an uncharged dense change of logical basis.

Corollary B.4 (Conditional cost of selected CNOT schedules). Under Assumption B.3, and at every fixed pp below the threshold of Theorem 4.1 for the resulting circuits, a prescribed depth-TT schedule of selected CNOT layers on a fixed number of encoded blocks of the chosen size can be executed with encoded quantum output, logical diamond-norm error at most ϵ\epsilon, and

CFT=O(T[K+log⁡(T/ϵ)]),C_{\mathrm{FT}}=O\bigl(T[K+\log(T/\epsilon)]\bigr),
Qpeak=O(K+log⁡(T/ϵ)).(43)Q_{\mathrm{peak}}=O\bigl(K+\log(T/\epsilon)\bigr). \tag*{(43)}

Setup, compilation, and scheduling use O(TN)O(TN) word operations, while error correction during the computation uses O(TN)O(TN) Boolean gates with bounded fan-in. Compilation is performed before the encoded input is supplied. Each logical layer and its following recovery take constant physical time. Explicit storage of all compiled edge lists uses O(TN)O(TN) address words, or O(TNlog⁡N)O(TN\log N) bits.

Proof. Theorem B.1 proves the exact logical action, and Lemma B.2 supplies a constant-depth, linear-work physical layer of uniformly bounded spread. Apply Theorem 4.1. Choose an available block length above the capacity and reliability requirements, N≥c1K+c2log⁡(T/ε)N \ge c_1 K + c_2 \log(T/\varepsilon), with constants sufficient for that theorem. The block-length property bounds the excess length by a constant factor. Compiling and scheduling all selections of logical pairs takes O(TN)O(TN) work. Every wait while quantum data remain stored is included in the execution cost of Theorem 4.1.

The assumption concerns corresponding logical pairs in a fixed basis. The corollary does not construct arbitrary logical matchings, Hadamard gates on individually selected logical qubits, or non-Clifford gates.

References

  1. [1]Peter W. Shor. Fault-tolerant quantum computation. In Proceedings of the 37th Annual Symposium on Foundations of Computer Science, pages 56–65. IEEE, 1996. doi: 10.1109/SFCS.1996.548464.
  2. [2]Dorit Aharonov and Michael Ben-Or. Fault-tolerant quantum computation with constant error. In Proceedings of the 29th Annual ACM Symposium on Theory of Computing, pages 176–188. ACM, 1997. doi: 10.1145/258533.258579.DOI
  3. [3]Panos Aliferis, Daniel Gottesman, and John Preskill. Quantum accuracy threshold for concatenated distance-3 codes. Quantum Information and Computation, 6:97–165, 2006. URL https://arxiv.org/abs/quant-ph/0504218.
  4. [4]Kishor Bharti, Tobias Haug, and Andrew Tanggara. Fault-tolerant quantum computation cannot be achieved with constant spacetime overhead, 2026. URL https://arxiv.org/abs/2608.26272.
  5. [5]Shouzhen Gu, Eugene Tang, Libor Caha, Shin Ho Choe, Zhiyang He, and Aleksander Kubica. Single-shot decoding of good quantum LDPC codes. Communications in Mathematical Physics, 405:85, 2024. doi: 10.1007/s00220-024-04951-6.DOI
  6. [6]Anthony Leverrier and Gilles Zémor. Decoding quantum Tanner codes. IEEE Transactions on Information Theory, 69:5100–5115, 2023. doi: 10.1109/TIT.2023.3267945. URL https://arxiv.org/abs/2208.05537.
  7. [7]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, pages 375–388. ACM, 2022. URL https://arxiv.org/abs/2111.03654.
  8. [8]Anthony Leverrier and Gilles Zémor. Quantum Tanner codes. In Proceedings of the 63rd Annual IEEE Symposium on Foundations of Computer Science, pages 872–883. IEEE, 2022. doi: 10.1109/FOCS54457.2022.00117.DOI
  9. [9]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, pages 905–918. ACM, 2023. URL https://arxiv.org/abs/2206.07750.
  10. [10]Héctor Bombín. Single-shot fault-tolerant quantum error correction. Physical Review X, 5:031043, 2015. doi: 10.1103/PhysRevX.5.031043.DOI
  11. [11]Earl T. Campbell. A theory of single-shot error correction for adversarial noise. Quantum Science and Technology, 4(2):025006, 2019.
  12. [12]Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill. Topological quantum memory. Journal of Mathematical Physics, 43:4452–4505, 2002. doi: 10.1063/1.1499754.DOI
  13. [13]Austin G. Fowler, Matteo Mariantoni, John M. Martinis, and Andrew N. Cleland. Surface codes: Towards practical large-scale quantum computation. Physical Review A, 86:032324, 2012. doi: 10.1103/PhysRevA.86.032324.DOI
  14. [14]Nouédyn Baspin, Omar Fawzi, and Ala Shayeg​​hi. A lower bound on the overhead of quantum error correction in low dimensions, 2023. URL https://arxiv.org/abs/2302.04317.
  15. [15]Daniel Gottesman. Fault-tolerant quantum computation with constant overhead. Quantum Information and Computation, 14:1338–1372, 2014. URL https://arxiv.org/abs/1310.2984.
  16. [16]Omar Fawzi, Antoine Grospellier, and Anthony Leverrier. Constant overhead quantum fault-tolerance with quantum expander codes. In Proceedings of the 59th Annual IEEE Symposium on Foundations of Computer Science, pages 743–754. IEEE, 2018. doi: 10.1109/FOCS.2018.00076.DOI
  17. [17]Hayata Yamasaki and Masato Koashi. Time-efficient constant-space-overhead fault-tolerant quantum computation. Nature Physics, 20:247–253, 2024. doi: 10.1038/s41567-023-02325-8.DOI
  18. [18]Shiro Tamiya, Masato Koashi, and Hayata Yamasaki. Fault-tolerant quantum computation with polylogarithmic time and constant space overheads. Nature Physics, 22:27–32, 2026. doi: 10.1038/s41567-025-03102-5.DOI
  19. [19]Quynh T. Nguyen and Christopher A. Pattison. Quantum fault tolerance with constant-space and logarithmic- time overheads. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pages 730–737. ACM, 2025. doi: 10.1145/3717823.3718318. Full version: arXiv:2411.03632v2.
  20. [20]Zhengyi Han and Zi-Wen Liu. Purely-logarithmic-time- and constant-space-overhead fault-tolerant quantum computation, 2026. URL https://arxiv.org/abs/2609.28461v2. Version 2.
  21. [21]Matthias Christandl, Omar Fawzi, and Ashutosh Goswami. Fault-tolerant quantum computation with constant overhead for general noise. PRX Quantum, 6:040334, 2025. doi: 10.1103/k4cm-pp9p.DOI
  22. [22]Omar Fawzi, Alexander Müller-Hermes, and Ala Shayeghi. A lower bound on the space overhead of fault-tolerant quantum computation. In 13th Innovations in Theoretical Computer Science Conference, volume 215 of Leibniz International Proceedings in Informatics, pages 68:1–68:20, 2022. doi: 10.4230/LIPIcs.ITCS.2022.68.DOI
  23. [23]Yi-Cong Zheng, Ching-Yi Lai, Todd A. Brun, and Leong-Chuan Kwek. Constant depth fault-tolerant Clifford circuits for multi-qubit large block codes. Quantum Science and Technology, 5:045007, 2020. doi: 10.1088/2058-9565/aba34d.DOI
  24. [24]Lawrence Z. Cohen, Isaac H. Kim, Stephen D. Bartlett, and Benjamin J. Brown. Low-overhead fault-tolerant quantum computing using long-range connectivity. Science Advances, 8(20):eabn1717, 2022. doi: 10.1126/sciadv.abn1717.DOI
  25. [25]Shilin Huang, Tomas Jochym-O’Connor, and Theodore J. Yoder. Homomorphic logical measurements. PRX Quantum, 4:030301, 2023. doi: 10.1103/PRXQuantum.4.030301.DOI
  26. [26]Guo Zheng, Liang Jiang, and Qian Xu. High-rate surgery: towards constant-overhead logical operations, 2025. URL https://arxiv.org/abs/2510.08523.
  27. [27]Louis Golowich, Kathleen Chang, and Guanyu Zhu. Constant-overhead addressable gates via single-shot code switching, 2025. URL https://arxiv.org/abs/2510.06760.
  28. [28]Shi Jie Samuel Tan, Yifan Hong, Ting-Chun Lin, Michael J. Gullans, and Min-Hsiu Hsieh. Single-shot universality in quantum ldpc codes via code-switching, 2025. URL https://arxiv.org/abs/2510.08552.
  29. [29]Daniel Gottesman. Surviving as a quantum computer in a classical world, 2024. URL https://www.cs.umd.edu/class/spring2024/cmsc858G/QECCbook-2024-ch1-15.pdf. Draft of May 7, 2024, Chapters 1–15.
  30. [30]Irit Dinur, Shai Evra, Ron Livne, Alexander Lubotzky, and Shahar Mozes. Locally testable codes with constant rate, distance, and locality. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pages 357–374. ACM, 2022. doi: 10.1145/3519935.3520024. URL https://arxiv.org/abs/2111.04808v2.
  31. [31]Emanuel Knill and Raymond Laflamme. Theory of quantum error-correcting codes. Physical Review A, 55:900–911, 1997. doi: 10.1103/PhysRevA.55.900.DOI
  32. [32]Matthias Christandl, Omar Fawzi, and Ashutosh Goswami. Fault-tolerant quantum input/output. IEEE Transactions on Information Theory, 72(5):3098–3128, 2026. doi: 10.1109/TIT.2026.3672442. URL https://arxiv.org/abs/2408.05260.
  33. [33]Matthias Christandl, Omar Fawzi, and Ashutosh Goswami. Fault-tolerant interfaces for quantum LDPC codes, 2026. URL https://arxiv.org/abs/2602.16948.
  34. [34]Narayanan Rengaswamy, Robert Calderbank, Swarnak Kadhe, and Henry D. Pfister. Logical Clifford synthesis for stabilizer codes. IEEE Transactions on Quantum Engineering, 1:1–17, 2020. doi: 10.1109/TQE.2020.3023419.DOI

Paper details

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

views · 5

downloads · 0

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

  • Physics and Astronomy

Generative artificial intelligence tools

View statement
Looking for related papers…
Contents