Manuscript Offprint
arXiv:2610.13879GPU-Based Parallel BP Decoding for Quantum LDPC Memory
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Quantum low-density parity-check (qLDPC) decoding requires reliable corrections and low latency over long syndrome histories. We extend BP-SF, an oscillation-guided belief-propagation (BP) decoder with independent syndrome-flip trials, by introducing windowed and streaming operations. Our CUDA implementation combines disordered-memory retries, sliding windows, correlation-aware graphs, and layered scheduling. Circuit-level simulations test fixed-basis memory and complete logical Pauli-frame recovery. On the bivariate bicycle code at physical error rate , parallel BP-SF reduces 99.9th-percentile call latency by relative to an eight-chain Relay-BP GPU baseline on 100,000 matched samples for which every tested method's initial BP stage fails within 80 iterations. Windowed BP-SF maintains a flat logical error rate and nearly constant per-round compute time through 512 rounds, reaching a speedup over monolithic decoding. In 512-round full-frame streaming decoding with 2.97-ms syndrome arrivals, layered BP-SF on a transformed joint graph with 20 retries reduces 99.9th-percentile correction-release age from 166.29 to 36.25 ms relative to the joint graph with flooding updates and 100 retries. These results connect parallel BP post-processing to lower decoding costs and earlier correction release in streaming quantum memory.
Keywords
Quantum error correction, quantum LDPC codes, belief propagation, GPU computing, sliding-window decoding
Yanbo Zhao
Department of Computer Science
North Carolina State University
Raleigh, North Carolina, USA
Frank Mueller
Department of Computer Science
North Carolina State University
Raleigh, North Carolina, USA
potential to encode more logical qubits than surface codes while maintaining a low error rate [3, 28, 38]. Their decoding problem, however, remains challenging. Reliable operation requires errors to be removed accurately and at a rate compatible with the QEC cycle. In practice, the decoder must keep pace with syndrome extraction to avoid a growing data backlog [36], making both algorithmic efficiency and implementation speed essential.
Belief propagation (BP) is an attractive starting point because its sparse, and local message updates support efficient parallel implementations, as established by classical LDPC decoders [13, 32, 35, 48]. For qLDPC codes, however, degeneracy and trapping sets can leave BP oscillating between ambiguous estimates [31]. BP with ordered statistics decoding (BP-OSD) addresses failed attempts through algebraic post-processing [28, 33], but the Gaussian-elimination stage adds computational cost. Localized statistics decoding, ambiguity clustering, and stabilizer inactivation reduce the scope of this algebraic work [16, 21, 44]. Alongside these approaches, progress in BP-based decoding can be understood through three complementary choices: how messages evolve, how the decoding graph is represented, and how multiple decoding attempts are organized.
The first choice concerns BP updates and scheduling. Memory-based updates feed information from previous iterations into the current beliefs [5]. Disordered memory BP (DMem-BP) varies the memory strength across nodes to help break symmetries that stall uniform updates [27]. Layered schedules change when new information becomes available to neighboring nodes and can mitigate symmetric trapping sets [31]. Other methods guide BP by freezing selected variables or modifying their priors [29, 45]. BP with bias using oscillating trapping sets (BP-OTS), for example, identifies unreliable variables from their oscillations and posterior beliefs, then assigns a prescribed negative prior LLR [6]. This introduces a bias-strength parameter in addition to the choice of variables. These methods change the trajectory of an individual decoding attempt while retaining message passing as the main computation.
The second choice is the graph representation. Changing the graph can remove structures that make local inference unreliable. SymBreak splits selected parity checks to disrupt degeneracy-induced symmetries [47], while ordered Tanner forest decoding removes cycles before rerunning BP [12]. Under circuit-level noise, the representation also determines whether the decoder captures correlations between X- and Z-type errors. Joint detector models retain these correlations, and the GARI transformation rewires the joint graph to eliminate four-cycles involving mixed-error mechanisms while preserving the decoding problem [25]. Graph design thus complements changes to the update rule, i.e., it changes the dependencies on which those updates operate.
The third choice is trial diversity and ensembles. Multiple attempts can explore alternatives that a single BP trajectory misses. Check-agnosia varies selected priors [15], automorphism ensembles transform the decoding input [24], and Relay-BP passes posterior information through successive DMem-BP runs with different memory strengths [27]. Related search-based methods, including guided decimation guessing and BP-guided beam search, explore multiple error hypotheses using BP information [19, 46]. The organization of these attempts determines how much work can run concurrently and when a result can be returned. The three choices are therefore not separate algorithm families: GARI, for example, combines a transformed graph with layered updates and an ensemble of randomized schedules [25].
Our previous work [42] introduced BP with syndrome flipping (BP-SF) within this ensemble approach. An unsuccessful initial BP run identifies frequently oscillating hard-decision bits. Sparse trial vectors supported on these locations generate perturbed syndromes for independent BP attempts, and the first syndrome-valid result is mapped back to the original problem (Fig. 1). The syndrome perturbation retains the channel LLRs and avoids an additional prescribed bias magnitude. Once the trial inputs are prepared, the attempts can execute concurrently without Gaussian-elimination post-processing.
BP-SF separates the generation of trial inputs from the message-passing algorithm used within each trial. This separation gives us a way to bring recent improvements in BP updates and graph representations into the same parallel decoding strategy. In this article, we extend our prior work [42] with a CUDA implementation using posterior-initialized DMem-BP retries, then study joint correlated-error models, the GARI transformation, and layered scheduling within BP-SF. The question is how these choices affect the accuracy-latency trade-off, including the long-running calls that can delay subsequent corrections.
For quantum memory, that question extends beyond an individual decoding call. Repeated syndrome extraction grows the decoding graph, while waiting for more rounds delays the correction of earlier errors. Sliding-window decoding bounds the active temporal region and commits corrections incrementally [19, 22]. FPGA implementations of Relay-BP with windowing and GARI transformations also demonstrate the importance of matching decoder organization to the execution platform [1, 26]. Here, we combine windowing with GPU BP-SF and evaluate both fixed-basis memory and recovery of the complete logical Pauli frame. We measure not only decoding time, but also correction-release delay as syndrome data arrive, so that the effects of lookahead and computational queuing are included.
Building on the BP-SF ensemble first introduced in [42], we make three additional contributions:
GPU implementation with reduced tail latency: We combine BP-SF with posterior-initialized disordered-memory BP in a parallel GPU implementation. This extends BP-SF beyond its original constituent decoder while preserving independent trial execution. On the code at , the implementation reduces 99.9th-percentile call latency by relative to the tested eight-chain Relay-BP GPU configuration on 100,000 matched samples for which every tested method's native initial BP stage fails within 80 iterations.
Scalability through windowed BP-SF: We integrate BP-SF into a sliding-window decoder and characterize how core and buffer lengths balance accuracy, computation, and correction delay. On the 144-code fixed-basis memory benchmark at , windowing mitigates the convergence degradation of monolithic decoding, maintaining a logical error rate near and nearly constant per-round compute time through 512 rounds. At that length, it achieves a compute-time speedup.
Full-frame correction: We explore different constituent decoding graphs on BP-SF and show that the choice of graph could substantially reduce the trial budget and latency. For twelve-round full-frame recovery, layered BP-SF on the GARI graph with 20 retries achieves similar measured logical accuracy to the joint graph with flooding updates with 100 retries, while reducing mean latency by . In a 512-round long memory experiment, these configurations yield 99.9th-percentile correction-release ages of 36.25 and 166.29 ms, respectively.
2 Background
2.1 Quantum LDPC Codes
A stabilizer code specifies valid encoded states through a set of commuting quantum parity checks, represented by Pauli operators. Each check returns +1 on a valid encoded state while errors may change some outcomes to -1. Recording these outcomes as binary values produces the syndrome from which the decoder infers a correction. Let S denote the group generated by these checks. The code space C consists of states left unchanged by every element of S:
An stabilizer code encodes logical qubits into physical qubits and has independent stabilizer generators. The distance, , is the minimum number of qubits on which a Pauli error can act nontrivially while changing the encoded information without changing any check outcomes. With ideal syndrome measurements, the code can in principle correct any error affecting at most qubits.
Calderbank–Shor–Steane (CSS) codes separate the stabilizer generators into two types: checks containing only X and identity operators, and checks containing only Z and identity operators. These checks are represented by binary parity-check matrices and , respectively. Each row represents a check, and each column represents a physical qubit. A nonzero entry indicates that the check acts on that qubit. For example, the row in represents the check . To ensure that all checks commute, every X-type check must overlap every Z-type check on an even number of qubits. In matrix form, this requirement is , with arithmetic performed modulo two. The two check types provide complementary error information. An X error reverses the outcomes of the Z-type checks that involve the affected qubit, while a Z error reverses the corresponding X-type check outcomes. This structure allows the two error components to be decoded separately.
(a) Identify unreliable bits
Input syndrome

Initial BP
valid
Return
estimate
not converged
Hard-decision history (schematic)
successive iterations
Select most oscillating bits
Candidate set
Oscillations are clues,
not known error locations.
(b) Shift and run parallel trials
Sample sparse supported on

Sample sparse supported on
Short BP trial 1
running ...
Short BP trial 2
valid estimate
Short BP trial 3
running ...
Independent trials on CPU / GPU
Constituent decoder: BP or DMem-BP
(c) Accept and map back
Each trial checks its own syndrome:
Accept the first valid trial
Undo the trial shift
Original syndrome restored
No valid trial within budget: report failure.
Figure 1: Overview of BP-SF. (a) An initial BP attempt returns immediately if its estimate satisfies the input syndrome; otherwise, hard-decision oscillations identify a candidate set . (b) Sparse trial vectors supported on generate shifted syndromes for independent BP trials. (c) The first syndrome-valid trial is mapped back by undoing its trial vector.
using and , respectively. However, separate decoding need not capture all available information because a error contains both components, creating correlations that a joint decoder can exploit.
For a CSS-type qLDPC code family, both parity-check matrices have bounded row and column weights as the code size increases. Equivalently, each check involves only a bounded number of qubits, and each qubit participates in only a bounded number of checks. This limits the number of qubit-check interactions required for syndrome extraction and gives the decoder a sparse representation of the error constraints. The message-passing decoders considered in this paper operate on this sparse structure.
2.2 Syndrome Decoding and Belief Propagation
The decoder receives a measured syndrome and prior information about the errors that may have occurred. Let describe parity constraints on binary error variables, and let be the syndrome. An error estimate, , is syndrome-consistent if . For CSS decoding, the variables can represent the or error components on physical qubits. Under circuit-level noise, the same binary formulation instead uses error mechanisms as variables and detector outcomes as constraints.
Syndrome consistency alone generally leaves many possible estimates. For independent binary errors with prior probabilities, , the most likely individual error pattern is
Quantum correction does not require identifying the exact physical error. A correction succeeds whenever its combination with the actual error acts trivially on the encoded information. In particular, errors that differ by a stabilizer have the same action on the code space and belong to the same equivalence class. An optimal quantum decoder therefore selects the most probable class: Given a syndrome, , the optimal decoding problem considering degeneracy becomes
where [E] denotes the equivalence class of errors under the stabilizer group and is the total probability of all errors in that class. While the classical decoding problem in Eq. (2) is NP-hard [2], its quantum counterpart in Eq. (3) is even more complex, being #P-complete [23]. These complexity results make exact decoding impractical at useful system sizes. Practical decoders consequently approximate the optimum in a way that preserves performance under the intended noise model.
BP provides such an approximation by exchanging messages on the Tanner graph of . A variable node, , represents an error variable, a check node, , represents a parity constraint, and an edge connects them when . We write and for their respective neighbor sets. BP updates beliefs about individual error variables rather than explicitly computing the probability of every stabilizer equivalence class. Sparsity keeps BP updates efficient, but short cycles in the graph deteriorate BP decoding by producing circulating messages. What's more, symmetric trapping sets can also prevent convergence [31].
We use normalized min-sum (NMS), a low-complexity BP variant with real-valued messages. A positive message favors an error variable being zero, a negative message favors one, and its magnitude expresses confidence. The decoder uses the following flooding schedule, in which all messages of one type are updated before proceeding to the next type.
(1) Initialization: For a variable with prior error probability , define the channel log-likelihood ratio (LLR)
Initialize every variable-to-check message as . The superscript denotes the iteration, starting at .
(2) Check-to-variable update: Each check uses the messages from its other neighbors to determine what the measured parity implies about a particular variable:
(5)
The sign combines the neighboring decisions with the required syndrome bit . The magnitude is set by the least-confident contributing neighbor and scaled by the normalization factor .
(3) Variable-to-check update: Each variable combines its channel LLR with the incoming check messages, excluding the destination check:
Excluding the destination prevents its own message from being immediately returned as new information.
(4) Decision and convergence test: The decoder combines all incoming check messages to form the soft output
This output is an approximate belief and the hard decision is
The decoder returns the estimate if ; otherwise, it continues until the iteration budget is exhausted.
Disordered memory BP (DMem-BP) [27] replaces the fixed channel LLR in Eqs. (6) and (7) with a time-dependent LLR . At iteration , this LLR mixes the channel LLR with the output LLR from the previous iteration, weighted by a random memory strength, . More specifically, it initializes and , and then updates for ,
Here, denotes the output LLR at iteration . The memory strength is sampled once for each variable node and held fixed throughout a run. The output (marginal) LLR and outgoing V2C messages become
(10)
Setting every recovers ordinary BP, while a uniform with gives Mem-BP, the binary version of Chen et al.'s EWAInit-BP [5]. Varying across nodes, including negative values, can break symmetries that trap uniform memory updates. Equation (9) shows that negative memory reverses the feedback from the previous output LLR's deviation from the channel LLR.
2.3 GARI Transformation
Under circuit-level noise, a single error mechanism can affect both X- and Z-type detectors. Joint decoding captures the correlations between these two sectors, but their shared connections can introduce short cycles that hinder BP. Graph augmentation and rewiring for inference (GARI) [25] addresses this problem by introducing auxiliary variables and reorganizing the decoding graph.
For the joint detector model considered here, the decoding matrix is
Its columns correspond to error variables , and its rows correspond to detector outcomes , with . The subscripts on and identify the detector types: X-type detectors respond to Z-type errors, and vice versa. The primed blocks describe the contributions of mixed, or Y-type, mechanisms to both sectors.
In this model, each column of matches a column of , and similarly for and because a Y-error can be decomposed as an X- and Z-error on the same place. Binary selection matrices and record these matches, so that and . GARI introduces effective error variables
These variables separate the contributions of Y-errors to Z- and X-sector. The physical constraints therefore become and .
Retaining the original variables and enforcing Eq. (12) gives the augmented matrix
The upper row blocks enforce the measured detector outcomes. The lower blocks are virtual checks with zero syndromes, which enforce the auxiliary-variable definition in Eq. (13). The resulting graph represents the same decoding problem but removes the four-cycles involving the mixed-error variables. BP can consequently behave differently on the transformed graph, even though the underlying error constraints are equivalent. GARI thus provides a graph representation on which BP-based decoding, including BP-SF, can operate.
2.4 Sliding-Window Decoding
Repeated syndrome extraction produces a decoding graph that grows along the time direction. Monolithic decoding processes the entire graph at once, whereas sliding-window decoding processes overlapping temporal regions and finalizes older corrections incrementally. This approach has also been studied for qLDPC codes [19, 22].

Figure 2: Schematic workflow for sliding-window decoding. Decode the core and buffer together, but finalize only the older core estimates. As new syndrome data arrive, slide the window forward and revisit the buffer with more context.
A window contains time blocks into an older core of C blocks and a newer buffer of B blocks, as illustrated in Fig. 2. The decoder estimates errors in both regions but commits only the core estimates, meaning that these decisions are finalized. The buffer provides later detector outcomes that help resolve errors near the core boundary. Its estimates remain tentative and are reconsidered when the window advances. In this way, each decoding step uses more temporal context than the region for which it finalizes decisions.
Before decoding the next window, the contribution of the committed correction must be removed from the syndrome. The resulting residual syndrome contains the detector outcomes still unexplained by the committed estimates. Using the complete syndrome record s for notation, let denote this residual before window j, with . If contains the newly committed estimates, extended by zeros outside the core, then
Here, H is the detector–error mechanism matrix. The update includes the committed correction’s effects on buffer checks, so that subsequent windows account for decisions already made. A streaming decoder evaluates this relation only for detector outcomes that have arrived. The window advances by C blocks after each core is committed. At the final extraction boundary, the remaining tail is decoded and committed using the available boundary information. Successive windows are processed sequentially in this scheme, while BP-SF trials can run in parallel within each window.
3 BP Behavior Analysis: A Case Study
We use the “gross” code from as a concrete example for studying BP on qLDPC systems. The purpose of the case study is to expose patterns that can guide decoder design. We use the min-sum update in Eq. (5) with the iteration-dependent normalization factor , where denotes the current iteration. This setting is used consistently in the analysis that follows.
3.1 Number of Iterations
Fig. 3 measures how quickly BP resolves syndromes under circuit-level noise. We simulate 10,000 samples at each of p = 0.001 and p = 0.002, representative physical error rates below threshold, and

Figure 3: BP convergence survival on the code under circuit-level noise with the fraction of samples not yet converged by each iteration. We use 10,000 samples per physical error rate and a maximum of 1,000 iterations.
record the iterations required by every sample. We plot the survival rate, defined as the fraction of samples that have not converged by iteration i, equal to one minus the cumulative convergence rate. Survival here refers to BP non-convergence and the tail at the iteration limit counts samples that exhaust the budget without converging.
The distribution in Fig. 3 shows that most syndromes converge after only a few iterations. At p = 0.001, the mean is 8.9 iterations even though the decoder allows up to 1,000. Increasing the physical error rate to p = 0.002 lengthens the tail but does not substantially change the typical case. Samples that survive the early iterations rarely become easier merely by increasing the iteration limit. This motivates changing the decoder input instead of repeatedly extending one BP trajectory. If the perturbed inputs offer partially independent opportunities for success, parallel trials can lower the logical error rate with a latency determined by the slowest active stage and the available hardware.
3.2 Oscillation
Prior work [6, 31] links BP failures to trapping sets, degeneracy, and the resulting ambiguity of iterative messages. Chytas et al. [7] analyze min-sum message oscillations associated with symmetric stabilizers under an isolation assumption and exploit previous-iteration messages to modify the update rule. Here, we instead examine hard-decision oscillations as a signal for selecting post-processing trials. We track how often output bits alternate between zero and one to determine whether they identify the locations most relevant to a decoding failure. For each failed run, we count how often every bit flips between consecutive hard decisions and select the highest-count bits as the candidate set . We denote the support of the true error by and measure the overlap of with that

Figure 4: Precision and recall probabilities of candidate bit selection on the code. We evaluate the correlation between candidate bits and actual error locations by identifying the top 50 most frequently flipped bits among approximately 8,700 error mechanisms (fewer than 50 are selected if some of the top-ranked bits are never flipped). The decoder is run with a maximum of 50 iterations, and statistics are collected over 1,000 decoding failures. This analysis reveals how well bit-level oscillation can serve as a heuristic for error localization.
support using precision and recall:
Fig. 4 reports precision and recall when min-sum BP fails to decode a syndrome. Even when the final estimate is incorrect, the oscillation pattern identifies a useful subset of the actual error locations, especially at low physical error rates. The precision of the oscillation set is much larger than the raw physical error rate, making a more informative target than random guessing. As the physical error rate rises, recall falls because the number of errors grows while the candidate-set size remains fixed.
To test whether oscillations improve decoding rather than merely correlate with errors, we compare two ensembles that reverse one prior LLR per additional trial, equivalently , which can also be proved to be equivalent to flipping the supporting syndrome bits. Candidate positions are selected either from the most oscillating bits or at random. This comparison tests where to perturb while keeping the perturbation rule fixed.
Fig. 5 shows, for different physical errors rates (x-axis) that oscillation-guided selection (blue) lowers the logical error rate (LER) per round (y-axis) relative to random selection (red) and BP with 1,000 iterations (green) with the same configured trial budget, especially at low . Thus, candidate selection matters beyond simply

Figure 5: Effect of candidate selection on the code under circuit-level noise. “5 Trials” denotes one initial BP attempt and up to four additional trials upon failure, with at most 200 iterations per attempt. Each additional trial reverses one prior LLR. Candidate positions are the four most oscillating bits or are selected at random. BP1000 uses a single attempt with at most 1,000 iterations.
adding decoding attempts. This result motivates using oscillation-guided candidate selection to construct the independent trials described next.
4 Oscillation-Guided Syndrome-Flipping Decoding
The candidate-selection result motivates the BP-SF procedure introduced in our prior work [42], which we review here as the basis for the GPU and windowed extensions.
As illustrated in Fig. 1, our decoder returns the first syndrome-valid result after reversing its trial perturbation, restoring consistency with the original syndrome. Algorithm 1 gives the complete procedure. More specifically, during the initial BP attempt, we record the oscillation score
where is the initial iteration limit, is the hard decision from the channel LLR, and the sum counts changes using ordinary integer arithmetic. If the attempt does not converge, TopK selects up to eligible variables with the highest positive scores. For each retry, Sample generates a binary trial vector supported on , with a weight between one and . The allocation of retries among flip weights is specified by the experimental configuration. The final XOR reverses the trial perturbation: Whenever , the returned estimate satisfies . Thus, each trial explores a perturbed decoding problem while its accepted output remains consistent with the original syndrome. All decoder calls use the same matrix and channel LLRs. InitialBP returns a convergence flag, an error estimate, and the oscillation scores. TrialDecode
Algorithm 1: Oscillation-guided BP-SF
Input: Syndrome s; candidate limit K; maximum flip weight ; retry budget ; iteration limits
Result: Syndrome-consistent estimate or decoding failure (converged, ) InitialBP( );
if converged then return ; end
;
if then return decoding failure; end
parallel for ; ; (converged , ) TrialDecode( ); if converged then return globally ; end end
return decoding failure;
runs the configured BP or DMem-BP decoder for at most iterations, including the configured memory initialization from the initial attempt. A global return selects the first converged trial and stops the remaining trials.
The motivation behind this first-convergence stopping is as follows: In the data-qubit Pauli picture, two estimates with the same syndrome differ by either a stabilizer or a nontrivial logical operator, and in the latter case, correction is off at least at d locations. Consequently, a syndrome-consistent estimate whose difference from the most likely error has weight below d implements the same logical correction, even if its individual likelihood is lower. A similar first-convergence rule is used by the GARI ensemble [25]. In addition, the results in [27] also support that the return of waiting for more completes is less significant.
We note that targeted trial generation is related to many ensemble-based decoding algorithms, e.g., Chase decoding [4], which constructs test patterns from channel reliabilities for repeated hard-decision decoding. AutDEC [24] also transforms syndromes, but uses code automorphisms to construct its BP ensemble. Multiple-bases BP list decoding [30] instead varies the parity-check representation and applies a decision rule to the resulting candidate list. In general, ensembles are a standard way to improve decoders by generating several modified inputs and selecting a result using a likelihood or weight criterion [4, 14, 20, 43]. Independent trials can execute concurrently, so their cost can be exchanged for latency when hardware resources are available.
5 Implementations
GPU implementations of BP exploit parallel message updates, sparse graph storage, and concurrent decoding [8, 17]. We use these established techniques to implement the initial BP attempt and speculative trials of Algorithm 1 in CUDA. The backend uses single-precision floating-point messages and exposes a Python interface for configuring the decoder and submitting syndromes.
The parity-check matrix is stored on the device in compressed sparse row form, together with a variable-oriented adjacency index and an edge map for accessing the same message arrays from either direction. The graph and channel LLRs remain on the device, and message buffers are allocated once and reused across decoding requests. During flooding iterations, small groups of threads cooperate on each check-node update, using warp shuffle operations to reduce message magnitudes and signs. Variable-node updates distribute the output-LLR and outgoing-message calculations across threads. The initial BP stage executes its iteration loop within a cooperative kernel, using grid-wide barriers between dependent update phases and tracking hard-decision changes on the device.
If the initial attempt fails, the host launches device-side selection of the most oscillating bits, followed by the speculative stage. Each trial is assigned to one CUDA block, which chooses its flip positions, constructs the perturbed syndrome using column adjacency lists, and runs BP with its own message state. All trials share the read-only graph and channel LLRs. A trial's syndrome is kept in shared memory when it fits the configured shared-memory budget, with a global-memory buffer used otherwise. Block-wide barriers enforce the update order within each trial. The BP iteration loop requires no host intervention.
A shared device-wide success flag implements BP-SF's first-success selection rule. A block whose estimate passes the syndrome check claims the result using an atomic compare-and-swap operation, writes the correction, and reverses its trial flips. Other blocks check the flag at iteration boundaries and stop when a result is available. The host retrieves the result after the kernel completes.
For configurations using DMem-BP, each trial additionally maintains the previous output LLRs and fixed node-specific memory strengths , applying Eq. (9) during variable-node updates. The previous output LLRs can be initialized from the channel LLRs or from the failed initial BP attempt, where edge messages restart from the channel LLRs in both cases. The trials then evolve independently. This implementation supports evaluating syndrome flipping with either ordinary BP or DMem-BP as the component decoder. The source code is available at GitHub(TBD).
6 Simulation Results
We evaluate BP-SF from individual decoding calls to streaming quantum memory. The experiments first establish its accuracy-latency trade-off, then examine how windowing, graph representation, and message scheduling shape the time at which corrections become available.
6.1 Experimental Setup
We generate syndrome-extraction circuits with Stim [18] and apply circuit-level noise, including faults in gates and measurements. Figures 6 and 7 use fixed-basis memory experiments. Figure 8 evaluates both components of the logical Pauli frame, using ideal initial and final X/Z stabilizer extraction without destructive data readout. These two protocols have different boundary and success conditions. Comparisons of decoder accuracy are made within each protocol.
The baseline comparison uses noisy extraction rounds, and the long-memory studies extend to 512.
For a memory experiment of noisy rounds, we report the effective logical error rate per round as
where counts both decoder non-convergence and converged corrections with incorrect logical observables. The normalization is per noisy round, rather than per logical qubit. LER error bars are nominal Wilson intervals transformed to this scale.
All GPU timing results use an NVIDIA GeForce RTX 5060 Ti. The survival rate estimates the probability of a shot that is still under decoding at time , defined as . Figure 6(c) depicts calls on samples for which every tested method's native initial BP stage fails within 80 iterations, and Fig. 8(b) reports unfiltered samples. For windowed operation, we distinguish decoder compute time from correction-release age, which also includes waiting for core/buffer data and queuing. Accuracy and timing use separate sample sets. Timing boundaries and sampling procedures are detailed in Appendix A.
6.2 Accuracy-Latency Trade off on Monolithic Decoding
Figure 6 compares BP-SF with plain BP, BP-OSD, and Relay-BP [27]. BP-SF combines an ordinary BP attempt with 100 posterior-initialized DMem-BP retries. The accuracy comparison uses a single Relay-BP chain of 300 memory-parameter sets, BP1000 allows 1,000 BP iterations, and BP1000-OSD10 adds an order-10 OSD.
On the [[144, 12, 12]] code, BP-SF and Relay-BP achieve LERs within approximately a factor of three over . At , BP-SF reaches per round, an reduction relative to BP1000 and a reduction relative to BP1000-OSD10. On the [[288, 12, 18]] code, Relay-BP is more accurate: BP-SF's LER is higher at the three tested error rates and also exceeds the BP1000-OSD10 reference. The following latency and system-level studies focus on the 144 code, where BP-SF provides a competitive accuracy operating point.
Parallel retries shorten the long-running calls in Fig. 6(c). Every selected sample exhausts each decoder's initial BP budget, so the plotted population contains no initial BP early returns. We see a sharp descent in BP-OSD because of comparatively regular OSD workload at fixed matrix size and OSD order. We note that all 100,000 BP80-OSD10 calls return syndrome-consistent corrections, but 2,719 have the wrong logical effect. Thus, its final descent to zero indicates completion, not logical correctness. In contrast, BP-based results usually either returns a correction in the correct logical coset, or exhausts all iterations and aborts.
On this common initial-failure population, all-concurrent BP-SF has a mean call latency of 1.081 ms and a 99.9th-percentile latency of 7.039 ms, compared with 6.796 ms and 92.556 ms for eight-chain Relay-BP. These are reductions of and , respectively. GPU BP80-OSD10, including its 80-iteration initial BP stage, requires 9.059 ms and 11.347 ms. Relative to BP80-OSD10, all-concurrent BP-SF reduces mean and p99.9 latency by
Table 1: Core (C) / buffer (B) sweep for windowed BP-SF on the [[144, 12, 12]] code at and 128 rounds. Release age includes core/buffer waiting, queuing, and decoding. Bold entries mark the geometry used in Fig. 7.
| C | B | LER/round | Mean compute | p99 age (ms) |
|---|---|---|---|---|
| 4 | 1 | 5.26 | 45.94 | 12.52 |
| 4 | 3 | 1.59 | 42.15 | 18.32 |
| 4 | 6 | 1.53 | 42.63 | 27.21 |
| 7 | 1 | 2.95 | 38.71 | 21.38 |
| 7 | 3 | 1.19 | 35.42 | 27.21 |
| 7 | 6 | 1.20 | 38.27 | 36.17 |
| 10 | 1 | 2.27 | 34.57 | 30.24 |
| 10 | 3 | 0.94 | 34.51 | 36.17 |
| 10 | 6 | 0.95 | 37.57 | 45.12 |
and , respectively. We choose eight lanes because the CUDA-Q [37] Relay-BP implementation used here supports at most eight parallel lanes. Restricting BP-SF to eight concurrent trials raises its mean and p99.9 latency to 1.556 ms and 27.051 ms, respectively, still below the eight-lane Relay-BP timings. Its p99.9 latency is nevertheless higher than BP80-OSD10's 11.347 ms. Additional BP-SF concurrency therefore benefits the latency tail more strongly than the mean. The next experiment asks whether this short-memory operating point can be extended to much longer syndrome histories.
6.3 Temporal Scaling Using Window Decoding
A longer memory produces a larger decoding graph, even when the code remain fixed. We compare monolithic BP-SF with the sliding-window procedure of Section 2.4 on the 144 code at . Both use up to 80 initial BP iterations and 60 iterations per DMem-BP retry. The 100-retry limit applies once per memory experiment for monolithic decoding and separately to each window for windowed decoding. Within a window, candidate selection and local convergence checks use the core. Appendix A gives the remaining decoder settings.
We first choose the core and buffer lengths using the 128-round sweep in Table 1. Increasing the buffer from one to three rounds lowers the measured LER at every tested core length; extending it to six gives little further change. At , for example, LER falls from to when increases from one to three, while gives and adds roughly 9 ms to p99 correction-release age. We therefore use a three-round buffer.
With , increasing the core from four to seven rounds reduces compute time from 42.15 to . A ten-round core saves only another , while raising p99 release age from 27.21 to 36.17 ms. Although a ten-round core gives a lower LER point estimate, a seven-round core retains most of its compute efficiency and releases corrections earlier. We use for the length sweep to balance these costs.
With this geometry, windowed BP-SF maintains an effective LER near through 512 rounds (see Fig. 7). Monolithic decoding is more accurate for short memories, but its LER rises sharply on longer graphs. Non-convergence accounts for 9,245 of its 9,246
(a) [[144,12,12]]

(b) [[288,12,18]]

BP-SF (100) Relay-BP (300) BP1000 BP1000-OSD10
(c) [[144,12,12]] latency survival
; RTX 5060 Ti; 100,000 common initial-BP failures

BP-SF: all concurrent (100) Relay-BP: 8 concurrent (304)
BP-SF: 8 concurrent (100) GPU BP80-OSD10
Figure 6: Accuracy and call latency of BP-SF and baseline decoders; parentheses give retry budgets. (a,b) Effective LER per round for the and codes, using 12 and 18 memory rounds. (c) Latency survival on 100,000 matched 144-code samples at p = 0.002, conditioned on every tested method's native initial BP stage failing within 80 iterations. Survival is the fraction of complete scalar calls still running after time t, including the initial BP stage and all return outcomes.
failed memory experiments at 512 rounds, making it the dominant source of error.
The mean windowed compute time remains between 0.033 and 0.036 ms per round across 12–512 rounds. Monolithic decoding is faster through 64 rounds, but windowing becomes faster between 64 and 128 rounds and reaches a speedup at 512 rounds. This near-constant per-round cost makes windowed BP-SF a useful basis for long-memory decoding. Section 6.4 next examines full-frame recovery, connecting graph and schedule choices to decoding accuracy, call latency, and correction release during streaming memory.
6.4 Full-Frame Error Correction
Preserving an arbitrary logical state requires recovering both components of its Pauli frame. A residual logical Z, for example, leaves unchanged but can corrupt a superposition. We therefore extend the evaluation from fixed-basis memory to full-frame recovery on the 144 code, checking all 24 logical X/Z labels on every sample. The full-frame protocol uses ideal X/Z extraction at both memory boundaries and no destructive data readout. Its construction and scoring rule are given in Appendix A.
We consider three ways to recover the full Pauli frame within BP-SF. The first decodes the two sectors sequentially using and . After estimating the effective X errors with , we update the Z-error priors by Bayesian conditioning on the accepted
[[144,12,12]], p=0.002; window core/buffer 7/3; 95% LER intervals

Figure 7: Temporal scaling of BP-SF on the code at , comparing monolithic decoding with 7/3 window decoding. Left: effective LER per round. Middle: fraction of complete memory experiments that fail to converge. Right: mean decoder compute time per round, timed for each shot. Only compute time is recorded and syndrome lookahead time are excluded.
estimate, and then decode with . This approach exploits cross-sector correlations while retaining the smaller single-sector graphs, following the principle of correlation-aware CSS decoding [11]. The second uses the joint matrix , which explicitly includes mixed-error mechanisms and allows information to pass between the two sectors throughout decoding. The third applies GARI to the joint model, introducing auxiliary variables and consistency checks to reorganize these connections and remove the targeted short cycles [25]. All three approaches use BP-SF, but they differ in how the decoding problem represents and exchanges correlated error information.
These choices affect both inference and computational cost. With standard message aggregation, a complete BP iteration requires arithmetic work, where is the number of edges in the Tanner graph of the decoding matrix . Joint decoding retains more error information in a single graph, but changes the number and connectivity of messages that must be updated. GARI further changes the decoding graph by enlarging it but making the graph sparser. The total decoding cost also depends on the iterations and retries needed to converge, while GPU latency depends on the message schedule and available parallelism. For example, in our twelve-round full-frame experiment on the code, and each contain 30,672 edges, giving 61,344 edges across the two separate graphs. The joint matrix contains 419,904 edges, whereas the GARI matrix contains 203,904. Thus, joint and GARI decoding involve approximately and as many edges, respectively, as the two separate graphs combined. Despite having more rows and columns, GARI reduces the edge count by 51.4% relative to the joint representation.
We therefore compare these representations on the code at and , asking whether their gains in full-frame accuracy translate into favorable latency once graph cost, convergence, and retry budgets are considered, especially when these representations causes different BP complexity, which could benefit the LER on small graphs by sending more retries within the same latency budget.
For the and GARI graphs, we compare flooding with conflict-free physical-check layers of at most 128 checks, labeled “ind.128.” The layers are fixed, their order is shuffled each sweep, and GARI’s two virtual layers follow in fixed U, V order. More information on layered decoding for GARI can be found in [1, 25]. In the comparisons below, without a schedule suffix denotes with flooding updates, matching the figure labels; ind.128 denotes the layered configuration.
Joint decoding makes better use of the retry budget in this full-frame experiment as shown Fig. 8(a). Separate decoding reaches LER/round with 1,000 retries per sector, whereas reaches with 100 retries. Increasing the number of separate-sector trials therefore does not close the measured accuracy gap to joint decoding.
The schedule also matters. With 20 retries, changing GARI from flooding to ind.128 lowers its LER from to . GARI ind.128 with 20 retries and with 100 retries have similar measured LERs and overlapping 95% intervals, making them useful operating points for the latency comparison. can reach a lower LER of with 300 retries, at a larger trial budget.
Figure 8(b) shows the timing consequence of these choices on unfiltered samples. GARI ind.128 with 20 retries takes 1.624 ms on average, compared with 31.304 ms for with 100 retries, a reduction. Their p99.9 latencies are 20.983 and 80.843 ms, respectively, a reduction. The graph and schedule therefore offer a substantially faster BP-SF operating point at similar measured accuracy. We carry these two configurations into the streaming experiment to test how their timing differences affect correction release.
We next examine whether the single-frame latency advantage translates into earlier correction release during streaming memory. We combine GARI ind.128 with 20 retries and with 100 retries with causal window decoding over 512 noisy rounds. Measured service traces are replayed with FIFO syndrome arrivals every 2.97 ms, followed by one ideal final extraction. Every window must satisfy both physical core sectors, and the accumulated correction is checked against the full syndrome and all 24 logical labels. Rejected
(a) Arbitrary-state accuracy

GARI flooding (20)
GARI ind.128 (20)
Joint ind.128 (20)
Separate (Bayesian)
Joint (flooding)
(b) Single-frame latency
Full-frame decode latency (ms)
(20)
(100)
(300)
GARI flooding (20)
GARI ind.128 (20)
Joint ind.128 (20)
Separate (Bayesian) (300)
(c) Streaming window decoding

p99.9 correction-release age (ms)
Figure 8: Full-frame recovery with BP-SF on the code at . Parentheses give retry budgets. (a) Twelve-round memory accuracy for separate, joint, and GARI graph representations. (b) Call-latency survival on 524,288 matched, unfiltered samples per configuration. ind.128 denotes a layer-size cap of 128 checks. (c) 512-round streaming memory with 2.97-ms syndrome arrivals. Filled/open markers denote 7/3 and 4/3 core/buffer geometries. is p99.9 computational queue delay, excluding lookahead and own processing; “wait” is the queued arrival fraction. Bars and bands show nominal 95% LER intervals and 95% release-age intervals. Timing in (b,c) uses RTX 5060 Ti GPU.
windows count as stream failures. The reported release age includes core/buffer waiting, computational queuing, and correction processing.
The shorter decoding times of GARI ind.128 translate into earlier correction release as shown in Fig. 8(c). With the 7/3 geometry, its p99.9 release age is 36.25 ms, compared with 166.29 ms for . The corresponding LERs are and per round. Queuing accounts for much of the latency difference: Only 0.40% of noisy-round arrivals wait for GARI ind.128, compared with 67.88% for . Their p99.9 computational waiting times are 6.41 and 136.18 ms, respectively.
Reducing the core to four rounds releases corrections sooner for both configurations. The p99.9 release ages of GARI ind.128 and fall to 24.12 and 67.16 ms, respectively, and their queuing tails fall to 3.29 and 46.27 ms. The LER point estimates rise to and , with overlapping intervals across the two geometries for each configuration. Thus, core length remains a useful control over correction delay after the graph and schedule have been chosen.
Together, the experiments connect BP-SF’s parallel retries to its use in streaming memory. Parallel trials shorten difficult decoding calls, windowing limits temporal graph growth, and correlation-aware graph and schedule choices improve the full-frame accuracy-latency trade-off. In the tested arrival stream, combining these choices yields substantially less queuing and earlier correction release.
7 Conclusion
We extended oscillation-guided BP-SF from parallel post-processing to GPU-based windowed and streaming decoding. The GPU implementation combines an ordinary BP attempt with posterior-initialized, parallel DMem-BP retries, exposing a direct trade-off between decoding resources, latency, and accuracy. On the code at , all-concurrent BP-SF reduces mean and p99.9 latency by and , respectively, relative to the tested eight-chain Relay-BP implementation on 100,000 matched samples for which every method's native initial BP stage fails within 80 iterations. These conditional timing gains do not imply uniform accuracy superiority: Relay-BP retains an accuracy advantage, particularly on the code.
Fixed-size window decoding extends BP-SF to long memory experiments without the growing decoding graph of a monolithic approach. In the 144-code fixed-basis experiment, windowed decoding maintains approximately constant per-round compute time and LER through 512 rounds, where its mean compute time per round is lower than monolithic decoding. Core and buffer selection nevertheless requires balancing accuracy, decoding frequency, and correction-release delay, i.e., compute latency alone does not capture lookahead or queuing costs.
We also evaluated preservation of arbitrary logical states by checking the complete logical Pauli frame under stochastic Pauli circuit noise. The memory circuit uses ideal initial and final stabilizer extraction without destructive data-qubit readout, and the scoring criterion checks both physical sectors and all logical X/Z labels rather than extrapolating from a single-basis memory test. In this setting, graph representation and scheduling materially affect the accuracy-latency trade-off. In the twelve-round 144-code experiment, GARI with independent-128 layers and 20 BP-SF retries achieves accuracy comparable at the measured precision to with flooding updates and 100 retries, while reducing mean and p99.9 natural-shot latency by and . Its advantage also carries into the tested 512-round streaming workload as substantially less computational queuing. Together, these results support co-designing speculative trials, graph structure, and window geometry, and evaluating both logical correctness and end-to-end correction release. Extending these gains across code families and establishing long-run queue stability remain important next steps.
References
[1] Daniel Báscones, Arshpreet Singh Maan, Valentin Savin, and Francisco Garcia-Herrero. 2026. A Scalable FPGA Architecture for Real-Time Decoding of Quantum LDPC Codes Using GARI. arXiv preprint arXiv:2605.01035 (2026). doi:10.48550/arXiv.2605.01035
[2] E. Berlekamp, R. McEliece, and H. van Tilborg. 1978. On the inherent intractability of certain coding problems (Corresp.). IEEE Transactions on Information Theory
24, 3 (1978), 384–386. doi:10.1109/TIT.1978.1055873
[3] Sergey Bravyi, Andrew W. Cross, Jay M. Gambetta, Dmitri Maslov, Patrick Rall, and Theodore J. Yoder. 2024. High-threshold and low-overhead fault-tolerant quantum memory. Nature 627, 8005 (March 2024), 778–782. doi:10.1038/s41586-024-07107-7
[4] D. Chase. 1972. Class of algorithms for decoding block codes with channel measurement information. IEEE Transactions on Information Theory 18, 1 (1972), 170–182. doi:10.1109/TIT.1972.1054746
[5] Jiahan Chen, Zhengzhong Yi, Zhipeng Liang, and Xuan Wang. 2025. Improved Belief Propagation Decoding Algorithms for Surface Codes. IEEE Transactions on Quantum Engineering 6, 01 (Jan. 2025), 1–16. doi:10.1109/TQE.2025.3577769
[6] Dimitris Chytas, Michele Pacenti, Nithin Raveendran, Mark F. Flanagan, and Bane Vasić. 2024. Enhanced Message-Passing Decoding of Degenerate Quantum Codes Utilizing Trapping Set Dynamics. IEEE Communications Letters 28, 3 (2024), 444–448. doi:10.1109/LCOMM.2024.3356312
[7] Dimitris Chytas, Nithin Raveendran, and Bane Vasić. 2025. Enhanced Min-Sum Decoding of Quantum Codes with Iteration Dynamics Memory. In 2025 IEEE International Symposium on Information Theory (ISIT). 1–6. doi:10.1109/ISIT63088.2025.11195509
[8] Jingxin Dai, Hang Yin, Yansong Lv, Weizhang Xu, and Zhanxin Yang. 2022. Multi-Gbps LDPC Decoder on GPU Devices. Electronics 11, 21 (2022), 3447. doi:10.3390/electronics11213447
[9] Poulami Das, Aditya Locharla, and Cody Jones. 2022. LILLIPUT: a lightweight low-latency lookup-table decoder for near-term Quantum error correction. In Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (Lausanne, Switzerland) (ASPLOS '22). Association for Computing Machinery, New York, NY, USA, 541–553. doi:10.1145/3503222.3507707
[10] Poulami Das, Christopher A. Pattison, Srilatha Manne, Douglas M. Carmean, Krysta M. Svore, Moinuddin Qureshi, and Nicolas Delfosse. 2022. AFS: Accurate, Fast, and Scalable Error-Decoding for Fault-Tolerant Quantum Computers. In 2022 IEEE International Symposium on High-Performance Computer Architecture (HPCA). 259–273. doi:10.1109/HPCA53966.2022.00027
[11] Nicolas Delfosse and Jean-Pierre Tillich. 2014. A decoding algorithm for CSS codes using the X/Z correlations. In 2014 IEEE International Symposium on Information Theory (ISIT). 1071–1075. doi:10.1109/ISIT.2014.6874997
[12] Antonio deMarti iOlius, Imanol Etxezarreta Martinez, Joschka Roffe, and Josu Etxezarreta Martinez. 2026. An almost-linear time decoding algorithm for quantum LDPC codes under circuit-level noise. npj Quantum Information (2026). doi:10.1038/s41534-026-01292-1
[13] J. Dielissen, A. Hekstra, and V. Berg. 2006. Low cost LDPC decoder for DVB-S2. In Proceedings of the Design Automation & Test in Europe Conference, Vol. 2. 1–6. doi:10.1109/DATE.2006.243816
[14] Ilan Dimnik and Yair Be'ery. 2009. Improved random redundant iterative HDPC decoding. Trans. Comm. 57, 7 (July 2009), 1982–1985. doi:10.1109/TCOMM.2009.07.070621
[15] Julien du Crest, Francisco Garcia-Herrero, Mehdi Mhalla, Valentin Savin, and Javier Valls. 2024. Check-Agnosia based Post-Processor for Message-Passing Decoding of Quantum LDPC Codes. Quantum 8 (2024), 1334. doi:10.22331/q-2024-05-02-1334
[16] Julien du Crest, Mehdi Mhalla, and Valentin Savin. 2022. Stabilizer Inactivation for Message-Passing Decoding of Quantum LDPC Codes. In 2022 IEEE Information Theory Workshop (ITW). 488–493. doi:10.1109/ITW54588.2022.9965902
[17] Oscar Ferraz, Bruno Coutinho, Gabriel Falcao, Marco Gomes, Francisco A. Monteiro, and Vitor Silva. 2025. GPU-Accelerated Syndrome Decoding for Quantum LDPC Codes below the 63 s Latency Threshold. arXiv preprint arXiv:2508.07879 (2025). doi:10.48550/arXiv.2508.07879
[18] Craig Gidney. 2021. Stim: a fast stabilizer circuit simulator. Quantum 5 (2021), 497.
[19] Anqi Gong, Sebastian Cammerer, and Joseph M Renes. 2024. Toward low-latency iterative decoding of QLDPC codes under circuit-level noise. arXiv preprint arXiv:2403.18901 (2024).
[20] Thomas R. Halford and Keith M. Chugg. 2006. Random Redundant Soft-In Soft-Out Decoding of Linear Block Codes. In 2006 IEEE International Symposium on Information Theory. 2230–2234. doi:10.1109/ISIT.2006.261947
[21] Timo Hillmann, Lucas Berent, Armanda O Quintavalle, Jens Eisert, Robert Wille, and Joschka Roffe. 2024. Localized statistics decoding: A parallel decoding algorithm for quantum low-density parity-check codes. arXiv preprint arXiv:2406.18655 (2024).
[22] Shilin Huang and Shruti Puri. 2024. Increasing memory lifetime of quantum low-density parity check codes with sliding-window noisy syndrome decoding. Physical Review A 110, 1 (2024), 012453. doi:10.1103/PhysRevA.110.012453
[23] Pavithran Iyer and David Poulin. 2015. Hardness of Decoding Quantum Stabilizer Codes. IEEE Trans. Inf. Theor. 61, 9 (Sept. 2015), 5209–5223. doi:10.1109/TIT.2015.2422294
[24] Stergios Koutsioumpas, Hasan Sayginel, Mark Webster, and Dan E Browne. 2025. Automorphism Ensemble Decoding of Quantum LDPC Codes. arXiv preprint arXiv:2503.01738 (2025).
[25] Arshpreet Singh Maan, Francisco Miguel Garcia Herrero, Alexandru Paler, and Valentin Savin. 2026. Decoding correlated errors in quantum LDPC codes. Nature Communications 17 (2026), 3965. doi:10.1038/s41467-026-70556-3
[26] Thilo Maurer, Markus Bühler, Michael Kröner, Frank Haverkamp, Tristan Müller, Drew Vandeth, and Blake R. Johnson. 2025. Real-time decoding of the gross code memory with FPGAs. arXiv preprint arXiv:2510.21600 (2025). doi:10.48550/arXiv.2510.21600
[27] Tristan Müller, Thomas Alexander, Michael E Beverland, Markus Bühler, Blake R Johnson, Thilo Maurer, and Drew Vandeth. 2025. Improved belief propagation is sufficient for real-time decoding of quantum memory. arXiv preprint arXiv:2506.01779 (2025).
[28] Pavel Panteleev and Gleb Kalachev. 2021. Degenerate quantum LDPC codes with good finite length performance. Quantum 5 (2021), 585. doi:10.22331/q-2021-11-22-585
[29] David Poulin and Yeojin Chung. 2008. On the iterative decoding of sparse quantum codes. arXiv preprint arXiv:0801.1241 (2008).
[30] Sheida Rabeti and Hessam Mahdavifar. 2025. List Decoding and New Bicycle Code Constructions for Quantum LDPC Codes. arXiv preprint arXiv:2511.02951 (2025). doi:10.48550/arXiv.2511.02951
[31] Nithin Raveendran and Bane Vasić. 2021. Trapping sets of quantum LDPC codes. Quantum 5 (2021), 562.
[32] T.J. Richardson, M.A. Shokrollahi, and R.L. Urbanke. 2001. Design of capacity-approaching irregular low-density parity-check codes. IEEE Transactions on Information Theory 47, 2 (2001), 619–637. doi:10.1109/18.910578
[33] Joschka Roffe, David R. White, Simon Burton, and Earl Campbell. 2020. Decoding across the quantum low-density parity-check code landscape. Phys. Rev. Res. 2 (Dec 2020), 043423. Issue 4. doi:10.1103/PhysRevResearch.2.043423
[34] Stim developers. [n. d.]. Stim gate reference: OBSERVABLE_INCLUDE. https://github.com/quantumlib/Stim/blob/main/doc/gates.md. Pauli-target logical-observable annotations; accessed September 16, 2026.
[35] Bei-Sheng Su, Chia-Heng Lee, and Tzi-Dar Chieh. 2022. A 58.6/91.3 pJ/b dual-mode belief-propagation decoder for LDPC and polar codes in the 5G communications standard. IEEE Solid-State Circuits Letters 5 (2022), 98–101.
[36] Barbara M. Terhal. 2015. Quantum error correction for quantum memories. Rev. Mod. Phys. 87 (Apr 2015), 307–346. Issue 2. doi:10.1103/RevModPhys.87.307
[37] The CUDA-Q development team. 2024. CUDA-Q. https://github.com/NVIDIA/cuda-quantum. https://github.com/NVIDIA/cuda-quantum
[38] Jean-Pierre Tillich and Gilles Zémor. 2014. Quantum LDPC Codes With Positive Rate and Minimum Distance Proportional to the Square Root of the Blocklength. IEEE Transactions on Information Theory 60, 2 (2014), 1193–1202. doi:10.1109/TIT.2013.2292061
[39] Joshua Viszlai, Jason D. Chadwick, Sarang Joshi, Gokul Subramanian Ravi, Yanjing Li, and Frederic T. Chong. 2025. SWIPER: Minimizing Fault-Tolerant Quantum Program Latency via Speculative Window Decoding. In Proceedings of the 52nd Annual International Symposium on Computer Architecture (ISCA '25). Association for Computing Machinery, New York, NY, USA, 1386–1401. doi:10.1145/3695053.3731022
[40] Suhas Vittal, Poulami Das, and Moinuddin Qureshi. 2023. Astrea: Accurate Quantum Error-Decoding via Practical Minimum-Weight Perfect-Matching. In Proceedings of the 50th Annual International Symposium on Computer Architecture (Orlando, FL, USA) (ISCA '23). Association for Computing Machinery, New York, NY, USA, Article 2, 16 pages. doi:10.1145/3579371.3589037
[41] Suhas Vittal, Ali Javadi-Abhari, Andrew W. Cross, Lev S. Bishop, and Moinuddin Qureshi. 2024. Flag-Proxy Networks: Overcoming the Architectural, Scheduling and Decoding Obstacles of Quantum LDPC Codes. In 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO). IEEE Computer Society, Los Alamitos, CA, USA, 718–734. doi:10.1109/MICRO61859.2024.00059
[42] Ming Wang, Ang Li, and Frank Mueller. 2026. Fully Parallelized BP Decoding for Quantum LDPC Codes Can Outperform BP-OSD. In 2026 IEEE International Symposium on High Performance Computer Architecture (HPCA). 1–14. doi:10.1109/HPCA68181.2026.11408621
[43] Ming Wang, Yong Li, Jianqing Liu, Taolin Guo, Huihui Wu, and Francis C.M. Lau. 2023. Neural layered min-sum decoders for cyclic codes. Physical Communication 61 (2023), 102194. doi:10.1016/j.phycom.2023.102194
[44] Stasiu Wolanski and Ben Barber. 2024. Ambiguity Clustering: an accurate and efficient decoder for qLDPC codes. arXiv preprint arXiv:2406.14527 (2024).
[45] Hanwen Yao, Waleed Abu Laban, Christian Häger, Alexandre Graell i Amat, and Henry D. Pfister. 2024. Belief Propagation Decoding of Quantum LDPC Codes with Guided Decimation. In 2024 IEEE International Symposium on Information Theory (ISIT). 2478–2483. doi:10.1109/ISIT57864.2024.10619083
[46] Min Ye, Dave Wecker, and Nicolas Delfosse. 2026. Beam Search Decoder for Quantum Low-Density Parity-Check Codes. PRX Quantum 7 (2026), 033002. doi:10.1103/6k5x-ztqt
[47] Keyi Yin, Xiang Fang, Jixuan Ruan, Hezi Zhang, Dean Tullsen, Andrew Sornborger, Chenxu Liu, Ang Li, Travis Humble, and Yufei Ding. 2024. SymBreak: Mitigating Quantum Degeneracy Issues in QLDPC Code Decoders by Breaking Symmetry. arXiv preprint arXiv:2412.02885 (2024).
[48] Zhengya Zhang, Venkat Anantharam, Martin J. Wainwright, and Borivoje Nikolic. 2010. An Efficient 10GBASE-T Ethernet LDPC Decoder Design With Low Error Floors. IEEE Journal of Solid-State Circuits 45, 4 (2010), 843–855. doi:10.1109/JSSC.2010.2042255
A Additional Experimental Details
A.1 Full-Frame Protocol and Scoring
For a syndrome-consistent correction under stochastic Pauli circuit noise, the residual action on the k encoded qubits is
up to an irrelevant global phase. Preserving every encoded input requires .
The full-frame circuit has ideal initial X/Z stabilizer extraction, R noisy extraction rounds, and ideal final X/Z extraction, without destructive data-qubit readout. Paired Pauli-target annotations in Stim track each logical and correlation across the ideal boundaries [18, 34]. These simulator annotations record noise-induced changes without physically measuring non-commuting logical operators. The decoder receives only the detector syndrome. The logical labels are used for scoring and are verified against the final data-qubit Pauli frame. All 24 labels of the 144 code are checked on each sample.
Let describe the full physical detector model and its logical-frame labels. A memory experiment fails when
All algebra is over . Any wrong logical label counts as one failed experiment, and non-convergence is included. This directly scores both error sectors rather than extrapolating from a single-basis LER. For streaming experiments, any rejected window fails the stream, and the final accumulated correction is checked with the same full-frame rule. All input rounds are retained and there is no monolithic rescue.
A.2 Decoder Settings
Windowed and full-frame BP-SF use up to 80 initial min-sum BP iterations followed, on failure, by DMem-BP trials of up to 60 iterations. Trials initialize posterior memory from the failed initial attempt, with fixed node-specific strengths . Up to 50 oscillation-selected candidates support flip weights 1–10. The window geometry and length sweeps allocate 10 trials to each weight, giving up to 100 retries per window, or per memory experiment for the monolithic comparison. Local window acceptance and candidate selection use the core. Full-frame experiments retain the min-sum normalization and divide each configured retry budget equally among the ten flip weights.
Separate full-frame decoding estimates effective X mechanisms using , then conditions the effective Z priors on the accepted estimate before decoding . The conditional one-bit marginals account for shared mixed-error mechanisms. Treating the first estimate as certain and factorizing the second-sector priors are approximations. If the first sector fails, the second uses its original marginal priors. The retry budget applies separately to each failed sector.
For full-frame GARI decoding, we construct U and V from the joint detector model used in the experiment. The resulting effective error variables, and , are mapped back to corrections with the same detector and logical effects. BP-SF selects flip candidates only from the original error-mechanism variables, excluding the auxiliary variables introduced by GARI. The virtual checks participate in message passing, but convergence is tested on the measured X- and Z-type detector constraints. Both sectors must be satisfied before a full-frame estimate is accepted.
In the ind.128 schedule, the checks corresponding to measured detector outcomes are partitioned into layers containing at most 128 checks to increase GPU utilization. Checks within a layer share no variable nodes and are updated in parallel. The layers are processed sequentially, and the partition remains fixed throughout decoding. At the beginning of each iteration, we randomly reorder these physical-check layers. After processing them, we update the two virtual-check layers in the fixed order U followed by V. One iteration therefore consists of a complete sweep through the physical and virtual layers. The limit of 128 applies only to the physical-check layers. This is different from the original GARI [25], where physical check updates are performed in a serial manner (i.e., each layer has only one check).
A.3 Sampling and Timing
Figure 6(c) compares decoding latency on 100,000 matched samples for which every tested method's native initial BP stage fails to converge within 80 iterations. This common condition includes ordinary BP in both BP-SF schedules, Relay-BP's initial memory-BP stage, and the BP stage of BP80-OSD10. Selection uses initial convergence only, independent of subsequent retry success or logical correctness. Each sample is decoded once per configuration. Timing covers the complete scalar call, including initial BP and subsequent processing, and excludes sampling, scoring, construction, and warm-up. All runs use the same RTX 5060 Ti under exclusive allocations, with rotated configuration order.
The 128-round geometry sweep uses matched syndrome samples over the common prefixes of the sample sets. Each setting is evaluated in blocks of 4,096 experiments until at least 100 failures are observed, requiring 16,384–86,016 experiments. A separate set of 2,048 matched streams per setting supplies scalar timings. An exploratory paired comparison of 7/3 and 10/3 on their common samples gives a nominal exact McNemar , which is descriptive under the error-count stopping rule. The geometry sweep is independent of the length sweep. For the latter, LER samples are matched between decoders and collected in blocks until at least 100 failures are observed for each decoder. Timings use 2,048 matched memory experiments per length. Decoder construction and warm-up are excluded, and static per-window observable matrices are precomputed.
In the twelve-round full-frame accuracy sweep, separate decoding has at least 100 failures per point, GARI ind.128 has 30, and ind.128 has 20. with flooding updates at 100, 300, and 1,000 retries reaches the 4,194,304-sample cap with 32, 15, and 17 failures, respectively. The nominal 95% LER intervals for GARI ind.128 with 20 retries and with 100 retries are and . Scalar timings use 524,288 matched, unfiltered samples per configuration, including failures, and exclude circuit sampling, scoring, graph construction, and warm-up.
The full-frame streaming experiment collects 50 failures per configuration for LER estimation. Separately, 4,096 matched natural streams per setting provide measured service traces for FIFO arrival replay. Arrival spacing is 2.97 ms, including one additional arriving perfect-final extraction. While graph construction is excluded from timing, per-arrival processing and final flush are included. Computational waiting excludes intentional core/buffer lookahead, while release age includes both. Timing intervals resample whole streams to preserve any within-stream dependence. These traces characterize the tested 512-round workload.