betaFeedback

WorksPhysics and Astronomy

Probing the real-time decoding accuracy bounds in trapped ion architectures

Abstract

Fault tolerant quantum computers will rely on real-time decoders that process syndromes faster than the QEC cycle duration. The millisecond cycle times offered by trapped ion platforms relax low-latency decoding demands, but simulations and experiments have not yet exploited this time budget to reach maximum logical error suppression. We show how a hybrid sliding window decoding scheme composed of a lower-accuracy and a higher-accuracy decoder can yield substantially improved logical error rates, while preserving low latency. All windows are handled by the lower-accuracy decoder, with some windows being infrequently switched to the higher-accuracy decoder. We extract soft-output information from the lower-accuracy decoder efficiently for any QLDPC code, which allows us to identify decoding windows of low confidence. We simulate memory experiments of bivariate bicycle (BB) codes, using trapped-ion informed noise models. Depending on the physical error rate and BB code, we find up to 3-4 orders of magnitude logical error rate reduction compared to the BP-LSD\texttt{BP-LSD} decoder, and up to 2-3 orders of magnitude lower logical error rate compared to the Beamsearch\texttt{Beamsearch} decoder. By leveraging available classical processing time, our decoding protocol significantly boosts decoding accuracy, ultimately reducing the demands on increasing code size.

Introduction

Realizing quantum algorithms that surpass classical capabilities requires large-scale fault-tolerant architectures that utilize Quantum Error Correction (QEC). QEC poses hardware constraints which demand that the physical error rates are below a threshold so that logical errors are suppressed exponentially with increasing code size [1, 2]. At the same time, QEC relies on the successful inference of errors via a decoding algorithm. For a decoder to be practical, it must be able to decode the syndrome and communicate the correction within the syndrome generation time, to avoid the so-called backlog problem [3]. While for Clifford circuits one can keep track of the Pauli frame, thus avoiding active error-correction, circuits with TT-gates involve corrective Clifford gates that are conditional on the measurement outcome. Deciding which Clifford correction to apply depends on the Pauli frame, meaning that syndromes have to be decoded prior to the classical decision. Thus, real-time decoding is a necessary requirement for universal logical circuits.

Higher decoder accuracy often comes at the cost of higher decoder latency. For trapped ion and neutral atom quantum computers, QEC cycle times range from a few to tens of milliseconds [4, 5, 6, 7], whereas for superconducting-qubit platforms a QEC cycle lasts around 1 μs1 \ \mu\mathrm{s} [8], posing more stringent requirements for decoders. As such, trapped ion and neutral atom platforms potentially allow for more accurate decoders compared to superconducting platforms, which require very low-latency and FPGA-based decoding methods.

Quantum low-density parity check (QLDPC) codes have emerged as more efficient QEC codes, due to their high encoding rates [4, 9, 10]. Certain QLDPC codes have thresholds comparable to surface codes [11], making them ideal for near-term experimental implementation since they also incur a lower qubit overhead. While these codes are promising, especially for flexible architectures that support certain long-range connections [12, 13, 14], performing logical gates [15] or decoding them [16] is far more complicated than surface codes, and determining accurate decoders that would be viable for real-time implementation is still an open line of research.

Certain decoders are implementable on FPGAs [17, 18, 19, 20], and meet the real-time requirements of QEC. Examples include Belief Propagation (BP) and variants and union-find (UF) [21]. BP alone does not produce a threshold for most QEC codes, so it is often modified or combined with other decoders to improve performance. Specifically, the clustering decoder BP-LSD [22] acts as a lower-latency alternative to BP-OSD [23], while retaining the logical error rate improvements of OSD. Some variants of BP are equipped to handle erasures; namely, the BPGD is a promising BP variant for state-of-the-art erasure-aware decoding [24]. UF handles erasure and Pauli errors most effectively in topological codes [21], and has also been adapted for QLDPC codes [25, 26], yielding lower thresholds compared to topological codes. While the aforementioned decoders achieve low-latency, they cannot reach very high decoding accuracy, especially for QLDPC codes whose decoding structures are not matchable.

Recently, Relay-BP [27] was proposed as a potentially fast and FPGA-friendly decoder, which deals with trapping sets encountered in the decoding of QLDPC codes with BP. Relay-BP was implemented on FPGA and was benchmarked on synthetic data [28]. A recent implementation of Relay-BP on a GPU [29] resulted in average latencies of a few milliseconds, and maximum latencies of hundreds of milliseconds, which are more appropriate for trapped ion architectures than superconducting qubits. Further, it was also found that Relay-BP can have suboptimal performance at low noise due to trapping sets. To reduce the decoding latency of Relay-BP, a fully-parallelized FPGA implementation would be needed, whereas further exploration of its accuracy in the presence of realistic hardware noise is yet to be demonstrated. Additionally, Relay-BP requires long-term memory which could lead to long runtime tail distributions and could pose challenges for FPGA implementations.

In this work, we propose a real-time decoding protocol for QLDPC codes tailored to noise present in trapped ion architectures. We combine sliding window decoding with decoder switching: an idea developed in Ref. [30] and tested on surface codes using matching-based decoders. By switching from a weak (low-accuracy) and low-latency decoder to a higher-accuracy, but slower decoder as needed, the decoding accuracy can be boosted, while avoiding the syndrome backlog. We determine switch rates that are feasible for trapped ion architectures, by employing the cluster norm soft output information [31]. This metric can be calculated efficiently for QLDPC codes, avoiding the exponential cost incurred by other metrics such as logical or complementary gaps which require decoding of each logical class. Our protocol switches between BP-LSD or UF weak decoders to the Tesseract or Relay-BP strong decoders. We exploit the longer QEC cycle times offered by trapped ion architectures to improve the logical error rates of memory experiments on bivariate bicycle (BB) codes. Our main results are summarized as follows:

  • Under Pauli errors, decoder switching yields a logical error rate improvement that even exceeds 3 orders of magnitude compared to BP-LSD, for p=2×10−3p = 2 \times10^{-3}.

  • Comparing against the Beamsearch decoder [32] under Pauli noise, our protocol achieves up to 2–3 orders of magnitude lower logical error rates for p=2×10−3p = 2 \times10^{-3}.

  • For Pauli+leakage errors, we find that Relay-BP becomes an unreliable strong decoder, and compromises the success of the decoder switching protocol, if no leakage reduction methods are employed. On the contrary, when the Tesseract decoder is selected as the strong decoder, the performance gains of the decoder switching protocol persist in the presence of leakage.

  • For Pauli+erasure errors, we find that decoder switching yields up to 3 orders of magnitude logical error suppression compared to Pauli-only errors, when the UF is chosen as the weak decoder. Since UF is a very fast decoder, decoder switching preserves a very favorable decoding latency.

  • Importantly, the decoding latency of our protocol is comparable or better than the Beamsearch decoder, and the performance gains are estimated based on experimentally achievable switch rates for trapped ion architectures. With decreasing physical error rates, the requirements of decoder switching drop, as one can switch less frequently to achieve appreciable logical error rate gains.

While we assess our decoder run-times in terms of the theoretical bound imposed by the switch rate between weak and strong decoding, we also compare real run-times of weak and strong decoders on a CPU. We find that although BP-LSD is expected to have almost linear runtime (O(nα(n))\mathcal{O}(n\alpha(n))) in the subthreshold regime [22], when tested on a local CPU, it is in practice faster than Tesseract for p≥5×10−4p \geq5 \times10^{-4}. This is because the proposed fully parallel and optimized algorithm of Ref. [22] has not been implemented. Because the proposed algorithm uses a parallelized version of the union-find data structure, we expect the runtime to be similar to the cost of UF. Since our decoder switching protocol that uses UF as a weak decoder is feasible in real-time, we expect that improving the implementation of BP-LSD will result in similar latencies, but this remains to be shown.

The package we developed and all our codes that reproduce the results of this paper are provided in [33].

This paper is organized as follows. In Sec. II we discuss prior work and introduce the decoding protocol for QLDPC codes. In Sec. III we characterize the logical performance of decoders we select and determine the switch rates for each BB code. In Sec. IV we benchmark the performance of the decoder switching protocol under Pauli, Pauli+leakage and Pauli+erasures noise models. Finally, in Sec. V we conclude our work and discuss future directions.

Overview of decoding protocol

Our goal is to develop a viable real-time decoding protocol, tailored to trapped ion QEC architectures. However, the ideas presented below are also applicable to other quantum computing platforms. For trapped ions, as well as neutral atoms, typical QEC cycle times range from a few to tens of milliseconds [4, 5, 6, 7, 34]. We use this to our advantage to boost the decoding accuracy of memory experiments of QLDPC codes, while preserving a latency that aligns with the demands of trapped ion platforms.

In what follows, we discuss previous work, and then introduce the decoding procedure we implement.

Prior work

Real-time decoding requires that syndromes are processed as soon as possible after their generation, without waiting for the complete syndrome history to become available. This is addressed by sliding window decoding [2, 35, 36], which processes the spacetime decoding volume in smaller regions, typically sliced across the time dimension. Rather than decoding the full syndrome history, syndromes are decoded across WW QEC cycles. From these syndromes, only those that span FF cycles are committed, which belong in the so-called commit region. The window of thickness WW then slides forward in time such that the overlap between the current and past window has FF cycles. The W−FW-F region is known as the buffer region, and has size nbuffern_{\mathrm{buffer}}. The size of the buffer region is important for preserving code distance; a buffer window size of O(d)O(d) cycles [35, 37] is necessary, so that error chains of weight ≤d/2\le d/2 are not mistaken for logical errors. In some cases, the window size, and hence buffer size, is kept smaller than O(d)O(d), at the expense of a higher logical error rate.

While sliding window decoding bounds the spacetime volume of the decoding task, there is still a trade-off between decoding accuracy and speed, since the decoding time needs to be strictly smaller than the syndrome generation time. Recently, Ref. [30] proposed a decoder switching protocol, where each window is first handled by a weak (less accurate) decoder of low latency. When the weak decoder is not confident on a given syndrome, the window is switched to a strong (more accurate) decoder. Soft-output information from the weak decoder reveals the decoder confidence, and an appropriate cutoff determines the rate at which windows are switched to the strong decoder. Since switching events to the strong (and slower) decoder do not happen very often, the requirement for avoiding the syndrome backlog is relaxed based on the switch rate, allowing for increased decoding accuracy. This work applied the decoding switching protocol on surface codes undergoing Pauli noise, and focused only on matching-based decoders, namely the UF [21], MWPM [38] and Belief-Matching [39] decoders. As surface codes encode a single logical qubit, the decoder confidence was efficiently obtained from the weak decoders in Ref. [30] via the complementary gap [40]. However, for QLDPC codes, calculating logical [41] or complementary gaps scales exponentially with the number of logical

qubits as it requires decoding over an exponential number of logical classes. Therefore, an efficient method to extract soft-output information from a decoder is needed for QLDPC codes. Further, the viability of this protocol for QLDPC codes, for which decoding is less trivial, was not explored.

Extension to QLDPC codes

In our work, we design the decoder switching protocol with QLDPC codes in mind. To efficiently calculate decoder confidence from the weak decoders, we employ the cluster norm metric, which was developed and used for post-selection purposes in Ref. [31]. Here we utilize this metric to determine which windows need to be handled by the strong decoder. The cluster norm can be obtained from clustering-based decoders, such as UF, BP-LSD, and ambiguity clustering [42], and in this work we will consider the UF and BP-LSD decoders.

The intuition behind the cluster norm is that larger error clusters in the decoding structure indicate higher probability of logical errors. The error clusters correspond to corrections found during the course of decoding. If the clusters are large, then it is more likely they overlap with logical operators. Thus, the ratio of cluster norm to the total number of error mechanisms in a decoding region gives a reasonable heuristic metric of confidence. The cluster norm is given by [31]:

Q(α)=1∣E∣(∑i∣Ci∣α)1/α,(1)Q^{(\alpha)} = \frac{1}{|\mathcal{E}|}\left(\sum_i |C_i|^\alpha\right)^{1/\alpha}, \tag*{(1)}

where CiC_i is the ii-th cluster in the set of clusters found during decoding, and E\mathcal{E} is the full set of spacetime error mechanisms (faults). For the purposes of this work, we set α=2\alpha=2. Since we decode with sliding window, it is necessary to restrict the clusters only within corrections we accept, namely within the commit region. As a larger cluster norm indicates a higher probability of logical error, we impose switching cutoffs such that the weak decoder’s correction is rejected if Q(2)>qthQ^{(2)} > q_{\mathrm{th}}. If the cluster norm exceeds this cutoff in a given window, we discard the weak correction and switch to strong decoding.

The cutoffs we impose depend on the noise model, as well as characteristics of the platform, since the switch rates that will eventually be practical depend on the syndrome generation time. We will revisit this, when we specifically discuss platform suitability, and estimate the logical error rate gains for trapped ion platforms.

Syndrome extraction circuits and noise models

In all following simulations, we construct our memory syndrome extraction circuits using the QUITS package [36], and we sample the circuits using Stim [43]. Our framework is generically applicable to QLDPC codes, but we focus on the [[72,12,6]][[72, 12, 6]], [[90,8,10]][[90, 8, 10]], [[126,8,10]][[126, 8, 10]], [[144,12,12]][[144, 12, 12]], and [[162,8,14]][[162, 8, 14]] BB codes, whose parameters are given in [11, 44].

Our trapped ion noise models are based on the recent architecture blueprint of IonQ [12]. The first model we explore is the fully connected trapped-ion noise model of Ref. [12], which is a purely depolarizing noise model with no additional transport step, as described in Table I.

Preparationp/10p/10
Single-qubit gatep/10p/10
Single-qubit gatep/10p/10
Two-qubit gatepp
Measurementp/10p/10
Idlep/100p/100

Table I. Fully connected trapped-ion noise model. The first column corresponds to a circuit component, and the second column to the depolarizing rate.

Although depolarizing noise is widely adopted in the literature due to its simplicity, leakage, loss or erasure errors are equally important. Despite their typically smaller magnitude compared to depolarizing noise, they can introduce correlated errors as they propagate through two-qubit gates. To determine the viability of the decoder switching protocol, we will thus consider experimentally informed leakage and erasure rates.

Choice of decoders

The UF and BP-LSD weak decoders we choose are ideal for two reasons: i) they allow for efficient calculation of cluster norms, and ii) they satisfy the low-latency requirements for real-time decoding. Additionally, the UF algorithm is ideal for handling erasures, and in both trapped-ion and neutral atom architectures leakage from computational states can be converted with high efficiency to erasures [45, 46].

We frame the decoding problem using a Detector Error Model (DEM) and spacetime parity check matrix H\mathbf{H} mapping the independent physical fault mechanisms to detectors in the DEM. Given a parity check matrix H\mathbf{H} and an observed detector error syndrome s\mathbf{s}, both BP-LSD and UF seek to solve the decoding problem H⋅e=s\mathbf{H} \cdot\mathbf{e} = \mathbf{s} by growing candidate error clusters from the known syndrome until validity [22, 26].

The BP-LSD algorithm begins by completing a pre-selected number of Belief Propagation (BP) iterations using the error syndrome. The resulting correction and DEM weights are stored, and become the soft information input for the LSD part. LSD grows error clusters incrementally by adding the most likely error mechanisms (weighted expansion) to a local parity check sub-matrix [22], to make the clusters valid and satisfy the local decoding problem. Because in the sub-threshold regime errors belong in disjoint decoding regions, BP-LSD exploits the sparsity to solve the inversion problem e=H−1s\mathbf{e} = \mathbf{H}^{-1}\mathbf{s} for each localized cluster in parallel.

Similarly, UF grows clusters from an error syndrome. However, rather than prioritizing the addition of single most likely faults, unweighted UF grows error clusters by uniformly adding all adjacent error mechanisms to a check node [25]. For topological codes, UF validates clusters by ensuring that the parity within the cluster is even, meaning defects can be connected via error chains to give rise to even parity. However, satisfying the parity constraint is not sufficient for general QLDPC codes. For this reason, we use the UF algorithm of Ref. [25], which is adapted to QLDPC codes, and ensures validity of the local decoding problem by solving s=H⋅e\mathbf{s} = \mathbf{H} \cdot\mathbf{e} via Gaussian elimination. This UF variant follows an unweighted growth of clusters.

As strong decoders, we select Relay-BP [27] and Tesseract [47, 48] due to their superior logical error rate suppression on BB codes. Also, their decoding latencies on CPU lie in the milliseconds regime [see Appendix A], which approach the QEC cycle times of trapped ion platforms, and can thus be readily used as CPU-based strong decoders.

The Relay-BP decoder is a modification of BP. The decoder ensembles RR relay ‘legs’, each decoded via DMem-BP [27]. For each leg, TrT_r BP cycles with additional memory updates indicated by Γr\Gamma_r update the DEM weights. At the end of decoding, SS solutions are chosen from the ensemble. Relay-BP parameters are highly code specific and determine decoding performance. The parameters we choose are those optimized in [27] for the Gross code.

The Tesseract decoder serves as our second strong decoder [47, 48]. Operating as a Maximum Likelihood Estimation (MLE) decoder, it performs an A∗A^* search on a pruned graph of candidate error configurations to return the globally most likely physical error pattern.

More information about the decoding parameters we set, and the decoding latency is provided in Appendix B and Appendix A, respectively.

Decoder characterization under sliding window decoding

Logical error rate performance

We begin by characterizing the logical error rate (LER) performance of the two strong decoders (Relay-BP, Tesseract) and the two weak decoders (BP-LSD, UF), considered in this work, when the BB codes are decoded with sliding window decoding. We consider ZZ-memory experiments, where the circuits are built using built-in functions from QUITS [36].

To preserve similar logical performance as for O(d)\mathcal{O}(d)-cycles decoding, we set nbuffer=dn_{\mathrm{buffer}} = d, and a commit region size of F=d/2F = d/2, giving rise to a total window size of W=F+nbufferW = F + n_{\mathrm{buffer}}, with dd being the code capacity distance of each code. The circuit distance, deffd_{\mathrm{eff}}, can be smaller than dd, but this is not a problem, since we still satisfy nbuffer∼O(d)n_{\mathrm{buffer}} \sim O(d), where d≥deffd \ge d_{\mathrm{eff}}. We simulate r=25r = 25 syndrome extraction cycles for each code, and calculate the LER per syndrome extraction cycle (SEC), ϵ=1−(1−pL(r))1/r\epsilon= 1 - (1 - p_L(r))^{1/r}. Here, pL(r)p_L(r) is the LER after rr syndrome extraction cycles, averaged over the number of logical qubits for each code. We verified numerically that the choice of syndrome extraction cycles does not change the value of ϵ\epsilon we extract, and it stays approximately constant. Our choice of rr is made such that we can slide at least a few windows for each BB code we study.

In Figure 1 we show the LER per SEC for each decoder as a function of the physical error rate. The physical error rate corresponds to the two-qubit error rate, based on which we scale the remaining rates in the circuit [see Sec. II C]. BP-LSD and UF have larger logical error rates compared to Relay-BP and Tesseract, which is why they are considered weak (but faster) decoders in our work. While UF is the least accurate, it is the fastest decoder of all, and it can handle erasures, a noise source that we will address in a next section. Additionally, the expansion of clusters happens in an unweighted and uniform manner, but further performance gains could be obtained under a weighted UF version [c.f. [49]]. The most accurate decoder, as expected, is Tesseract, since it is an approximate MLE decoder. In our simulations we noticed that Relay-BP is not always converging, especially for larger physical error rates, since it is a heuristic decoder. Thus, in some cases, the window correction obtained by Relay-BP does not satisfy the syndrome, which can corrupt the syndromes in the next window, potentially leading to an overall logical failure. This is a feature that does not play a very important role when Relay-BP is benchmarked on its own, but needs special handling when decoder switching is considered. This is because the strong decoder could corrupt the syndrome update for the next window handled by the weak decoder. We will address this issue when we consider the decoder switching protocol later on.

Figure 1. Decoding performance for strong and weak decoders, under sliding window decoding. Each panel shows the logical error rate (LER) per syndrome extraction cycle (SEC), for five BB codes and different decoders, as a function of the physical error rate. The commit region for each code is set to F=d/2F = d/2, where dd is the distance of the code, the buffer region is set to nbuffer=dn_{\mathrm{buffer}} = d, with a total window size of W=F+nbufferW = F + n_{\mathrm{buffer}}. From left to right, we display the performance of Relay-BP, Tesseract, BP-LSD and UF decoders.

Cluster norm distributions and switch rates

To determine when to switch a window from weak to strong decoding, we use the cluster norm metric described in Sec. II B. We pre-compute cluster norm distributions for each code and physical error rate using Eq. (1). By calculating how many cluster norms are above a cutoff (i.e. how often Q(2)>qthQ^{(2)} > q_{\mathrm{th}}) over many shots and windows, we create a cumulative distribution for each code and error probability [see Appendix C]. This cluster norm characterization gives us directly the switch probability psp_s. We can thus impose informed cut-offs to select psp_s based on platform constraints. An example cluster norm distribution for many physical error rates, pp, and a resultant heatmap from scanning qthq_{\mathrm{th}} are shown in Figure 2. As expected, when we increase the cutoff, qthq_{\mathrm{th}}, we accept larger cluster norms (hence, lower decoding confidence), which means that the switch events are rare. Similarly, given a fixed cutoff, as the physical error rate increases we are forced to switch more often to preserve the same decoding confidence.

Figure 2. Cluster norm and switch rate characterization for the [[162,8,14]][[162,8,14]] code, under the Pauli noise model of Table I. The top panels show the cluster norm histograms obtained from BP-LSD (left) or UF (right), for varying physical error rates, pp. The bottom plots show the switch probability by imposing each cutoff at each physical error rate.

We note that the cluster norm distributions obtained from UF and BP-LSD are different. Since UF has lower accuracy than BP-LSD, we consider cluster distributions at lower error rates. Further, unweighted UF (BP-LSD) effectively completes a breadth-first (depth-first) search of the Tanner graph to form clusters, which means the UF clusters are larger. These factors impact the switch rates and the performance of the switching protocol. Using a weighted UF could potentially reduce the cluster norms.

Decoder switching performance

Pauli noise

To benchmark the performance of the decoder switching protocol, we first consider the trapped-ion Pauli noise model of Ref. [2] [see Sec. II C], and explore four combinations of decoder switching:

  • BP-LSD to Relay-BP,

  • BP-LSD to Tesseract,

  • UF to Relay-BP,

  • UF to Tesseract.

We fix the switch rate across all codes and physical error rates to either ps=10−3p_s = 10^{-3} or ps=5×10−3p_s = 5 \times10^{-3}. The relevant cluster norm cutoffs to preserve our target switch rates are estimated based on the analysis of Sec. III B. Note that because we estimated those cutoffs using 100,000 or 500,000 shots per code and physical error rate, we achieve approximately the target switch rates.

For BP-LSD switching, we explore two-qubit rates p∈[2×10−3,5×10−3]p \in[2 \times10^{-3}, 5 \times10^{-3}], whereas for UF switching we probe p∈[10−4,3×10−4]p \in[10^{-4}, 3 \times10^{-4}]. Specifically, p=10−4p = 10^{-4} has been achieved only for very small trapped ion systems [50, 51]. For larger systems, such as the 98 trapped-ion quantum processor Helios of the Quantinuum team, the measured average two-qubit error rate was 8×10−48 \times10^{-4} [52].

Figure 3(a) shows the LER per SEC for BP-LSD to Relay-BP switching and Figure 3(b), for BP-LSD to Tesseract switching. As expected, increasing the switch rate improves the performance of the decoder switching protocol. For ps=10−3p_s = 10^{-3}, the largest improvement is observed at p=2×10−3p = 2 \times10^{-3}. We find that using Tesseract as the strong decoder of the switching protocol suppresses the LER more than Relay-BP, as expected based on their decoding accuracy. This happens for ps=5×10−3p_s = 5 \times10^{-3}, but not for ps=10−3p_s = 10^{-3}, meaning there is a transition point at which invoking the strong decoder more often allows us to obtain extra performance gains. As we mentioned in Sec. III A, Relay-BP might not converge, as it is a heuristic decoder. Here we handle those failures by checking if the correction satisfies the syndrome, and otherwise we simply accept the solution of the weak decoder. In an actual implementation, provided buffer regions are created both prior and after the strong decoding window, the solution of the strong decoder could be accepted, and simply merged in the end with the solutions of the weak decoding regions. An alternative solution would be to discard the strong decoding correction.

Logical error rate performance of decoder switching

Figure 3. Logical error rate performance of decoder switching, when BP-LSD is chosen as the weak decoder. (a) Logical error rate per syndrome extraction cycle for a target switch rate of ps=10−3p_s = 10^{-3} (left), and ps=5×10−3p_s = 5 \times10^{-3} (right), as a function of physical error rate, when the strong decoder is Relay-BP. (b) Same as in (a) when Tesseract is chosen as the strong decoder. In all panels, the solid lines show the decoder switching performance, squares show the performance of the strong decoder, and diamonds the performance of BP-LSD.

We also observe performance improvements when using UF as our weak decoder. In Figure 4(a) we show the LER per SEC for UF to Relay-BP switching, and in Figure 4(b) for UF to Tesseract switching. For both combinations, switching suppresses the LER, and the improvements are more pronounced as the switch rate increases. In particular, switching improves the LER by an order of magnitude compared to UF when ps=5×10−3p_s = 5 \times10^{-3}, and p=10−4p = 10^{-4}. Since the LER is bounded by the strong and weak decoder performance, switching from UF still has higher LER per SEC than switching from BP-LSD, given the same switch rate. Thus, in this case, ps=5×10−3p_s = 5 \times10^{-3} is not enough to reach the strong decoder performance as we found for BP-LSD. This is because there is a larger mismatch of decoding accuracy between the weak and strong decoders, under Pauli noise model.

Logical error rate per syndrome extraction cycle for decoder switching

Figure 4. Logical error rate per syndrome extraction cycle of decoder switching, when UF is chosen as the weak decoder. (a) Switching from UF to Tesseract, and (b) switching from UF to Relay-BP. The (left), (right) plots indicate the target switch rates of 10−310^{-3} and 5×10−35 \times10^{-3}, respectively. The diamond markers show weak decoding performance. We note that the physical error rate is lower than the analysis in Figure 3, since UF has a lower accuracy than BP-LSD.

Another interesting feature we discover is that the switching performance saturates to the same LER independent of our strong decoder choice, which is in contrast to our conclusions from Figure 3, where switching to Tesseract yielded the lowest LER. We believe there are two possible explanations for this feature. One reason could be that the cluster norm metric is not as reliable as for BP-LSD, since the growth of clusters happens in an unweighted way for UF. Thus, the windows that are chosen to be switched (e.g., windows that could cause logical errors) might not align well with decoding uncertainty. Another possibility is that this is again owed to the large accuracy mismatch between UF and strong decoders, and given that per shot we switch at most a few windows to the strong decoders, the shots they can save from logical failures are limited and bounded by UF’s accuracy. Since in the limit of ps=1p_s = 1 all windows are handled by the strong decoder, we believe there exists a ps<1p_s < 1 where switching to Tesseract yields a lower LER than switching to Relay-BP. This phenomenon highlights that the choice of weak and strong decoders is crucial for obtaining maximal performance gains and should not be arbitrary.

Platform-based logical error rate improvement

To implement the decoder switching protocol on hardware, we need to consider specific details of the physical platform. Based on syndrome collection and decoding times, we can upper bound the switch rates and estimate performance gains that can be realistically achieved. The decoder switching protocol achieves an average latency per window of

Tav.=Tw(1−ps)+ps(Tw+Ts)=Tw+psTs,(2)T_{\mathrm{av.}} = T_w(1-p_s) + p_s(T_w + T_s) = T_w + p_sT_s, \tag*{(2)}

where psp_s is the switch rate and TsT_s (TwT_w) is the latency of the strong (weak) decoder. This latency includes both decoding time per window, and communication time. To avoid the backlog, the decoding latency has to be less than the syndrome generation time, tgen.t_{\mathrm{gen.}}, meaning [30]:

Tw<tgen.andpsTs<tgen..(3)T_w < t_{\mathrm{gen.}} \quad\text{and} \quad p_s T_s < t_{\mathrm{gen.}}. \tag*{(3)}

If the window consists of rr syndrome extraction cycles, then tgen.=r×τcyclet_{\mathrm{gen.}} = r \times\tau_{\mathrm{cycle}}. Assuming the decoding time for a window scales linearly with the number of rounds, we get a weak decoder latency of:

Tw=r×(τwdec.+τwcomm.).(4)T_w = r \times\left(\tau_w^{\mathrm{dec.}} + \tau_w^{\mathrm{comm.}}\right). \tag*{(4)}

A similar definition holds for the strong decoder. Using Eq. (4), the conditions to avoid the syndrome backlog take the form:

αw:=(τwdec.+τwcomm.)τcycle<1(5)\alpha_w := \frac{\left(\tau_w^{\mathrm{dec.}} + \tau_w^{\mathrm{comm.}}\right)}{\tau_{\mathrm{cycle}}} < 1 \tag*{(5)}

and:

βs:=ps(τsdec.+τscomm.)τcycle<1.(6)\beta_s := \frac{p_s\left(\tau_s^{\mathrm{dec.}} + \tau_s^{\mathrm{comm.}}\right)}{\tau_{\mathrm{cycle}}} < 1. \tag*{(6)}

The advantage of the decoder switching protocol is that the backlog condition for the strong decoder is relaxed by a factor of psp_s, allowing us to improve decoding accuracy beyond the weak decoder limits.

The choice of switch rates and decoders that satisfy the above conditions depend on τcycle\tau_{\mathrm{cycle}}, which is specific to the QEC platform. For trapped ions and neutral atoms, typical cycle times are to the order of 1-10 ms, whereas for superconducting qubits cycle times are close to 1 μ\mus. Thus, fixing the same strong decoder, the switch rate can be 103−10410^3 - 10^4 times larger for trapped ions compared to superconducting qubits.

Considering a strong decoding time of τsdec.=1\tau_s^{\mathrm{dec.}} = 1 ms, a communication time of τscomm.=10τcycle\tau_s^{\mathrm{comm.}} = 10\tau_{\mathrm{cycle}}, and a typical trapped-ion cycle time of τcycle=1\tau_{\mathrm{cycle}} = 1 ms, implies that the switch rate should satisfy ps≲9.09×10−2p_s \lesssim9.09 \times10^{-2}. The long communication time is taken here as a worst-case estimate, but depending on specific implementations it could be faster than the decoding time. For superconducting qubits, using a cycle time of τcycle=1 μ\tau_{\mathrm{cycle}} = 1\ \mus (with τscomm.=10τcycle\tau_s^{\mathrm{comm.}} = 10\tau_{\mathrm{cycle}}), requires that ps≲9.9×10−4p_s \lesssim9.9 \times10^{-4}. While this strong decoding time does not allow enough room for LER improvement for superconducting platforms, a strong decoding time of 100 μ\mus yields ps≲10−2p_s \lesssim10^{-2}, and could still enable significant LER improvements for these platforms.

To evaluate the logical performance gains obtained by the switching protocol compared to the weak decoder, we calculate ϵweak/ϵswitch\epsilon_{\mathrm{weak}}/\epsilon_{\mathrm{switch}}, and consider the physical rate of p=2×10−3p = 2 \times10^{-3}. Figure 5a shows the ratio of LERs per SEC for BP-LSD to Relay-BP switching, and Figure 5b for BP-LSD to Tesseract switching. Error bars correspond to the standard deviation of the ratio, where we propagate the standard deviations of the weak and decoder switching protocols. As the switch rate increases to

10−210^{-2} and beyond, the performance gains eventually saturate, as we approach the accuracy of the strong decoder. Switching from BP-LSD to Relay-BP can reduce the LER by a factor up to 20 for ps=10−2p_s = 10^{-2}, whereas switching from BP-LSD to Tesseract leads to an LER reduction that can exceed three orders of magnitude. The only exception to this improvement is the [[72,12,6]] code, for which the ratio of LERs is close to 2, since the strong decoder does not improve the LER substantially. As the physical error rate decreases further, the LER improvements at a fixed switch rate obtained from decoder switching become even more pronounced than what we observe in Figure 5 for p=2×10−3p = 2 \times10^{-3}.

Per-cycle logical error rate ratio for BP-LSD to Relay-BP switching

(a)

Per-cycle logical error rate ratio for BP-LSD to Tesseract switching

(b)

Figure 5. Per-cycle logical error rate ratio of the switching protocol compared to BP-LSD, considering only Pauli-type noise. (a) LER ratio of weak to decoder switching protocol as a function of switch rate, when the strong decoder is selected to be Relay-BP. (b) Same as in (a), but selecting Tesseract as the strong decoder. In both cases, we consider the physical error rate of p=2×10−3p = 2 \times10^{-3}. Error bars correspond to standard deviation and are included along both axes.

In Figure 6 we consider UF as the weak decoder. We again calculate ϵweak/ϵswitch\epsilon_{\mathrm{weak}}/\epsilon_{\mathrm{switch}} over a range of switch probabilities when we select Relay-BP [Fig. 6(a)] or Tesseract [Fig. 6(b)] as the strong decoder. Both combinations lead to similar LER suppression for the same reasons we mentioned for Figure 4. While we observe a maximum error suppression of only an order of magnitude, the performance can be boosted further in the presence of erasures.

Ratio of the per-cycle logical error rate for switching compared to UF with Pauli-type noise

Figure 6. The ratio of the per-cycle logical error rate for switching compared to UF with Pauli-type noise. The physical error rate is p=1.26×10−4p = 1.26 \times10^{-4}. We scan the switching probability with switching to (a) Relay-BP and (b) Tesseract.

While UF and BP-LSD both have a complexity O(κ3)\mathcal{O}(\kappa^{3}) bounded by the matrix inversion step in cluster verification, where κ\kappa is the cluster size, both algorithms can obtain close to linear complexity on average in the sub-threshold regime [22, 25]. In practice, we find that the average cluster size κ\kappa and algorithm implementation affect runtimes. Further runtime benchmarking is done in Appendix A, with cluster size discussion in Appendix C.

The gains we reported should be readily achievable for trapped ion architectures given the state-of-the-art millisecond cycle times, combined with the fact that the Tesseract and Relay-BP decoding time per cycle is within 1 ms for experimentally achievable physical error rates [see Appendix A]. Our conservative estimates reveal that a switch rate of ps=10−2p_{\mathrm{s}} = 10^{-2} is feasible, and can

incur LER reductions of even up to 3 orders of magnitude. Different choices of decoders than those we report here could also be used, and might incur even larger improvements. While the choice of UF as a weak decoder for non-topological codes is not so promising under Pauli errors, in several architectures Pauli errors can be converted to erasures with high efficiency. Given lower effective Pauli error rates, UF’s decoding accuracy improves substantially, while retaining a fast decoding speed.

Comparison with Beamsearch decoder

Besides looking at the comparison of the decoder switching performance to the weak decoder performance, we also compare against the Beamsearch decoder. Specifically, we compare our BP-LSD to Tesseract decoder switching protocol with Beam8_230iters and Beam32_340iters. The parameters for these Beamsearch decoder variants were set according to [32]. Further, we consider the Pauli noise model described in Table I.

In Figure 7(a) we plot the ratio of LER per SEC of Beam8_230iters over the LER per SEC of our protocol for different switch rates. Similarly, Figure 7(b) compares the LER performance of our protocol versus Beam32_340iters. We further consider the physical error rate p=2×10−3p = 2 \times10^{-3}. We note that for ps=10−2p_s = 10^{-2}, which is a feasible switch rate for trapped ions architectures, our protocol can achieve even up to two or three orders of magnitude LER reduction. Given that the CPU decoding latency of Tesseract is similar to Beamsearch for the decoder parameters we considered, and the fact that the Tesseract decoder is not invoked in each shot, the switching protocol provides improved logical performance while reducing the total decoding time [see Appendix A].

Figure 7. Per-cycle logical error rate ratio of the switching protocol compared to Beamsearch decoder, considering only Pauli-type noise. (a) LER ratio of Beam8_230iters to decoder switching protocol as a function of switch rate, when the strong decoder is selected to be Tesseract, and the weak decoder is BP-LSD. The physical error rate is set to p=2×10−3p = 2 \times10^{-3}. (b) Same as in (a), but comparing against Beam32_340iters decoder.

Pauli noise accompanied by leakage

In addition to circuit-level Pauli errors, we investigate the impact of leakage on the decoder switching protocol. Leakage errors are more important for superconducting architectures compared to trapped ions. For superconducting qubits, leakage can be partially counteracted with low-level control techniques via pulse-shaping (e.g. DRAG) [53, 54, 55, 56], and higher-level circuit design via leakage reduction units [8, 57, 58, 59], but still remains a challenging noise source. For trapped ions, leakage events can happen due to imperfect two-qubit gates, or relaxation, but they happen less frequently.

In what follows, we assume the trapped-ion Pauli noise model with depolarizing rate p=3×10−3p = 3 \times10^{-3}, and a leakage rate pleak=10−5p_{\mathrm{leak}} = 10^{-5} per syndrome extraction cycle. According to Ref. [12], this leakage rate estimates contributions of 1/e1/e lifetime decay of metastable states of 137Ba+{}^{137}\mathrm{Ba}^{+} in addition to unwanted driving of spectator transitions during two-qubit gates. In our circuits, for simplicity, we probabilistically leak every qubit at the beginning of each QEC cycle, which should result in a worst-case performance since leakage can then propagate through all subsequent two-qubit gates.

To simulate leakage in addition to Pauli errors, we combine the circuit generation tools from QUITS with the deltakit-stim package [60, 61], which allows us to sample detection events that arise due to both Pauli and leakage errors. Deltakit-stim tracks leakage events throughout the circuit and propagates leakage through two-qubit gates. When a qubit is leaked, it is recorded as leaked and sent to the maximally mixed state. If a leaked qubit interacts with another qubit via a two-qubit gate, the latter will also be sent to the maximally mixed state. We construct our circuits with QUITS, and then post-process it by adding leakage instructions “LEAKAGE_(p_leak)” per syndrome extraction cycle, and “HERALD_LEAKAGE_EVENT” instructions which create dedicated measurement records that take the value of 1 if a leakage event happened, or 0 if leakage did not occur. (Note that the measurement records can only be associated with ancillary qubits.) We associate each of these dedicated measurement records with a leakage detector; the leakage detectors are added on top of the regular detectors in the circuit, and do not compare measurements across rounds. Further, we do not implement leakage-aware decoding, as we want to only benchmark how severe small leakage errors are on our decoder switching protocol. This means that while we sample detection events for all detectors in the circuit, we then discard the leakage-aware detectors, and decode the remaining events using the detector error model constructed from the circuit with pleak=0p_{\mathrm{leak}} = 0, and a leakage-unaware decoder. We leave leakage-aware decoding as an interesting future direction.

Due to the presence of leakage the distribution of cluster norms changes. One option would be to re-evaluate the cluster norms in the presence of leakage to find the cutoffs that achieve our target switch rate. Another option is to keep the same cutoffs as in the case of Pauli-only noise, and inspect how the switch rate changes compared to the no-leakage case. We follow this latter approach, using the cluster norm cutoffs that achieve the target switch rate of ps≈10−2p_s \approx10^{-2} for pleak=0p_{\mathrm{leak}} = 0. We further select BP-LSD as our weak decoder and exclude UF. The UF decoder is most effective for handling erasures, and thus we do not explore its performance in the presence of leakage. In Figure 8(a) we show with diamonds the LER per syndrome extraction cycle for pleak=10−5p_{\mathrm{leak}}=10^{-5}, when we switch from BP-LSD to Tesseract. For comparison, we also show with circles the decoder switching results for pleak=0p_{\mathrm{leak}}=0, as well as the performance of BP-LSD (light-colored bars) and Tesseract (dark-colored bars) at pleak=0p_{\mathrm{leak}}=0. While the presence of leakage deteriorates the maximum performance gains of decoder switching, the switching protocol still preserves substantial gains for all codes. The LER per SEC of the decoder switching protocol still lies within the weak and strong decoder LER bounds at pleak=0p_{\mathrm{leak}}=0. Additionally, as we increase the size of the codes, we see a consistent decrease in the LER, even in the presence of leakage. In Figure 8(a) we further display the actual switch rates we obtain when we configure the cutoffs based on cluster norm distributions collected at pleak=0p_{\mathrm{leak}}=0. Without leakage, the switch rates are close to 10−210^{-2}, but in the presence of leakage the switch rates become 2–3 times larger. This is expected, since we fix the same cutoff as in the case of zero leakage. The addition of leakage noise leads to larger clusters, and hence a larger cutoff would be needed to preserve the same rate. As we did not re-evaluate the cluster norms in the presence of leakage, the features we observe are consistent with our expectations.

Figure 8. Impact of leakage on the per-cycle logical error rate. (a) Left: logical error rate per syndrome extraction cycle versus BB code, for BP-LSD to Tesseract decoder switching. Dark-colored bars show the performance of Tesseract and light-colored bars of BP-LSD at pleak=0p_{\mathrm{leak}} = 0. Circles show the performance of switching at pleak=0p_{\mathrm{leak}} = 0, and diamonds at pleak=10−5p_{\mathrm{leak}} = 10^{-5}. Right: Switch rates for pleak=0p_{\mathrm{leak}} = 0 are shown with dark-colored bars, and for pleak=10−5p_{\mathrm{leak}} = 10^{-5} with light-colored bars. (b) Same as in (a) for BP-LSD to Relay-BP switching. In both cases, the depolarizing error rate is set to p=3×10−3p = 3 \times10^{-3}.

The behavior of the decoder switching protocol changes dramatically when we switch from BP-LSD to Relay-BP. These results are presented in Figure 8(b). We find that for the [[72,12,6]][[72,12,6]] and [[90,8,10]][[90,8,10]] codes the LER is slightly lower compared to BP-LSD at pleak=0p_{\mathrm{leak}}=0, but for the other codes, the LER is higher compared to BP-LSD at pleak=0p_{\mathrm{leak}}=0. We simulated single sliding window decoding for BP-LSD and Relay-BP in Appendix D and found that BP-LSD is actually more accurate than Relay-BP when leakage is present. Specifically, the performance of Relay-BP given pleak=10−5p_{\mathrm{leak}}=10^{-5} can deteriorate by up to two orders of magnitude compared to the LER at pleak=0p_{\mathrm{leak}}=0, making it unreliable as a strong decoder and thus eliminating the gains of decoder switching.

The analysis presented in this section highlights the importance of benchmarking decoders against noise models that go beyond the Pauli approximation. While leakage is treated here via a Pauli approximation, it still reveals the detrimental effects in the logical performance. Testing more refined models can thus be very important in order to determine whether the decoders can be used for real-time implementation given realistic noise sources that exist in hardware.

Pauli noise accompanied by erasures

While qubit leakage is a common problem in many quantum computing architectures, if one is able to determine when it occurs and inform the decoder, decoding performance can be improved. The process of identifying

leakage errors and restoring them to the qubit subspace is called erasure conversion. In trapped ions, leakage is detected by monitoring additional transitions on top of the transitions used for gate operations. Once leakage is detected, the population can be pumped back into the qubit subspace, but information about the exact state upon return to the computational space is lost. Thus, the qubit state is assumed to be in a maximally mixed state, signifying the erased information. We note that leakage can be suppressed without harming the data by optical pumping [61, 62].

An erasure conversion scheme applicable to trapped ions was introduced in Ref. [45], which identified experimentally feasible erasure conversion rates for leakage occurring due to two-qubit gates or idling. Since the most dominant errors according to Table I are two-qubit errors, and it is possible to convert them into erasures [45], we convert only those errors into erasures.

The efficiency of converting errors to erasures is quantified by the erasure conversion rate, ReR_e. ReR_e is the ratio of the erasure rate to the total error rate, Re=perasurepR_e = \frac{p_{\mathrm{erasure}}}{p}. Here, p=perasure+ppaulip = p_{\mathrm{erasure}} + p_{\mathrm{pauli}}, where pp describes the full error budget for two-qubit errors. While ReR_e can approach 0.95 for 40Ca+{}^{40}\mathrm{Ca}^{+} metastable qubits, we consider Re=0.7941R_e = 0.7941 corresponding to 133Ba+{}^{133}\mathrm{Ba}^{+} metastable qubits [45].

To simulate erasures in addition to Pauli errors, we first determine the probability of erasures based on ReR_e. Given a total two-qubit depolarizing error rate, pp, the erasure contribution is set to perase=Repp_{\mathrm{erase}} = R_ep, and the Pauli contribution to ppauli=(1−Re)pp_{\mathrm{pauli}} = (1 - R_e)p. The circuits are created with Stim, using the Pauli noise model of Table I, but using instead the modified ppaulip_{\mathrm{pauli}} two-qubit depolarizing rate. In addition to this two-qubit error, we sample erasures with probability perasurep_{\mathrm{erasure}} per two-qubit location. This means that we send each qubit involved in the gate to a maximally mixed state. We record a vector of possible error mechanisms, and if an erasure occurred, we set that error mechanism’s entry to 1. All other entries are set to 0. This is the vector we feed to the erasure-aware UF decoder, along with the syndromes. Note that in each shot, the structure of the DEM remains the same, but we need to update the priors, since certain error rates are sent to 0.5 due to the erasure channel.

In Figure 9 we consider the physical error rate p=2×10−4p = 2 \times10^{-4}, and extract the LER per SEC for the BB codes [[72,12,6]][[72,12,6]] and [[90,8,10]][[90,8,10]], under UF decoding, or decoder switching. The performance of the erasure-aware UF decoding is indicated with bars; in this case, the LER reduces by an order of magnitude compared to the case of Re=0R_e = 0. Additionally, circles (diamonds) show the decoder switching performance when Re=0R_e = 0 (Re=0.7941R_e = 0.7941). While we assume a modest switch rate of ps=5×10−3p_s = 5 \times10^{-3}, we still obtain appreciable gains of ϵweak/ϵswitch≈10\epsilon_{\mathrm{weak}}/\epsilon_{\mathrm{switch}} \approx10 for [[72,12,6]][[72,12,6]] and ϵweak/ϵswitch≈100\epsilon_{\mathrm{weak}}/\epsilon_{\mathrm{switch}} \approx100 for [[90,8,10]][[90,8,10]].

Figure 9. Comparison between switching with erasure conversion rate Re=0.7941R_e=0.7941 and erasure-aware UF, and switching without erasure conversion at physical error rate p=0.0002p=0.0002, and switch rate ps=0.005p_s=0.005. Switching results from (a) UF →\to Tesseract, and (b) UF →\to Relay-BP. The left plots show switching LERs with and without erasure conversion compared to erasure-aware weak decoding. Decoding with erasure-aware UF already has lower LER than decoder switching with Re=0R_e=0. Decoder switching with erasure conversion suppresses the logical error rate additionally by orders of magnitude. The right plots show the switch rates with and without erasures.

Discussion

We develop a real-time decoding switching protocol for QLDPC codes which toggles between a low-latency “weak” decoder and a slow “strong” decoder. We use cluster-based soft information, which allows us to obtain weak decoder confidence for any QLDPC code, and determine decoding windows that need to be handled by the strong decoder. By adjusting the switch rate we tune the decoding accuracy and latency. Our decoder switching protocol suppresses logical error rates by up to 4 orders of magnitude relative to BP-LSD under the tenable Pauli physical error rate p=2×10−3p = 2 \times10^{-3}. Comparing against the Beamsearch decoder for the same pp, we find up to 3 orders of magnitude lower logical error rates, and comparable latency. Under a Pauli+leakage error model, we find that Tessaract remains a reliable strong decoder and retains decoder switching performance gains, in contrast to Relay-BP. When leakage can be converted to erasures, we find that decoder switching yields up to 3 orders of magnitude of logical error suppression improvement relative to UF decoding with zero erasure conversion rate.

While in this work we focused on trapped ion architectures, our protocol could be tailored to any quantum computing architecture. Superconducting qubits, require real-time decoding faster than 1 μ\mus, which demands FPGA implementations. Easier to implement and lower complexity decoders could be thus implemented in FPGAs, and supported by strong decoders that run on CPUs. This hybrid decoding could thus boost the logical error suppression, and preserve the real-time decoding latencies imposed by architecture constraints. For trapped ion or neutral atom architectures, the hybrid decoding could be implemented on CPUs or GPUs, with decoders tailored to the accuracy and timing demands of these platforms. The weak decoder does not need to stall while awaiting for the strong decoder’s decision as long as appropriate buffer regions before and after the switched windows are formed. Given that the number of windows switched is less than one in a 100, the strong decoder is invoked only a few times in a decoding experiment. Corrections of strong and weak decoders are combined on the boundaries as soon as the decoding processes surrounding the strong decoding windows are finished, as discussed in Ref. [30].

Recently, Ref. [63] proposed a dual sliding-window decoder for real-time decoding based on the Beamsearch decoder. This protocol consists of a more accurate “error decoder” which runs continuously and attempts to preserve an accurate Pauli frame, and a less accurate “outcome decoder” which operates during cat-based logical measurements and is initiated with the Pauli frame of the error decoder. Both decoders operate with fixed small windows and buffer regions, which sacrifice logical accuracy but allow for more immediate processing of windows and a smaller decoding volume. The error decoder in Ref. [63] can sometimes exceed the decoding budget, creating a backlog which is subsequently drained by inserting additional syndrome extraction cycles whose role is to allow the decoder to catch up. The outcome decoder is initialized with the Pauli frame of the error decoder, which means if this is not available on time, extra syndrome extraction cycles need to be inserted and the logical measurement is postponed. Our hybrid decoding protocol can straightforwardly substitute the error decoder [Beam32_340iters used in Ref. [63]], since it ensures both a higher accuracy (as needed for keeping track of the Pauli frame), but also a better latency compared to Beam32_340iters, given that the strong decoder is infrequently called. Additionally, the strong decoders we considered have better latency compared to Beam32_340iters [see Appendix A]. Thus, it might be possible that the backlog is much smaller, or non-existent compared to the backlog created by the error decoder.

As a future work, we believe that hybrid decoding protocols could be developed to address different types of noise. For example, an inner decoder could address leakage [64], and an outer decoder could then decode the remaining errors. Further, different types of soft-output information could be used [65], that allow the usage of weak decoders that are not cluster-based. Extending this hybrid decoding framework beyond memory experiments, inspecting other choices of decoder combinations and considering further architectural details would be a promising future direction.

Acknowledgments

The authors would like to thank Sahil Khan, Yingjia Lin, and Bohan Lu for useful discussions and for their feedback on this work. The authors acknowledge support from the National Science Foundation (PHY- 2514847) and the Office of the Director of National Intelligence (ODNI), Intelligence Advanced Research Projects Activity (IARPA), under the Entangled Logical Qubits program through Cooperative Agreement Number W911NF23-2-0216.

Decoding time per round for all decoders

In this section we calculate the decoding times per syndrome extraction cycle for the all decoders considered in this work. The timing benchmarks were run on an Apple M5 Pro chip with 24 GB of RAM. We consider two variants of the Beamsearch decoder namely the Beam8_230iters and Beam32_340iters [32], as well as the Tesseract, Relay-BP, BP-LSD and UF decoders. Our results are shown in Figure 10 where we average the timings across 50,000 shots per depolarizing error rate. We use 50,000 shots for all codes and decoders, besides the p=2×10−3p = 2 \times10^{-3} and p=3×10−3p = 3 \times10^{-3} for the UF, where we use 200 shots. We set the number of syndrome extraction cycles to r=25r = 25, and consider full syndrome history decoding. We time only the decode function runtime, and divide the time by the number of cycles, rr. The circles indicate the average decoding time, and the squares mark the 99.9 percentile runtime. At p=10−4p = 10^{-4}, Tesseract and Relay-BP (which is Relay-BP 1 of Ref. [27]), are the fastest of all, while the 99.9 percentile runtime of Tesseract is slightly lower than Relay-BP. At p=10−3p = 10^{-3}, the average runtime and 99.9 percentile runtime of Relay-BP are the lowest of all. Note, however, that we have not pushed the decoder parameters of these strong decoders a lot, which would increase latency and accuracy further. At p=3×10−3p = 3 \times10^{-3}, the average runtime of Relay-BP continues to be the lowest. Overall, given that Tesseract is the most accurate decoder of all, and that for the physical error rates of interest its runtime is comparable with the remaining decoders, makes it a promising choice for a strong decoder. Regarding the weak decoders, we find that UF remains very fast for the lowest physical error rates at 10−410^{-4}, but its runtime quickly deteriorates for error rates in excess of 10−310^{-3}. While BP-LSD and UF are expected to have similar complexity due to the Gaussian elimination step in the verification of clusters, we see that the BP-LSD runtime is worse than UF at p≤10−3p \leq10^{-3}. We attribute this to non-optimized algorithmic implementation in the package of Ref. [66]. This issue can be resolved by improving the algorithmic implementation. Compared to the strong decoders, the average runtime of BP-LSD is lower than Tesseract for p≥5×10−4p \geq5 \times10^{-4}, whereas it is comparable or better than Beamsearch. Further, the 99.9 percentile of BP-LSD is lower compared to all strong decoders and lower compared to Beamsearch for the larger error rates.

Figure 10. Decoding times per syndrome extraction cycle for the strong decoders considered in this work, versus physical error rate. From left to right we show the performance of Beam8_230iters, Beam32_340iters, Tesseract, Relay-BP, BP-LSD and UF. The circles show average timings, and the squares show the 99.9 percentile. Horizontal dashed lines serve as a guide to the eye, and mark the 0.1 ms and 1 ms decoding times.

Decoder parameters

Here we list the parameters that we used for our decoders. For the Tesseract decoder we set:

  • det_beam=10,

  • pq_limit=50,000,

  • beam_climbing=True,

  • no_revisit_dets=True.

The beam-climbing option means that Tesseract is allowed to search for other det-beams to find a more optimal solution. The no-revisit-dets option allows for faster decoding, possibly at the expense of slightly worse performance. The priority queue (pq-limit) restricts the maximum number of nodes that are in a priority queue during the pathfinding search.

For Relay-BP we set the parameters:

  • gamma_dist_interval=(-0.175,0575),

  • gamma0=0.125,

  • pre_iter=80,

  • num_sets=300,

  • set_max_iter=60,

  • stop_nonconv=1.

The gamma parameters are optimal for the Gross code [[144, 12, 12]] according to Ref. [27]. The number of sets corresponds to the total number of legs (realizations) for Relay-BP 1 based on Ref. [27], with a maximum number of 60 iterations per leg. We further abort the search for more optimal solutions, since convergence stops if a single solution is found.

Finally, for BP-LSD we set:

  • bp_method=product_sum,

  • max_bp_iters=30,

  • ‘schedule=parallel’,

  • ‘lsd_method=lsd_cs’

  • ‘lsd_order=0’.

Cluster Distribution Characterization

We characterize the cluster distributions for each code by computing a histogram of the cluster norms for each physical probability pp. We take r=25r = 25 rounds to collect the cluster norm distributions with sliding window decoding, where we set F=d/2F = d/2 and nbuffer=dn_{\mathrm{buffer}} = d. The total number of shots is set to 100,000 for BP-LSD and 500,000 for UF. By imposing a cluster norm cutoff qthq_{\mathrm{th}}, we calculate the probability that switching events occur, based on the cumulative distribution function of cluster norms. For a desired switch rate, it is possible to directly find the necessary cluster norm cutoff for each code and physical error rate pp. The results are shown in Figure 11(a) for UF and in Figure 11(b) for BP-LSD.

Figure 11. Switch rate distributions versus cluster norm cutoff for varying physical error rates. Distributions for UF and BP-LSD are shown in (a) and (b) respectively. The switch rate of ps=0.01p_s = 0.01 is indicated with a horizontal blue line. To determine when to switch, we impose the cluster cutoff for each pp according to the desired switch rate. As pp increases, so do the cluster norms, so to sustain the desired switch rate, we must increase the cutoff.

In Figure 11, we immediately notice that the UF clusters produce less distinct switch rate distributions at different physical pp. This is because the UF clusters grow more quickly and uniformly for each pp. This is reflected on the fact that given the same switch rate for both UF and BP-LSD, the UF cluster norm cutoffs are larger.

The differences between UF and BP-LSD are due to their algorithmic cluster growth strategy. Unweighted UF grows clusters as a breadth first search, while BP-LSD intentionally adds edges according to their weight. Clusters sizes produced by BP-LSD can be calculated analytically by formulating a percolation problem [22]. Unweighted UF clusters grow uniformly dependent on the node degree.

While we expected UF runtimes to reflect the matrix inversion required on larger cluster sizes, this effect is only visible at higher pp, as we found in Appendix A.

Additional leakage simulations

Here we show the performance of Relay-BP and BP-LSD for a depolarizing rate of p=3×10−3p = 3 \times10^{-3} and pleak=10−5p_{\mathrm{leak}} = 10^{-5}. The leakage error is applied as in the main text; we consider leakage channel per qubit at the start of each QEC cycle. We consider sliding window decoding for r=25r = 25 syndrome extraction cycles, and set F=d/2F = d/2 and nbuffer=dn_{\mathrm{buffer}} = d. The logical error rate per syndrome extraction cycle is shown in Figure 12. The darker bars correspond to the performance of Relay-BP and the lighter bars to the performance of BP-LSD. Further, the hatched bars correspond to pleak=0p_{\mathrm{leak}} = 0, and the solid bars to pleak=10−5p_{\mathrm{leak}} = 10^{-5}. We note that the performance of BP-LSD deteriorates only by a few times in the presence of leakage. For Relay-BP, however, the presence of leakage can deteriorate its performance by even two orders of magnitude (e.g., for [[144,12,12]]), making it even less accurate than BP-LSD.

Bar chart showing logical error rate per syndrome extraction cycle for Relay–BP and BP–LSD across five BB codes, with hatched bars for zero leakage and solid bars for $p_{\mathrm{leak}}=10^{-5}$

Figure 12. Logical error rate per syndrome extraction cycle for Relay–BP and BP–LSD sliding window decoding, for five BB codes. The darker bars show the performance of Relay–BP, and lighter bars the performance of BP–LSD. The hatched bars correspond to zero leakage, and the solid bars to pleak=10−5p_{\mathrm{leak}} = 10^{-5}.

References

References

  1. [1]D. Aharonov and M. Ben-Or, Fault tolerant quantum computation with constant error (1996), arXiv:quant-ph/9611025 [quant-ph].
  2. [2]E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topological quantum memory, J. Math. Phys. 43, 4452 (2002).DOI
  3. [3]B. M. Terhal, Quantum error correction for quantum memories, Rev. Mod. Phys. 87, 307 (2015).DOI
  4. [4]A. Bhardwaj, M. Ma, N. Meister, R. King, D. Bluvstein, J. Preskill, M. Cain, Q. Xu, and H.-Y. Huang, High-rate qldpc processors (2026), arXiv:2607.28795 [quant-ph].
  5. [5]C. Ryan-Anderson, J. G. Bohnet, K. Lee, D. Gresh, A. Hankin, J. P. Gaebler, D. Francois, A. Chernoguzov, D. Lucchetti, N. C. Brown, T. M. Gatterman, S. K. Halit, K. Gilmore, J. A. Gerber, B. Neyenhuis, D. Hayes, and R. P. Stutz, Realization of real-time fault-tolerant quantum error correction, Phys. Rev. X 11, 041058 (2021).
  6. [6]S. Baek, S.-H. Lee, D. Min, and J. Kim, Sdqc: Distributed quantum computing architecture utilizing entangled ion qubit shuttling (2025), arXiv:2512.02890 [quant-ph].arxiv.org/abs/2512.02890
  7. [7]C. Poole, T. M. Graham, M. A. Perlin, M. Otten, and M. Saffman, Architecture for fast implementation of quantum low-density parity-check codes with optimized rydberg gates, Phys. Rev. A 111, 024333 (2025).DOI
  8. [8]Google Quantum AI and Collaborators, Quantum error correction below the surface code threshold, Nature 638, 920 (2025).
  9. [9]N. P. Breuckmann and J. N. Eberhardt, Quantum low-density parity-check codes, PRX Quantum 2, 040101 (2021).DOI
  10. [10]M. A. Tremblay, N. Delfosse, and M. E. Beverland, Constant-overhead quantum error correction with thin planar connectivity, Phys. Rev. Lett. 129, 050504 (2022).DOI
  11. [11]S. Bravyi, A. W. Cross, J. M. Gambetta, D. Maslov, P. Rall, and T. J. Yoder, High-threshold and low-overhead fault-tolerant quantum memory, Nature 627, 778 (2024).DOI
  12. [12]F. Tripier, W. C. Chung, J. Young, S. Alam, B. Bjork, A. Brodtch, F. L. Buessen, N. J. Coble, T. Dellaert, D. Maslov, M. Roetteler, E. Tham, M. M. Webster, M. Ye, J. Gamble, A. Maksymov, J. P. Marceaux, and N. Delfosse, Fault-tolerant quantum computing with trapped ions: The walking cat architecture (2026), arXiv:2604.19481 [quant-ph].arxiv.org/abs/2604.19481
  13. [13]E. Tham, M. L. Goldman, S. Debnath, A. N. Patel, J. Saraladevi, J. Nguyen, E. Nielsen, N. Pisenti, K. Wright, J. Gamble, and N. Delfosse, Breakthrough demonstration of quantum low-density parity-check codes (2026), arXiv:2606.06455 [quant-ph].arxiv.org/abs/2606.06455
  14. [14]Q. Xu, J. P. Ataides, C. A. Pattison, et al., Constant-overhead fault-tolerant quantum computation with reconfigurable atom arrays, Nat. Phys. 20, 1084 (2024).arxiv.org/abs/2308.08648
  15. [15]Z. He, A. Cowtan, D. J. Williamson, and T. J. Yoder, Extractors: Qldpc architectures for efficient pauli-based computation (2025), arXiv:2503.10390 [quant-ph].arxiv.org/abs/2503.10390
  16. [16]N. Raveendran and B. Vasić, Trapping Sets of Quantum LDPC Codes, Quantum 5, 562 (2021).DOI
  17. [17]P. Hailes, L. Xu, R. G. Maunder, B. M. Al-Hashimi, and L. Hanzo, A survey of fpga-based ldpc decoders, IEEE Communications Surveys & Tutorials 18, 1098 (2016).
  18. [18]J. Valls, F. Garcia-Herrero, N. Raveendran, and B. Vasić, Syndrome-based min-sum vs osd-0 decoders: Fpga implementation and analysis for quantum ldpc codes, IEEE Access 9, 138734 (2021).DOI
  19. [19]N. Liyanage, Y. Wu, S. Tagare, and L. Zhong, Fpga-based distributed union-find decoder for surface codes, IEEE Transactions on Quantum Engineering 5, 1 (2024).DOI
  20. [20]B. B. an K. M. Barnes, T. Bialas, et al., A real-time, scalable, fast and resource-efficient decoder for a quantum computer, Nat. Electron. 8, 84 (2025).DOI
  21. [21]N. Delfosse and N. H. Nickerson, Almost-linear time decoding algorithm for topological codes, Quantum 5, 595 (2021).DOI
  22. [22]T. Hillmann, L. Berent, A. O. Quintavalle, J. Eisert, R. Wille, and J. Roffe, Localized statistics decoding for quantum low-density parity-check codes, Nat. Commun. 16, 8214 (2025).DOI
  23. [23]P. Panteleev and G. Kalachev, Degenerate Quantum LDPC Codes With Good Finite Length Performance, Quantum 5, 585 (2021).DOI
  24. [24]M. Gökduman, H. Yao, and H. D. Pfister, Erasure Decoding for Quantum LDPC Codes via Belief Propagation with Guided Decimation, in 2024 60th Annual Allerton Conference on Communication, Control, and Computing (2024) pp. 1–8, arXiv:2411.08177 [cs.IT].DOI
  25. [25]M. C. Löbl, S. X. Chen, S. Paesani, and A. S. Sørensen, Breadth-first graph traversal union-find decoder (2024), arXiv:2407.15988 [quant-ph].arxiv.org/abs/2407.15988
  26. [26]N. Delfosse, V. Londe, and M. E. Beverland, Toward a union-find decoder for quantum ldpc codes, IEEE Transactions on Information Theory 68, 3187 (2022).arxiv.org/abs/2103.08049
  27. [27]T. Muller, T. Alexander, M. E. Beverland, M. Buhler, B. R. Johnson, T. Maunzer, and D. Vandeth, Improved belief propagation is sufficient for real-time decoding of quantum memory (2025), arXiv:2506.01779 [quant-ph].arxiv.org/abs/2506.01779
  28. [28]T. Maurer, M. Bühler, M. Kröner, F. Haverkamp, T. Müller, D. Vandeth, and B. R. Johnson, Real-time decoding of the gross code memory with fpgas (2025), arXiv:2510.21600 [quant-ph].arxiv.org/abs/2510.21600
  29. [29]Y. Hong, Quantum ldpc codes with design rate 1/5 and good performance below 1000 physical qubits (2026), arXiv:2607.27644 [quant-ph].arxiv.org/abs/2607.27644
  30. [30]R. Toshio, K. Kishi, J. Fujisaki, H. Oshima, S. Sato, and K. Fujii, Decoder switching: Breaking the speed-accuracy tradeoff in real-time quantum error correction (2025), arXiv:2510.2522 [quant-ph].arxiv.org/abs/2510.25222
  31. [31]S.-H. Lee, L. H. English, and S. D. Bartlett, Efficient post-selection for general quantum ldpc codes, npj Quantum Inf. 12, 96 (2026).DOI
  32. [32]M. Ye, D. Wecker, and N. Delfosse, Beam search decoder for quantum low-density parity-check codes, PRX Quantum 7, 033002 (2026).DOI
  33. [33]A. Meinking and E. Takou, “realtime decoder switching package”, https://github.com/acatspirit/realtime_decoding_qldpc (2026).
  34. [34]J. Viszlai, W. Yang, S. F. Lin, J. Liu, N. Nottingham, J. M. Baker, and F. T. Chong, Matching generalized-bicycle codes to neutral atoms for low-overhead fault-tolerance, in 2025 IEEE International Conference on Quantum Computing and Engineering (QCE), Vol. 01 (2025) pp. 688–699.
  35. [35]L. Skoric, D. E. Browne, K. M. Barnes, N. I. Gillespie, and E. T. Campbell, Parallel window decoding enables scalable fault tolerant quantum computation, Nat. Commun. 14, 7040 (2023).DOI
  36. [36]M. Kang, Y. Lin, H. Yao, M. Gö¬k¬du¬man, A. Meinking, and K. R. Brown, QUITS: A modular Qldpc code circuit simulator, Quantum 9, 1931 (2025).DOI
  37. [37]H. Bombín, C. Dawson, Y.-H. Liu, N. Nickerson, F. Pastawski, and S. Roberts, Modular decoding: parallelizable real-time decoding for quantum computers (2023), arXiv:2303.04846 [quant-ph].arxiv.org/abs/2303.04846
  38. [38]O. Higgott, Pymatching: A python package for decoding quantum codes with minimum-weight perfect matching, ACM Trans. Quantum Comput. 3, 10.1145/3505637 (2022).arxiv.org/abs/2105.13082
  39. [39]O. Higgott, T. C. Bohdanowicz, A. Kubica, S. T. Flammia, and E. T. Campbell, Improved decoding of circuit noise and fragile boundaries of tailored surface codes, Phys. Rev. X 13, 031007 (2023).DOI
  40. [40]C. Gidney, M. Newman, P. Brooks, and et al., Yoked surface codes, Nature Communications (2024).arxiv.org/abs/2312.04522
  41. [41]H. Bombín, M. Pant, S. Roberts, and K. I. Seetharam, Fault-tolerant postselection for low-overhead magic state preparation, PRX Quantum 5, 010302 (2024).DOI
  42. [42]S. Wolanski and B. Barber, Introducing ambiguity clustering: An accurate and efficient decoder for qldpc codes, in 2024 IEEE International Conference on Quantum Computing and Engineering (QCE), Vol. 02 (2024) pp. 402–403.
  43. [43]C. Gidney, Stim: a fast stabilizer circuit simulator, Quantum 5, 497 (2021).DOI
  44. [44]M. Wang and F. Mueller, Coprime Bivariate Bicycle Codes and Their Layouts on Cold Atoms, Quantum 10, 2009 (2026).DOI
  45. [45]M. Kang, W. C. Campbell, and K. R. Brown, Quantum error correction with metastable states of trapped ions using erasure conversion, PRX Quantum 4, 020358 (2023).DOI
  46. [46]B. Zhang, G. Liu, G. Bornet, S. P. Horvath, P. Peng, S. Ma, S. Huang, S. Puri, and J. D. Thompson, Logical qubits with erasure conversion using metastable neutral atoms, Nat. Phys. 22, 910–916 (2026).DOI
  47. [47]L. A. Beni, O. Higgott, and N. Shutty, Tesseract: A search-based decoder for quantum error correction (2025), arXiv:2503.10988 [quant-ph].arxiv.org/abs/2503.10988
  48. [48]D. Grbic, L. A. Beni, and N. Shutty, Accelerating the tesseract decoder for quantum error correction (2026), arXiv:2602.02985 [quant-ph].arxiv.org/abs/2602.02985
  49. [49]S. Huang, M. Newman, and K. R. Brown, Fault-tolerant weighted union-find decoding on the toric code, Phys. Rev. A 102, 012419 (2020).DOI
  50. [50]C. Lösch­nauer, J. Mosca Toba, A. Hughes, S. King, M. Weber, R. Srinivas, R. Matt, R. Nourshargh, D. Allcock, C. Ballance, C. Matthiesen, M. Malinowski, and T. Harty, Scalable, high-fidelity all-electronic control of trapped-ion qubits, PRX Quantum 6, 040313 (2025).DOI
  51. [51]A. C. Hughes, R. Srinivas, C. M. Lösch­nauer, H. M. Knaack, R. Matt, C. J. Ballance, M. Malinowski, T. P. Harty, and R. T. Sutherland, Trapped-ion two-qubit gates with ≈99.99% fidelity without ground-state cooling (2025).arxiv.org/abs/2510.17286
  52. [52]A. Ransford, M. S. Allman, J. Arkinstall, et al., A 98-qubit trapped-ion quantum computer with all-to-all connectivity, Nature 655, 81–86 (2026).DOI
  53. [53]F. Motzoi, J. M. Gambetta, P. Rebentrost, and F. K. Wilhelm, Simple pulses for elimination of leakage in weakly nonlinear qubits, Phys. Rev. Lett. 103, 110501 (2009).DOI
  54. [54]J. M. Gambetta, F. Motzoi, S. T. Merkel, and F. K. Wilhelm, Analytic control methods for high-fidelity unitary operations in a weakly nonlinear oscillator, Phys. Rev. A 83, 012308 (2011).
  55. [55]F. Motzoi and F. K. Wilhelm, Improving frequency selection of driven pulses using derivative-based transition suppression, Phys. Rev. A 88, 062318 (2013).DOI
  56. [56]E. Hyyp­pä, A. Vepsäläinen, M. Papič, C. F. Chan, S. Inel, A. Landra, W. Liu, J. Luus, F. Marxer, C. Ockeloen-Korppi, S. Orbell, T. Tarasinski, and J. Heinsoo, Reducing leakage of single-qubit gates for superconducting quantum processors using analytical control pulse envelopes, PRX Quantum 5, 030353 (2024).
  57. [57]J. A. K. C. Miao, M. McEwen et al., Overcoming leakage in quantum error correction, Nat. Phys. 19, 1780 (2023).DOI
  58. [58]T. He, W. Lin, R. Wang, et al., Experimental quantum error correction below the surface code threshold via all-microwave leakage suppression, Phys. Rev. Lett. 135, 260601 (2025).DOI
  59. [59]Y. Xin, S. L. M. v. d. Meer, M. Serra-Peralta, T. H. F. Vroomans, M. Finkel, H. M. Veen, M. W. Beekman, and L. DiCarlo, Improved error correction with leakage reduction units built into qubit measurement in a superconducting quantum processor, PRX Quantum (2026).DOI
  60. [60]deltakit-stim, https://github.com/Deltakit/deltakit-stim (2025).
  61. [61]Y.-H. Chen and C. H. Baldwin, Randomized benchmarking with leakage errors, Physical Review Research 7, 10.1103/8jsz-6ws9 (2025).DOI
  62. [62]A. Lavasani, A. P. Reed, J. M. Dreiling, A. J. Park, M. Mills, M. Puviani, G. Matos, M. S. Allman, N. Berthusen, N. C. Brown, V. E. Colussi, B. Estey, C. Foltz, D. Gresh, R. Hag­shenas, A. Isanaka, N. Kotibhaskar, A. Ransford, C. Ryan-Anderson, B. Neyn­huis, D. Hayes, T. S. Metodi, and A. C. Potter, Quantum error correction well below the color code threshold (2026), arXiv:2610.24077 [quant-ph].arxiv.org/abs/2610.24077
  63. [63]M. Ye, A. Maksymov, and N. Delfosse, Real-time decoder for a mag­eq­up quantum computer using a single cpu (2026), arXiv:2608.25027 [quant-ph].arxiv.org/abs/2608.25027
  64. [64]A. B. Ziad, A. Zalawadiya, C. Topal, J. Camps, G. P. Geher, M. P. Stafford, and M. L. Turner, Local clustering decoder as a fast and adaptive hardware decoder for the surface code, Nat. Commun. 16, 11048 (2025).DOI
  65. [65]A. Aydin, F. Tham, N. Delfosse, and M. Ye, Soft decoding for quantum ldpc codes with experimental validation (2026), arXiv:2609.26958 [quant-ph].arxiv.org/abs/2609.26958
  66. [66]J. Roffe, LDPC: Python tools for low density parity check codes (2022).

Paper details

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

views · 12

downloads · 0

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

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents