Manuscript Offprint
arXiv:2611.03128Belief Propagation-Informed Tesseract Decoding of Quantum LDPC Codes
Sana Javed*, Francisco Garcia-Herrero†, Bane Vasić‡, and Mark F. Flanagan*
*School of Electrical and Electronic Engineering, University College Dublin, Belfield, Dublin 4, Ireland
†Department of Computer Architecture and Automatics, Complutense University of Madrid, Madrid, Spain
‡Department of Electrical and Computer Engineering, University of Arizona, Tucson, AZ, USA
Email: sana.javed@ucdconnect.ie, francg18@ucm.es, vasic@ece.arizona.edu, mark.flanagan@ieee.org
Abstract—In quantum error correction, the decoder must estimate the errors from the measurement data accurately and fast enough to avoid a backlog. Search-based decoders such as Tesseract achieve high accuracy by finding a minimum-weight set of error events with an A* search, but their search effort grows rapidly with the physical error rate and the code size. To reduce this search effort while maintaining a logical error rate close to that of Tesseract, we propose a belief propagation (BP)-guided modification of the Tesseract decoder for quantum low-density parity-check (LDPC) codes, which are attractive for fault-tolerant quantum computing because of their low qubit overhead. Damped sum-product BP is applied to the triggered detectors before the Tesseract search. If the detectors triggered by the BP hard decision on the error vector match the triggered detectors, this hard decision is accepted directly, and the Tesseract search is skipped. Otherwise, the BP marginal probability estimates, weighted by a trust coefficient, modify the search priority, while the path cost keeps the channel-prior weights so that the decoding objective is unchanged. The framework also supports BP-based initialization, in which selected BP decisions form the starting point of a residual search whose signed-cost objective allows incorrect initial decisions to be removed. A node-exploration limit bounds this residual search; if the limit is reached, the decoder falls back to the BP-guided search on the original triggered detector set. The method is evaluated on the [72, 12, 6], [90, 8, 10], and [144, 12, 12] bivariate bicycle codes under circuit-level noise in a Z-basis memory experiment with an uncorrelated detector error model. With BP-based initialization and a global trust coefficient, the number of Tesseract search nodes expanded is reduced by up to more than two orders of magnitude at low physical error rates, while the logical error rate remains close to that of Tesseract.
Keywords
Quantum error correction, quantum LDPC codes, belief propagation, A* search, Tesseract decoder
fragile and prone to errors caused by decoherence, gate imperfections, and other noise sources [6], [7]. In addition, operations such as non-Clifford gates require the measurement data to be decoded before the computation can proceed [8], [9]. If measurement data are generated faster than they can be processed, a backlog can delay the computation [10].
Quantum error correction (QEC) protects against these errors by encoding each logical qubit into multiple physical qubits; redundant stabilizer measurements reveal the presence of errors without disturbing the encoded information [6], [10]. Detectors check specified parities of measurement outcomes and are triggered when these parities differ from their expected values. The triggered detector set provides information about the possible underlying errors. The detector error model (DEM) [11] defines the relationship between errors and detectors. One common decoding objective is to find a minimum-weight error-event set consistent with the triggered detector set. Under an independent error-event model with channel-prior log-likelihood weights, this selects the most likely DEM event configuration consistent with the detector data. It does not necessarily select the most likely logical class, whose probability can include contributions from multiple event configurations. Finding a minimum-weight error-event set becomes more computationally demanding as larger circuits and additional rounds of stabilizer measurements increase the number of error events and detectors in the DEM.
Quantum LDPC codes reduce qubit overhead while maintaining good minimum distance, making them attractive for scalable fault tolerance [12]. Efficient decoding of quantum LDPC codes remains an active research challenge, particularly due to short cycles in their Tanner graphs. Belief propagation (BP) is a computationally attractive iterative decoder for quantum LDPC codes. However, short cycles in the DEM graph can cause messages to become correlated and oscillate, so that the detectors triggered by the BP hard decision on the error vector differ from the observed set [13]. As a result, BP-decoded quantum LDPC codes can exhibit a regime in which the logical error rate does not decrease as rapidly with the physical error rate as code distance alone would predict [14].
Several post-processing methods have been proposed to recover from BP convergence failure. Ordered statistics decoding (OSD) improves error-correction capability but at the cost of high latency, limiting parallelization and scalability
The work of S. Javed and M. F. Flanagan was supported by Taighde Éireann – Research Ireland under the US-Ireland R&D Partnership Programme (CoQREATE, Grant Number SFI/21/US-C2C/3750). The work of F. Garcia-Herrero acknowledges support from the project PID2023-147059OB-I00 funded by MCIU/AEI/10.13039/501100011033/FEDER, UE. B. Vasić acknowledges support from the NSF under Grants CCF-2100013, CIF-2106189, and CCF-2420424, as well as ERC-1941583 (CoQREATE). A preliminary version of this work was presented at the IEEE International Conference on Quantum Computing and Engineering (QCE), 2026 [1].
for real-time applications [15]. Stabilizer inactivation (SI) offers a lower-complexity alternative by inactivating unreliable stabilizer nodes and re-running message passing on the reduced graph [16]; however, it is a list-based method whose complexity grows with the list length. Serial processing of the list can increase latency, while parallel processing may demand substantially more hardware resources [17]. Localized statistics decoding (LSD) clusters unreliable qubits and processes them independently in parallel [18]; however, its cost depends on the size of the clusters, especially the largest one, and both the cluster sizes and the decoding time grow as the physical error rate increases.
An alternative strategy is to modify BP itself. Belief-propagation-guided decimation (BPGD) sequentially fixes the most reliable qubits to encourage BP convergence without post-processing [19], though its sequential fixing procedure adds latency, and incorrect early decisions cannot be reversed, unlike search-based methods that explore multiple error-set candidates. Relay BP [20] improves convergence by combining multiple forms of message damping, achieving competitive decoding performance on DEM graphs without post-processing, and fully parallelized BP decoding can also outperform BP-OSD [21].
Beyond post-processing and BP modifications, the decoding problem can be embedded in a structured search. The Tesseract decoder [22] and decision-tree decoders (DTDs) [23] both construct error-event sets incrementally by adding one error at a time and searching over the space of error subsets. Under the standard assumptions for A* search, including nonnegative edge costs, an admissible heuristic, and appropriate handling of revisited states, an unpruned search returns a minimum-weight solution. In practice, Tesseract discards search nodes that leave too many triggered detectors unexplained and limits the number of nodes kept in the priority queue. These measures limit the search effort, so Tesseract operates as a pruned approximate search. A recent work [24] accelerated Tesseract through low-level optimizations such as improved data structures and cache-friendly memory layouts, reducing runtime without modifying the search algorithm. The Tesseract edge weights depend only on the channel priors and not on the triggered detector set. BP, in contrast, provides probability estimates conditioned on the triggered detector set, which can be used to modify the search priority.
BP has also been combined with search-based decoders. A BP-based initialization approach proposed by Yous et al. [25] uses a BP hard decision as an initial error-event set and then performs a residual search for the detectors that remain unexplained. In its gated variant, a reliability gate based on the BP marginal probabilities decides which BP decisions are used; in its ungated variant, all BP decisions are used. In the BP-DTD variant [23], decimated BP is run at each node of a depth-first search, using the BP output to guide local branching decisions.
In this paper, to reduce the computational cost of search-based decoding, we propose the BP-Informed Tesseract decoder for quantum LDPC codes under circuit-level noise represented by a DEM. If the BP hard decision on the error vector is consistent with the triggered detector set, it is accepted directly, avoiding the Tesseract search for that decoding instance. Otherwise, the BP marginal probabilities modify the search priority, with a trust coefficient controlling their influence for each error event. The accumulated path cost remains based on the original channel-prior weights. BP therefore changes the order in which the search explores candidates, but not the objective it minimizes.
In addition to BP guidance, the proposed decoder uses BP-based initialization for residual search. Selected error events from the BP hard decision initialize a residual search that can both add new error events and remove selected events. When the selected events are correct, fewer detectors remain unexplained, and the search effort is reduced. A signed-cost objective accounts for these additions and removals: removing an initialized event reduces the path cost by its channel-prior weight, so the residual search keeps the same objective as Tesseract. A node-exploration limit bounds the effort spent on the residual search, with fallback to BP-guided Tesseract on the original triggered detector set if the limit is reached. We consider two choices of the trust coefficients: a per-error coefficient computed from the change in each BP marginal probability over the final BP iterations, and a global coefficient shared by all error events.
We evaluate the decoder on the , , and bivariate bicycle codes under circuit-level noise. The experiments use a Z-basis memory setting with an uncorrelated DEM, decode only the Z-type detectors, and examine the effects of BP guidance, initialization, and the node-exploration limit. At low physical error rates, the proposed decoder reduces the number of expanded search nodes by up to more than two orders of magnitude compared with the baseline Tesseract decoder, while maintaining logical error rates close to those of the baseline Tesseract decoder. A global trust coefficient performs better than the per-error coefficient on the two larger codes and requires only one parameter to be selected.
The remainder of this paper is organized as follows. Section II introduces quantum LDPC codes, the detector error model, and the Tesseract and BP decoders. Section III presents the proposed decoding method. Section IV describes the experimental setup and presents the numerical results. Finally, Section V summarizes the main findings and outlines directions for future work.
II. BACKGROUND
A. Quantum LDPC Codes
A quantum code with parameters encodes logical qubits into physical qubits and has a minimum distance of . A quantum LDPC code is a stabilizer code with a set of stabilizer generators whose weights remain bounded as the block length increases, with each physical qubit participating in a bounded number of generators. These generators serve as the parity checks of the code [26], [27]. For Calderbank–Shor–Steane (CSS) codes [28], [29], these generators can be chosen to be either X-type or Z-type and are represented by the binary parity-check matrices and , respectively. Each row represents the support of a generator, and each column corresponds to a physical qubit. The commutativity constraint over ensures that the X- and Z-type generators commute.
Quantum LDPC codes can offer a favorable trade-off between code rate, minimum distance, and qubit overhead, making them strong candidates for scalable fault-tolerant architectures [12], [26], [30]. Several quantum LDPC code families have been proposed, including hypergraph product codes [31], lifted product codes [32], and bivariate bicycle (BB) codes [30]. In this paper, we focus on BB codes, which are CSS codes with and , where and are sums of products of two commuting cyclic shift matrices [30], yielding a highly structured sparse code with favorable distance scaling and low qubit overhead [33].
B. Detector Error Model
In quantum error correction, the syndrome is a binary vector of stabilizer measurement outcomes that provides information about possible errors [15]. A detector checks the parity of syndrome measurement outcomes, often from consecutive rounds. It is triggered when this parity differs from the corresponding value in the absence of faults. For circuit-level decoding, a DEM describes how faults in a noisy syndrome extraction circuit affect detector outcomes and tracked logical observables [11], [34]. The circuit model includes preparation, reset, idling, ancilla-measurement, and CNOT faults.
Let denote the set of DEM error events. For notational simplicity, denotes the occurrence of event , whereas denotes its absence. The prior probability of event is .
Let denote the set of detectors and the triggered detector set observed in one decoding instance. Let denote the set of tracked logical observables. Each event is associated with a detector pattern and a logical-observable pattern .
For a detector , let denote the set of error events whose detector pattern contains . For an error event set , the combined detector and logical-observable patterns are
where denotes symmetric difference. An element belongs to the resulting pattern if and only if it appears in an odd number of constituent event patterns. An error event set is said to be detector-matching when . A logical error occurs when the decoded logical-observable pattern differs from the logical-observable pattern generated by the circuit.
C. Tesseract Decoder
The Tesseract decoder is a search-based decoder for quantum error correction [22], [35] that seeks a most-likely error configuration. Given the triggered detector set S, the decoder searches for a minimum-weight error configuration consistent with S. Each error event is assigned a weight based on its associated log-likelihood ratio,
and the decoding objective is
Tesseract formulates this minimum-weight detector-matching problem as an A* search over a directed acyclic graph (DAG) [22], [36]. Each node in the graph represents a candidate error set F. The search begins at the empty error set and expands by adding one error event at a time until it reaches a goal node, which is defined as a node F satisfying . With an admissible heuristic and no pruning, the first goal node selected for expansion is a solution of (3) [36].
Nodes in the search are prioritized by , where
is the accumulated path cost and is a heuristic estimate of the remaining cost. The heuristic is computed from the set of residual detectors , whose parity is not matched by the current partial error set F.
Different orders of adding the same error events can generate duplicate search paths. Tesseract maintains a forbidden set of events excluded from further addition at node F to avoid generating the same candidate through different event orders.
For each detector , the heuristic takes the minimum ratio of an allowed incident error event's weight to the number of residual detectors that it triggers:
For nonnegative edge weights, this heuristic is admissible by construction: the denominator prevents double-counting, since an error event that flips multiple unsatisfied detectors has its cost split among them [22]. The search stores candidate nodes in a priority queue and selects a node with the smallest for processing. If it is a goal node, it is stored as the best solution found so far. Otherwise, the node is expanded by generating child nodes, each formed by adding one error event incident on a selected residual detector to F. The at-most-two pruning rule rejects any candidate set F in which some detector is incident on more than two error events of F. If the queue holds more than nodes, priority-queue pruning retains the nodes with the smallest values and discards the remaining nodes, which are never expanded.
To limit the search further, Tesseract uses a cutoff on the residual detector count. For a search node , let denote the size of the residual detector set, and let

Fig. 1. Decoder pipeline. If BP finds a detector-matching hard decision (), it is returned directly. Otherwise, the final BP marginal probabilities define the BP-informed heuristic. Without BP-based initialization, BP-guided Tesseract searches on from the empty error set. With BP-based initialization, the selected events start a residual search; if its node limit is reached, decoding falls back to BP-guided Tesseract on . Whether BP-based initialization is used is a configuration choice made before decoding.
be the smallest residual detector count encountered during the search. Given a cutoff parameter , a node is not expanded if
Unlike the forbidden set , which removes only duplicate paths to the same error set, the cutoff, the at-most-two rule, and priority-queue pruning reduce the search effort but can discard nodes leading to a minimum-weight solution. Thus, the pruned search is not guaranteed to return a solution of (3).
D. Belief Propagation for Quantum Error Correction
BP is an iterative message-passing algorithm that computes exact marginal probabilities on a tree-structured factor graph and approximate marginal probabilities when cycles are present [13], [37]. For the DEM, BP operates on a bipartite graph with two types of nodes: error-event nodes and detector nodes. Error-event nodes represent the events , detector nodes represent detector-parity constraints, and an edge connects to detector when . Let , and denote the error-event nodes, detector nodes, and edges of this graph. The required detector parity at is , where if and otherwise. Let denote the set of detector nodes adjacent to , and the set of error-event nodes adjacent to .
Messages are exchanged along the edges in both directions. When sending a message along an edge to a particular detector, an error-event node combines its channel prior with the messages from its other neighboring detectors. A detector node uses its required parity and messages from the other incident error-event nodes to update its message to an error-event node. Messages are expressed as log-likelihood ratios
(LLRs). The channel LLR for each error event , before any detector information is incorporated, is
which equals the Tesseract edge weight .
BP runs for at most iterations. At iteration , let denote the BP estimate of . The corresponding marginal LLR is
The hard decision at iteration is
The number of residual detectors for this hard decision is
Thus, means that the BP hard decision is detector-matching, i.e., . We say that BP converges if for some ; BP then stops and returns . This criterion does not require the messages to reach a fixed point, and a detector-matching hard decision need not be logically correct.
Although BP is effective for many classical LDPC codes, short cycles in quantum LDPC graphs can cause messages to become correlated and make the resulting marginal probability estimates inaccurate. BP may therefore fail to converge, oscillate between belief states, or produce a hard decision that does not match the triggered detector set [13], [14].
Damping combines a newly computed BP message with its value from the previous iteration and has been shown to improve convergence in loopy BP [38]. Giving more weight to the previous messages can reduce oscillations, although it may slow convergence.
III. PROPOSED METHOD: BP-INFORMED TESSERACT
The proposed decoder integrates a damped BP preprocessor with the Tesseract search. Its key idea is to use the BP output to reduce the Tesseract search effort while keeping the channel-prior path cost unchanged. For a given triggered detector set S, BP is run first. If its hard decision is detector-matching at any iteration, it is returned as the decoded error set and the Tesseract search is skipped. Otherwise, the final BP marginal probabilities modify the Tesseract heuristic, so that error events that BP considers likely are expanded earlier. A trust coefficient controls the influence of BP on each error event ; a global coefficient corresponds to the same value for all error events.
The search can also start from the BP output instead of the empty error set. With BP-based initialization, error events selected from the final BP hard decision form an initialization set, and Tesseract searches only for the detectors that this set leaves unexplained; we refer to this as the residual search. Since some selected events may be incorrect, the residual search uses a signed-cost objective that allows initialized events to be removed while keeping the channel-prior objective. A node-exploration limit bounds the residual search; if it is reached, the decoder falls back to BP-guided Tesseract on S. The overall decoding procedure is illustrated in Fig. 1.
A. BP Preprocessor
For the given triggered detector set , the decoder runs damped BP on the bipartite DEM graph. For each edge denotes the message from error event to detector node , and denotes the message in the reverse direction at iteration . Algorithm 1 describes the damped BP preprocessor. Its message updates and damping are those of standard damped sum-product BP (Section II-D); it is included here to define the stopping rule and the outputs used by the subsequent stages of the decoder. In Algorithm 1, is the undamped error-to-detector message, is the damping factor, denotes the marginal LLRs at iteration , and denotes the marginal probability history up to iteration .
If , the detector-matching decision is returned as the decoded error set, although it need not be a minimum-weight detector-matching set.
B. BP Weight Guidance
When BP does not produce a detector-matching hard decision within iterations, the final marginal probabilities are used to modify the Tesseract heuristic. For each error event , a trust coefficient controls the influence of its estimate.
We define the BP-guidance weight as
where is the channel-prior weight defined in (2).
Algorithm 1 Damped BP Preprocessor
1: Input: Triggered detector set , channel LLRs , DEM bipartite graph , damping factor , and maximum number of iterations
2: Output: BP hard decision , marginal LLRs , marginal probability history , and success flag
3: Initialize: and for every edge
4:
5: for to do
6: for all do
7:
8: end for
9: for all do
10:
11:
12: end for
13: for all do
14:
15:
16: end for
17:
18:
19: if then
20:
21: flag_{BP} \leftarrow 1
22: return , , , flag_{BP}
23: end if
24: end for
25:
26: return , , , flag_{BP}
For , the correction term is nonnegative: for , it increases for error events that BP considers unlikely. This correction guides the search: error events that BP identifies as unlikely are penalized in the expansion order through a larger correction term, while error events that BP identifies as likely receive a smaller correction term.
We substitute for in the heuristic of (5), giving the BP-informed heuristic . The path cost continues to use the channel-prior weights. The search priority is therefore
We refer to the Tesseract search with search priority as BP-guided Tesseract. Thus, BP changes the search order while the decoding objective remains the original channel-prior cost.
Under the nonnegative-weight condition for which is admissible, and using the same residual detector set and allowed events, implies .
Thus, may overestimate the remaining channel-prior cost. Admissibility is therefore not guaranteed for .
C. Trust Coefficients
The BP marginal probabilities may continue to change across iterations even with damping, and they can behave differently for different error events: some may settle, while others may continue to change or oscillate. To capture this variation, each error event has its own trust coefficient in (11). Each coefficient is computed directly from the marginal probability history , without separate tuning for individual error events.
Following the mean-change statistic of Yous et al. [25], we measure the mean absolute change in the marginal probability of over the last W BP iterations:
The per-error coefficient is then defined as
Since , . A marginal probability that changes very little has , whereas one that continues to change receives a smaller coefficient. We use this form because it decreases with , equals the largest value when the marginal probability does not change, keeps at least half of the BP correction for every error event, and requires no additional parameter. This coefficient measures how much the marginal probability changes. A stable but incorrect BP marginal probability can therefore receive a large coefficient.
A special case is the global coefficient, in which the same value is used for all error events. A larger gives the BP marginal probabilities greater influence on the search priority and can reduce the number of node expansions when the BP marginal probabilities are accurate. A smaller keeps the heuristic closer to the original channel-prior heuristic, reducing its dependence on potentially unreliable BP marginal probabilities. The value of is selected empirically by comparing several values, and we use for all codes. This value is the lower bound of the per-error coefficient in (14), corresponding to . Unlike the per-error coefficient, the global coefficient applies this value to every error event, regardless of the observed change in its marginal probability, so marginal probabilities that are stable but incorrect do not receive a larger coefficient. It also requires only one parameter to be selected.
D. BP-Based Initialization for Residual Search
The trust-coefficient mechanism described above guides the search; it does not alter the channel-prior-based path cost or restrict the candidate error sets.
BP-based initialization uses the BP output more directly, by starting the search from selected BP decisions rather than from the empty error set. We use a subset of the final BP hard decision to initialize a residual search. The initialization set is
where is a selection threshold. An error event is therefore included in the initialization only if it is present in the BP hard decision and its coefficient reaches the threshold. With , all events of are selected, as in the ungated initialization of Yous et al. [25]; the proposed decoder differs from that of [25] in the signed-cost objective and the node-exploration limit.
The residual search then starts with the residual detector set
The set contains the detectors whose parity is not matched by the selected initialization. To illustrate how a correct initialization can simplify the remaining decoding problem, let denote the underlying error-event set in the DEM representation, so that . This set is introduced only for analysis and is not known to the decoder. If , then, because is linear over ,
Under this condition, the residual detector set is produced by the remaining error events. The residual search can therefore require less search effort than a search starting from the original triggered detector set.
If a selected event is not in , the residual search can remove it. A lower threshold can include more error events in , whereas a higher threshold can include fewer. If no error event satisfies the selection condition, the initialization set is empty and .
E. Signed-Cost Objective for the Residual Search
For the residual detector set defined in (16), the residual search seeks a residual correction satisfying
The final error set is
The residual correction may contain events of . By (19), an event in is added to the initial estimate, while an event in is removed from it. By the linearity of over , a residual correction satisfying (18) gives
More than one residual correction can satisfy (18). We compare them using the channel-prior cost of the final error set, which is the objective of (3) and equals in (4). Since the DEM models error events as independent, and differ only by a constant independent of F, where is the probability of the error-event set under the DEM. Minimizing over detector-matching error sets therefore selects a most-likely error-event set.
Substituting gives
where
By (21), removing an initialized event changes by . A residual search with nonnegative edge costs would instead charge for this removal, overestimating its cost by and favoring solutions that retain incorrect initialized events. We therefore use the signed residual path cost
Since does not depend on , minimizing over is equivalent to minimizing . The mapping is a bijection between residual corrections satisfying and final error sets satisfying . Over all residual corrections satisfying (18), let
Then solves (3), and every solution of (3) corresponds to a minimizer of under this mapping. The residual search runs the Tesseract search on with path cost and the BP-informed heuristic to seek a solution of (24). Since for initialized events, removing such an event has a negative edge cost. Each initialized event can be removed at most once along a search path, so the path cost can decrease by at most ; if no initialized event is removed, all edge costs are nonnegative.
The pruned search is not guaranteed to find a global minimum. In addition, because permits negative increments, the BP-informed heuristic is not guaranteed to be a lower bound on the remaining signed cost.
F. Node-Limited Search
If some selected BP decisions are incorrect, the residual search must remove them through , which can require many node expansions. We limit each residual-search attempt to expanded nodes. If this limit is reached before the residual search terminates, its result is discarded and the decoder falls back to BP-guided Tesseract on the original triggered detector set S, starting from the empty error set.
The cutoff parameter , defined in (6), serves a different purpose: it restricts which nodes can be expanded according to the size of their residual detector set. In contrast, limits the number of expansions in the residual-search attempt. Algorithm 2 summarizes the complete decoding procedure.
Algorithm 2 Unified BP-Informed Decoder
1: Input: , , , , , , , , ; guidance (global or per-error); with or without BP-based initialization
2: Output: Decoded error set or decoding failure
3:
Algorithm 1
4: if then
5: return
6: end if
7: (global) or from (14)
8: Weights for
9: if BP-based initialization is not used then
10: return BP-guided Tesseract on from
11: end if
12:
13:
14: Run the residual search on with , , and limit
15: if the limit is reached then
16: return BP-guided Tesseract on from
17: else if a residual correction is found then
18: return
19: else
20: return failure (no detector-matching set found)
21: end if
TABLE I
DEM PARAMETERS OF THE THREE BB CODES.
| Code | Rounds | Detectors | Error events | Observables |
|---|---|---|---|---|
| [72, 12, 6] | 6 | 252 | 2,232 | 12 |
| [90, 8, 10] | 10 | 495 | 4,590 | 8 |
| [144, 12, 12] | 12 | 936 | 8,784 | 12 |
IV. RESULTS
We evaluate the proposed decoder on the [72,12,6], [90,8,10], and [144,12,12] BB codes from [30]. For each code, circuits are generated using STIM [11] for a Z-basis memory experiment, in which the logical qubits are prepared and measured in the Z basis, with r = d syndrome-extraction rounds. The resulting DEM dimensions are summarized in Table I.
We use the circuit-level depolarizing noise model in STIM and simulate physical error rates from p = 0.002 to 0.007 in steps of 0.001. For a fair comparison, all decoders are evaluated on the same detector samples. The normalized logical error rate per round is
where is the number of sampled shots and is the number of shots in which the decoded observable flips differ from the sampled ones. Error bars at all points show 95% Wilson score confidence intervals, computed for

Fig. 2. BP convergence rate versus damping factor at for the [72, 12, 6], [90, 8, 10], and [144, 12, 12] BB codes. Stars mark the adopted default for each code.
and divided by . In addition to the LER per round, we report the average number of Tesseract nodes expanded per shot, and the maximum priority-queue size reached during the search of a shot, averaged over all shots. A node is counted each time it is removed from the priority queue. For decoders with a node-exploration limit, the nodes expanded in an abandoned residual-search attempt are included in the node count.
The Tesseract search uses a cutoff on the residual detector count with , the value recommended in [22], priority-queue pruning with , and the at-most-two rule [22]. The value of is chosen to keep the simulation time of the larger codes manageable. These pruning settings are shared by all decoders. Queued nodes whose search-priority values exceed the cost of the best detector-matching error set found so far are discarded, and the search ends when the queue is empty.
The BP preprocessor uses the sum-product algorithm with a flooding schedule. The values of , , , , and , along with the configuration-specific values of , are described in the next subsection. We compare the Tesseract baseline, the proposed decoder and its variants, and the ungated initialization method of [25], named as in the figures. Tesseract () is the baseline search without BP. BP-informed guidance is the BP-guided Tesseract decoder: a detector-matching BP hard decision is accepted directly; otherwise, the BP marginal probabilities with guide the Tesseract search. The BP-based init. decoders start a residual search from the selected BP decisions and use the signed-cost objective. Each attempt is limited to node expansions. If the limit is reached, the shot is re-decoded with BP-informed guidance. Global uses the global coefficient and , whereas per-error uses the per-error coefficients from (14) with . Ungated init. is the ungated variant of the BP-based initialization of Yous et al. [25], which initializes from all events of the BP hard
TABLE II EFFECT OF THE GLOBAL TRUST COEFFICIENT FOR THE [72, 12, 6] CODE AT .
| Average nodes expanded | LER per round | |
|---|---|---|
| 0.0 | 617.0 | |
| 0.2 | 154.1 | |
| 0.4 | 69.2 | |
| 0.5 | 51.2 | |
| 0.6 | 42.0 | |
| 0.8 | 33.4 | |
| 1.0 | 27.3 |
decision, uses edge weights computed from the BP marginal probabilities for both the path cost and the heuristic, and has neither the signed-cost objective nor a node limit.
A. Parameter Selection
We first select the damping factor. Fig. 2 shows the fraction of shots for which BP produces a detector-matching hard decision as a function of . The results are obtained at using 10,000 shots for each value of and each code. We select , which increases the fraction of detector-matching shots compared with undamped BP () for all three codes, and use the same value for all codes and physical error rates. We fix the maximum number of BP iterations to and the window to the last 20% of the BP iterations, i.e., . For the [72, 12, 6] code at , shots for which BP produces a detector-matching hard decision require on average 7.8 iterations (median 5), well below .
Next, we select the global trust coefficient , which controls how strongly the BP marginal probabilities modify the search heuristic when BP does not produce a detector-matching hard decision. We evaluate the values of listed in Table II. The case provides a zero-correction reference corresponding to the original Tesseract heuristic. As shown in Table II, increasing generally reduces the number of expanded nodes, but the measured logical error rate is not monotonic. Compared with , which expands 617.0 nodes on average, expands 51.2 nodes while keeping a measured logical error rate comparable to the other tested values. We therefore select using the [72, 12, 6] code at and hold it fixed for the remaining codes and physical error rates.
For the configuration with global , we set , so all error events in the final BP hard decision satisfy the selection condition and form the initialization set. For the per-error configuration, we use for all three codes without further tuning. Since in (14) requires , an event is selected only if its marginal probability changes by at most 0.11 per iteration on average over the last BP iterations.
Finally, we select the node-exploration limit. The limit bounds the residual search started from the BP initialization. A smaller value therefore activates the fallback to BP-guided Tesseract earlier, whereas a larger value allows more node
TABLE III
BP-BASED INIT. (GLOBAL) WITH NODE-EXPLORATION LIMITS AND : LOGICAL ERROR RATE PER ROUND (LER) AND AVERAGE NUMBER OF NODES EXPANDED PER SHOT, AVERAGED OVER ALL SHOTS, INCLUDING THE SHOTS WITH A DETECTOR-MATCHING BP HARD DECISION, FOR WHICH NO NODE IS EXPANDED.
| Code | p | ||||
|---|---|---|---|---|---|
| LER | Nodes | LER | Nodes | ||
| [72, 12, 6] | 0.003 | 1.29 | 1.04 | ||
| 0.007 | 475 | 436 | |||
| [90, 8, 10] | 0.003 | 8.85 | 7.64 | ||
| 0.007 | 3,158 | 3,036 | |||
| [144, 12, 12] | 0.003 | 10.4 | 8.52 | ||
| 0.007 | 8,855 | 8,689 | |||
expansions in the residual search before falling back. Table III compares BP-based init. (global) with and , using the same global coefficient and selection threshold . The larger limit slightly reduces the average node count, while at the measured logical error rate is slightly higher, most noticeably for the [90, 8, 10] code. We therefore use as the default.
B. Global and Per-Error Trust Coefficients
Table IV compares BP-informed guidance using the global coefficient with the per-error coefficient .
For the [72, 12, 6] code, the two configurations have comparable measured logical error rates, while the per-error configuration expands fewer nodes than the global configuration at both tested values of . For the highest tested physical error rate, , the global and per-error configurations expand 519 and 196 nodes per shot, respectively.
The per-error configuration does not show the same improvement for the two larger codes. For the [90, 8, 10] code, the per-error configuration has a higher measured logical error rate than the global configuration at both tested values of , while its node count is similar at and lower at . For , the global and per-error configurations expand 3,282 and 2,325 nodes per shot, respectively. For the [144, 12, 12] code at the same physical error rate, the corresponding values are 9,761 and 22,526 nodes per shot, and the per-error configuration also has a higher measured logical error rate. The per-error coefficient gives each error event its own weight correction. A large per-error coefficient indicates that a marginal probability is stable, but does not guarantee that the preferred BP decision is correct. For the [90, 8, 10] and [144, 12, 12] codes, whose DEMs contain 4,590 and 8,784 error events, the per-error coefficient may place incorrectly favored error events earlier in the search order. This provides one possible explanation for the higher measured logical error rates. A global coefficient works better on the two larger codes and requires only one parameter to be selected. We therefore use the global coefficient as the main configuration and report the per-error coefficient as a supplementary comparison.
TABLE IV
LOGICAL ERROR RATE PER ROUND (LER) AND AVERAGE NUMBER OF NODES EXPANDED PER SHOT FOR TESSERACT AND FOR BP-INFORMED GUIDANCE WITH THE GLOBAL COEFFICIENT AND WITH THE PER-ERROR COEFFICIENT .
| Code | Decoder | ||||
|---|---|---|---|---|---|
| LER | Nodes | LER | Nodes | ||
| [72, 12, 6] | Tesseract | 51.5 | 3,883 | ||
| Global | 3.03 | 519 | |||
| Per-error | 2.81 | 196 | |||
| [90, 8, 10] | Tesseract | 273.7 | 15,803 | ||
| Global | 11.0 | 3,282 | |||
| Per-error | 11.1 | 2,325 | |||
| [144, 12, 12] | Tesseract | 1,043 | 38,702 | ||
| Global | 17.1 | 9,761 | |||
| Per-error | 22.1 | 22,526 | |||
C. Logical Error Rate per Round
Fig. 3 shows the logical error rate per round as a function of the physical error rate for the three codes. The comparison includes damped BP alone, the Tesseract baseline, the proposed decoder and its variants, and the ungated initialization method of [25], which we evaluate under circuit-level noise.
For the [72, 12, 6] code, BP-informed guidance, the proposed decoder, and its per-error variant give measured logical error rates close to the Tesseract baseline throughout the tested range. For this code, the BP output therefore does not cause a noticeable loss in accuracy.
For the [90, 8, 10] code, the decoders differ more clearly in their logical error rates. The ungated initialization has a higher measured logical error rate than the Tesseract baseline throughout the tested range: at , its measured value is approximately 6.2 times the baseline value ( versus ), and the ratio decreases to approximately 1.29 at . One possible reason is that, without the signed-cost objective, removing an incorrect initialized event is charged instead of , which biases the search toward keeping incorrect initialization events. In contrast, the proposed decoder remains close to the baseline over the tested range.
For the [144, 12, 12] code, the same pattern is observed, with lower logical error rates overall due to the larger code distance. The Tesseract baseline decreases from at to at , a much steeper decrease than for the [72, 12, 6] code, consistent with the stronger suppression expected at higher distance. The ungated initialization again has a higher measured logical error rate, approximately 4.0 times the baseline value at and 1.46 times at . BP-based initialization with global remains close to the baseline, whereas BP-based initialization with the per-error coefficient has a higher measured logical error rate at low . For this code, at , only a few logical failures are observed, so the corresponding confidence intervals are wide.

(a) [[72,12,6]]
(b) [[90,8,10]]
(c) [[144,12,12]]
Fig. 3. Logical error rate per round versus physical error rate for the [72, 12, 6], [90, 8, 10], and [144, 12, 12] codes. Error bars show 95% Wilson score confidence intervals; for damped BP alone, they are smaller than the markers. The comparison includes damped BP alone (), the Tesseract baseline, BP-informed guidance, the ungated variant of the initialization of [25], and the proposed BP-based initialization with the signed-cost objective and . All configurations use .
TABLE V
PERCENTAGE OF SHOTS ON WHICH BP CONVERGES (ACCEPTED DIRECTLY, NO TESSERACT SEARCH) FOR EACH CODE AND PHYSICAL ERROR RATE .
| [72, 12, 6] | [90, 8, 10] | [144, 12, 12] | |
|---|---|---|---|
| 0.002 | 99.3 | 98.3 | 97.4 |
| 0.003 | 97.6 | 94.3 | 91.7 |
| 0.004 | 93.5 | 84.8 | 80.1 |
| 0.005 | 85.2 | 71.7 | 59.1 |
| 0.006 | 72.1 | 44.0 | 33.9 |
| 0.007 | 56.0 | 26.5 | 14.3 |
For comparison, Fig. 3 also shows damped BP alone, where a shot is counted as a failure if BP does not converge or converges to a correction with a wrong logical observable. BP alone has a much higher logical error rate than all search-based decoders. At , it is about 5 times that of Tesseract for the [72, 12, 6] code and two to three orders of magnitude higher for the two larger codes, mainly because BP does not converge on these shots.
D. Average Number of Nodes Expanded
The top row of Fig. 4 shows the average number of nodes expanded per shot over all shots, including nodes expanded during both the residual-search attempt and any subsequent fallback to BP-guided Tesseract. Table V gives the percentage of shots on which BP converges, so that the Tesseract search is skipped. The convergence rate decreases as and the code size increase: at , BP converges on 99.3%, 98.3%, and 97.4% of the shots of the [72, 12, 6], [90, 8, 10], and [144, 12, 12] codes, respectively, whereas at it converges on only 56.0%, 26.5%, and 14.3%.
For the [72, 12, 6] code, BP-based initialization with global and reduces the average from 3,883 nodes for the Tesseract baseline to 475 at , an reduction. At
, BP-informed guidance reduces the average from 10.3 to 0.23 nodes, and BP-based initialization further reduces it to 0.066 nodes, an overall reduction of approximately . This is consistent with BP converging, and the Tesseract search being skipped, on the vast majority of shots at (Table V).
For the [90, 8, 10] code, BP-based initialization with global reduces the average from 15,803 to 3,158 nodes at , a reduction, and from 34.0 to 0.73 nodes at , a reduction.
For the [144, 12, 12] code, the node counts are substantially larger in absolute terms, reflecting the larger DEM in Table I: at , the Tesseract baseline expands 38,702 nodes per shot, approximately more than for the [72, 12, 6] code. BP-based initialization with global reduces this to 8,855 nodes, a reduction, and reduces the average from 114.5 to 0.45 nodes at , an approximately reduction.
At , BP-based initialization with global reduces the node count relative to BP-informed guidance by , , and for the [72, 12, 6], [90, 8, 10], and [144, 12, 12] codes, respectively. For all three codes, the reduction factor increases as the physical error rate decreases.
The ungated initialization behaves differently. It expands fewer nodes than the Tesseract baseline at low , but more for on the [90, 8, 10] and [144, 12, 12] codes; at , it expands and more nodes, respectively. Because this configuration has no additional node-exploration limit, it can spend more search effort on difficult shots, even though the shared cutoff and priority-queue pruning remain active.
E. Maximum Priority-Queue Size
The bottom row of Fig. 4 shows the maximum priority-queue size reached during the search of a shot, averaged over all shots. This quantity is a proxy for the peak memory demand of the search, which is relevant for hardware implementa-

(a) [[72,12,6]]
(b) [[90,8,10]]
(c) [[144,12,12]]
Fig. 4. Average number of nodes expanded per shot (top row) and maximum priority-queue size reached during the search of a shot, averaged over all shots (bottom row) versus physical error rate p. Columns correspond to the [72, 12, 6], [90, 8, 10], and [144, 12, 12] codes. Here, “global” denotes one coefficient for all error events, while “per-error” denotes the per-error coefficient . All BP-based initialization configurations use the signed-cost objective and .
tions with limited buffer size. For shots on which the node-exploration limit is reached, we take the larger of the maximum queue sizes reached during the residual and fallback searches.
For the code, BP-based initialization with global maintains a smaller queue than the Tesseract baseline at every tested rate: this quantity drops from 3,620 to 1,059 at , and from 208 to 1.42 at . For the two larger codes, the queue sizes are considerably larger, consistent with their larger DEMs. At , the reduction is smaller, and for the and codes, possibly because there are many competing low-weight candidates at this rate. Here the Tesseract baseline queue is close to , so its reported size underestimates that of a search without priority-queue pruning. As decreases, the reduction grows, reaching and at . At , BP-based initialization reduces this quantity relative to BP-informed guidance by , , and for the , , and codes, respectively. The per-error coefficient gives queue sizes similar to those of
the global .
In summary, with global , BP-based initialization keeps the measured logical error rate close to Tesseract and reduces both the number of expanded nodes and the queue size. The reductions are largest at low p, where BP converges on most shots.
V. CONCLUSION
We have proposed BP-Informed Tesseract, a decoder for quantum LDPC codes that uses the BP output to reduce the Tesseract search effort without changing the decoding objective. The BP marginal probabilities guide the search through trust coefficients, and selected events of the BP hard decision initialize a residual search. A signed-cost objective allows the residual search to remove incorrect initialized events while keeping the same channel-prior objective as Tesseract, and a node-exploration limit with fallback bounds the additional search effort when the initialization is poor.
Simulations on three BB codes under circuit-level noise show that the proposed decoder reduces the number of ex-panded nodes and the priority-queue size by up to more than two orders of magnitude at low physical error rates, while keeping logical error rates close to those of Tesseract. BP-based initialization with the signed-cost objective reduces the search effort beyond BP guidance without a noticeable loss of accuracy, and a global trust coefficient is sufficient, which keeps the decoder simple to configure.
Future work could explore extensions of the proposed method to the case of correlated detector error models, particularly those coupling X- and Z-sector events. Another direction is to combine the search with alternative BP preprocessors, such as Relay BP [20], and study how their message-passing dynamics interact with Tesseract's search. Reliability measures that identify incorrect BP decisions whose marginal probabilities have stabilized would also benefit both the trust coefficients and the selection of the initialization set. Finally, since BP is well suited to parallel FPGA implementations [39], whereas the Tesseract search relies on irregular priority-queue operations, a heterogeneous FPGA-CPU implementation of the proposed decoder is a natural direction toward real-time decoding.
ACKNOWLEDGMENT
The authors thank Lamia Yous for helpful discussions and for sharing the code of [25].
REFERENCES
[1] S. Javed, F. Garcia-Herrero, B. Vasić, and M. F. Flanagan, “Belief propagation-informed Tesseract decoder for quantum LDPC codes,” in Proc. IEEE Int. Conf. Quantum Comput. Eng. (QCE), Sep. 2026.
[2] A. Montanaro, “Quantum algorithms: An overview,” npj Quantum Inf., vol. 2, p. 15023, Jan. 2016.
[3] P. W. Shor, “Scheme for reducing decoherence in quantum computer memory,” Phys. Rev. A, vol. 52, no. 4, pp. R2493–R2496, Oct. 1995.
[4] J. Preskill, “Quantum computing in the NISQ era and beyond,” Quantum, vol. 2, p. 79, Aug. 2018.
[5] A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, “Surface codes: Towards practical large-scale quantum computation,” Phys. Rev. A, vol. 86, no. 3, p. 032324, Sep. 2012.
[6] M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th ed. Cambridge University Press, 2010.
[7] A. Y. Kitaev, “Quantum computations: Algorithms and error correction,” Russian Math. Surveys, vol. 52, no. 6, pp. 1191–1249, Dec. 1997.
[8] S. Bravyi and A. Kitaev, “Universal quantum computation with ideal Clifford gates and noisy ancillas,” Phys. Rev. A, vol. 71, no. 2, p. 022316, Feb. 2005.
[9] D. Litinski, “Magic state distillation: Not as costly as you think,” Quantum, vol. 3, p. 205, Dec. 2019.
[10] B. M. Terhal, “Quantum error correction for quantum memories,” Rev. Mod. Phys., vol. 87, no. 2, pp. 307–346, Apr. 2015.
[11] C. Gidney, “Stim: A fast stabilizer circuit simulator,” Quantum, vol. 5, p. 497, Jul. 2021.
[12] Z. Babar, P. Botsinis, D. Alanis, S. X. Ng, and L. Hanzo, “Fifteen years of quantum LDPC coding and improved decoding strategies,” IEEE Access, vol. 3, pp. 2492–2519, Nov. 2015.
[13] D. Poulin and Y. Chung, “On the iterative decoding of sparse quantum codes,” Quantum Inf. Comput., vol. 8, no. 10, pp. 987–1000, Nov. 2008.
[14] N. Raveendran and B. Vasić, “Trapping sets of quantum LDPC codes,” Quantum, vol. 5, p. 562, Oct. 2021.
[15] J. Roffe, D. R. White, S. Burton, and E. Campbell, “Decoding across the quantum low-density parity-check code landscape,” Phys. Rev. Res., vol. 2, no. 4, p. 043423, Dec. 2020.
[16] J. du Crest, M. Mhalla, and V. Savin, “Stabilizer inactivation for message-passing decoding of quantum LDPC codes,” in 2022 IEEE Information Theory Workshop (ITW), Nov. 2022, pp. 488–493.
[17] J. du Crest, F. Garcia-Herrero, M. Mhalla, V. Savin, and J. Valls, “Check-agnosia based post-processor for message-passing decoding of quantum LDPC codes,” Quantum, vol. 8, p. 1334, May 2024.
[18] 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., vol. 16, p. 8214, Sep. 2025.
[19] H. Yao, W. A. Laban, C. Häger, A. Graell i Amat, and H. D. Pfister, “Belief propagation decoding of quantum LDPC codes with guided decimation,” in 2024 IEEE International Symposium on Information Theory (ISIT), Jul. 2024, pp. 2478–2483.
[20] T. Müller, T. Alexander, M. E. Beverland, M. Bühler, B. R. Johnson, T. Maurer, and D. Vandeth, “Improved belief propagation is sufficient for real-time decoding of quantum memory,” Jun. 2025, arXiv:2506.01779.
[21] M. Wang, A. Li, and F. Mueller, “Fully Parallelized BP Decoding for Quantum LDPC Codes Can Outperform BP-OSD,” in 2026 IEEE International Symposium on High Performance Computer Architecture (HPCA), 2026, pp. 1–14.
[22] L. Aghababaie Beni, O. Higgott, and N. Shotty, “Tesseract: A search-based decoder for quantum error correction,” Mar. 2025, arXiv:2503.10988.
[23] K. R. Ott, B. Hétényi, and M. E. Beverland, “Decision-tree decoders for general quantum LDPC codes,” Feb. 2025, arXiv:2502.16408.
[24] D. Grbic, L. Aghababaie Beni, and N. Shotty, “Accelerating the Tesseract decoder for quantum error correction,” Feb. 2026, arXiv:2602.02985.
[25] L. Yous, F. Garcia-Herrero, and M. F. Flanagan, “Accelerating A*-based algorithms for decoding quantum low-density parity-check codes,” in 2026 IEEE 37th International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC), Sep. 2026, pp. 1–6.
[26] N. P. Breuckmann and J. N. Eberhardt, “Quantum low-density parity-check codes,” PRX Quantum, vol. 2, p. 040101, Oct. 2021.
[27] D. J. C. MacKay, G. Mitchison, and P. L. McFadden, “Sparse-graph codes for quantum error correction,” IEEE Trans. Inf. Theory, vol. 50, no. 10, pp. 2315–2330, Oct. 2004.
[28] A. R. Calderbank and P. W. Shor, “Good quantum error-correcting codes exist,” Phys. Rev. A, vol. 54, no. 2, pp. 1098–1105, Aug. 1996.
[29] A. M. Steane, “Multiple-particle interference and quantum error correction,” Proc. R. Soc. Lond. A, vol. 452, no. 1954, pp. 2551–2577, Nov. 1996.
[30] 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, vol. 627, no. 8005, pp. 778–782, Mar. 2024.
[31] J.-P. Tillich and G. Zémor, “Quantum LDPC codes with positive rate and minimum distance proportional to ,” IEEE Trans. Inf. Theory, vol. 60, no. 2, pp. 1193–1202, Feb. 2014.
[32] P. Panteleev and G. Kalachev, “Degenerate quantum LDPC codes with good finite length performance,” Quantum, vol. 5, p. 585, Nov. 2021.
[33] K. Kasai, “Breaking the Orthogonality Barrier in Quantum LDPC Codes,” Quantum, vol. 10, p. 2205, Sep. 2026.
[34] A. deMarti iOlius, I. Etxezarreta Martinez, J. Roffe, and J. Etxezarreta Martinez, “An almost-linear time decoding algorithm for quantum LDPC codes under circuit-level noise,” npj Quantum Inf., Jun. 2026.
[35] M. Ye, D. Wecker, and N. Delfosse, “Beam search decoder for quantum LDPC codes,” Dec. 2025, arXiv:2512.07057.
[36] P. E. Hart, N. J. Nilsson, and B. Raphael, “A formal basis for the heuristic determination of minimum cost paths,” IEEE Trans. Syst. Sci. Cybern., vol. 4, no. 2, pp. 100–107, Jul. 1968.
[37] F. R. Kschischang, B. J. Frey, and H.-A. Loeliger, “Factor graphs and the sum-product algorithm,” IEEE Trans. Inf. Theory, vol. 47, no. 2, pp. 498–519, Feb. 2001.
[38] J.-C. Sibel, “Region-based approximation to solve inference in loopy factor graphs: Decoding LDPC codes by the Generalized Belief Propagation,” PhD thesis, Université de Cergy Pontoise, 2013.
[39] 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, vol. 9, pp. 138 734–138 744, Oct. 2021.