Source-linked AI summary

Logical Neural Belief Propagation for Linear-Complexity Decoding of Surface Codes

Hee-Youl Kwak, Seong-Joon Park, Dae-Young Yun, Eliya Nachmani, Jae-Won Kim

arXiv:2608.27682v1quant-phcs.IT

TL;DR

Quantum error-correction decoders need high logical accuracy and efficient scaling, but conventional BP has limited accuracy on surface codes. L-NBP combines neural BP with logical-level classification and achieves competitive accuracy with linear complexity, including a 17.5% depolarizing-noise threshold and much lower circuit-level complexity than BP-OSD.

  • Problem

    Quantum error-correction decoders must achieve low logical error rates with very low complexity, while conventional BP remains limited in surface-code accuracy and threshold behavior.

    Source: §I · p. 1
  • Method

    L-NBP trains an NBP module and logical classifier end-to-end so posterior beliefs become a continuous soft syndrome for logical-operator prediction.

    Source: §I · p. 1, A. Logical Classifier · p. 4
  • Results

    L-NBP matches or outperforms BP-OSD and MWPM, reaches a 17.5% depolarizing-noise threshold, and matches BP-OSD accuracy at distance 9 under circuit-level noise using about 0.2% of its complexity.

    Source: §I · pp. 1–2
  • Takeaways & Limitations

    Logical-level classification lets L-NBP retain BP’s linear complexity while achieving high accuracy across the evaluated surface-code noise models.

    Source: §V · p. 9

Abstract

from arXiv · show

Quantum error correction (QEC) requires decoders that achieve high logical accuracy while scaling efficiently with the code length. Belief propagation (BP) is attractive for its linear decoding complexity, but conventional BP decoders often fail to reach sufficient logical accuracy on surface codes. We propose Logical Neural Belief Propagation (L-NBP), a BP-based neural decoder that redirects the decoding objective from physical-level decoding to logical-level decoding. L-NBP first runs a neural BP (NBP) module that produces posterior beliefs, and a logical classifier then transforms these beliefs into a continuous-valued soft syndrome and predicts the logical operator. Because all components in L-NBP are trainable by backpropagation, L-NBP is trained end-to-end, so that the NBP module learns to extract soft syndromes that are favorable for logical classification. On surface codes, L-NBP matches or outperforms the BP with ordered-statistics decoding (BP-OSD) and minimum-weight perfect matching (MWPM) while retaining the linear complexity of BP, and achieves a threshold of $17.5\%$ under depolarizing noise. Moreover, under circuit-level noise, L-NBP matches the accuracy of BP-OSD on the distance-$9$ surface code while requiring only $0.2\%$ of its complexity. These results show that combining BP, neural weights, and logical-level decoding enables scalable and high-accuracy quantum decoding.

I. INTRODUCTION

Surface-code decoders must combine low logical error rates with extremely low complexity. L-NBP addresses BP’s accuracy limitations by training neural BP for logical-level classification while retaining linear complexity.

  • Surface-code decoders must achieve low logical error rates within quantum coherence times, requiring extremely low computational complexity.Source: §I · p. 1
  • BP scales linearly with code length but lacks sufficient surface-code accuracy because of short cycles and quantum degeneracy.Standalone BP and NBP also lack clear threshold behavior.Source: §I · p. 1
  • L-NBP redirects decoding from physical-error recovery to logical-operator prediction using neural BP and a trainable logical classifier.The classifier converts posterior beliefs into a soft syndrome before predicting the logical operator.Source: §I · p. 1
  • 17.5% is L-NBP’s depolarizing-noise threshold, exceeding MWPM (14.5%) and BP-OSD (16.5%).Source: §I · pp. 1–2
  • At distance 9 under circuit-level noise, L-NBP matches BP-OSD and Relay-BP accuracy while requiring about 0.2% and 0.06% of their respective complexities.Its compact soft-syndrome representation preserves linear O(n) complexity per round.Source: §I · p. 2
  • L-NBP combines a lightweight logical classifier with linear-complexity neural BP, contrasting with higher-complexity post-processing and high-capacity neural decoders.Source: A. Related Work · p. 2

B. Quantum BP and NBP Decoders

Quantum BP estimates physical errors by iterative message passing over a Tanner graph, while NBP introduces trainable message weights. Decoding outcomes are classified by syndrome consistency and the residual operator’s stabilizer or logical status.

C. Logical-Level Decoding

Logical-level decoding estimates the logical operator rather than the exact physical error, then combines it with a syndrome-determined pure error to form recovery. L-NBP implements this through neural BP beliefs, a soft syndrome, and logical classification.

  • Logical-level decoding focuses on estimating the logical operator because the exact physical error is not the final QEC objective.Source: C. Logical-Level Decoding · p. 3
  • The recovery is constructed deterministically as Ê = L̂T(s), combining the estimated logical operator with the pure error fixed by the measured syndrome.Source: C. Logical-Level Decoding · pp. 3–4
  • For one logical qubit, the decoder performs four-way classification over Ī, X̄, Z̄, and Ȳ.Source: C. Logical-Level Decoding · p. 4
  • L-NBP runs NBP on the measured syndrome, converts posterior LLRs into a soft syndrome, and predicts the logical operator.Source: §III · p. 4, Figure 2 · p. 4

A. Logical Classifier

The logical classifier converts NBP posterior beliefs into a continuous soft syndrome and predicts one of four logical operators. Learnable aggregation, normalization, and a lightweight neural network make the representation suitable for logical classification.

  • The NBP module supplies posterior LLRs representing beliefs about whether estimated errors commute or anticommute with stabilizers.Source: A. Logical Classifier · p. 4
  • Edge-wise posterior LLRs are aggregated at each check node using the min-sum rule to form soft syndromes.Source: A. Logical Classifier · p. 4
  • Soft syndromes across iterations are combined with trainable weights, then normalized by a learnable temperature and passed through tanh.Source: A. Logical Classifier · p. 4
  • The resulting soft syndrome combines NBP beliefs with the measured syndrome, takes values in [−1, 1], and encodes decision confidence through its magnitude.Source: A. Logical Classifier · p. 4
  • A single-hidden-layer MLP maps the soft syndrome to four logits, and the largest logit determines the predicted logical operator and final recovery.Source: A. Logical Classifier · p. 5

B. L-NBP Decoding

L-NBP composes neural belief propagation with a logical classifier and trains both stages jointly. Redirecting optimization toward logical classification yields lower LER than NBP and surpasses BP-OSD in the reported d = 9 experiment.

  • L-NBP composes an NBP module that produces posterior beliefs with a logical classifier that converts them into a soft syndrome and output logits.Source: B. L-NBP Decoding · p. 5
  • All components are piecewise differentiable, allowing end-to-end training through the logical classifier into the NBP module.Source: B. L-NBP Decoding · p. 5
  • The decoder is optimized with a logical-level cross-entropy loss rather than an additional physical-level loss for the NBP module.Source: B. L-NBP Decoding · p. 5
  • At p = 0.05 for the d = 9 surface code, NBP improves on BP but saturates, whereas L-NBP achieves a larger improvement and surpasses BP-OSD.Source: B. L-NBP Decoding · p. 5, Figure 3 · p. 5

C. Qualitative Analysis via t-SNE Visualization

t-SNE visualizations show the L-NBP soft-syndrome representation becoming progressively more separable by logical operator during training. By the end, the four classes form compact, clearly separated clusters.

D. Extension to Multi-Round Measurement Models

L-NBP extends to phenomenological and circuit-level noise by processing multi-round detector information with an extended stabilizer matrix and compressing it into a fixed-size soft syndrome. This preserves the same logical-classifier interface while avoiding the larger circuit-level fault graph.

IV. SIMULATION RESULTS

Across code-capacity, phenomenological, and circuit-level noise, L-NBP matches or exceeds strong decoders while preserving a low iteration budget and favorable accuracy–complexity trade-offs. It achieves clear threshold behavior and substantially lower complexity than BP-OSD.

LER Comparison

  • L-NBP matches or exceeds BP-OSD and MWPM across code-capacity, phenomenological, and circuit-level noise models.The comparison uses LER, with code-capacity at d = 13 and the other models at d = 9.Source: A. LER Comparison · p. 7, Figure 5 · p. 7

Circuit-Level Noise

  • 60 iterations: L-NBP is only slightly worse than Relay-BP under circuit-level noise despite Relay-BP using up to 18,080 iterations.The circuit-level comparison reports LER per round.Source: A. LER Comparison · p. 7

Threshold Behavior

  • 17.5% threshold: L-NBP exhibits clear threshold behavior under the code-capacity model, unlike NBP.NBP degrades as code distance increases and shows no threshold.Source: A. LER Comparison · p. 8, Figure 6 · p. 8

Accuracy–Complexity Trade-off

  • 0.89 M FLOPs at a 17.5% threshold: L-NBP achieves the best accuracy–complexity trade-off among the compared decoders at d = 13.BP-OSD reaches a 16.5% threshold at 1.95 M FLOPs, while QECCT and AMBP require substantially more computation.Source: A. LER Comparison · p. 8, Figure 6 · p. 8

B. Complexity Analysis

L-NBP preserves linear complexity while matching or outperforming more expensive decoders across noise models. Its advantage grows with code length, especially against BP-OSD under phenomenological and circuit-level noise.

  • L-NBP preserves overall linear O(n) complexity because soft-syndrome extraction and logical classification each scale linearly with code length.Source: B. Complexity Analysis · p. 8, Figure 7 · p. 9
  • MWPM is omitted from the FLOPs comparison because its combinatorial matching is not directly measurable in FLOPs.Source: B. Complexity Analysis · p. 8
  • 0.2% of BP-OSD complexity is required by L-NBP at d = 9 under circuit-level noise, a 99.8% reduction.L-NBP uses the compact extended stabilizer matrix, while BP-OSD operates on the much larger HDEM.Source: B. Complexity Analysis · pp. 8–9
  • L-NBP maintains linear complexity while matching or outperforming superlinear-complexity MWPM and BP-OSD decoders across noise models.Under code-capacity noise, it attains a 17.5% threshold and the best reported accuracy–complexity trade-off.Source: §V · p. 9

Appendix A: BP and NBP Message Update Rules

The NBP appendix defines trainable message updates built on quantum BP structure. Weighted extrinsic combinations, syndrome-aware check-node updates, damping, and fixed prior initialization form the message-passing procedure.

  • Initial prior LLRs are assigned from the noise model, with each Pauli error occurring at probability p/3 under depolarizing noise.The implementation uses a fixed initialization p = 0.1 because the exact physical error rate is often unavailable.Source: Appendix A · p. 9
  • At each iteration, messages are exchanged between variable nodes and check nodes for each error type.Variable-node messages begin from initialized messages and are updated using incoming check-node information.Source: Appendix A · p. 9
  • Check-node messages incorporate the measured syndrome bit through a min-sum rule, while variable-node updates use weighted extrinsic combinations.Only stabilizers that anticommute with the error type contribute to the extrinsic sum.Source: Appendix A · p. 10
  • A damping step mixes updated messages with previous-iteration messages to improve convergence on graphs with short cycles.Source: Appendix A · p. 10
  • NBP replaces plain variable-node and posterior sums with weighted sums controlled by trainable parameters θN.Classical BP fixes these weights to one, while weighted BP uses a single fixed scaling factor for check-node messages.Source: Appendix A · p. 10

Appendix B: Training and Evaluation Details

The appendix specifies the training protocol, circuit-level evaluation setup, and ablations testing how soft syndromes and end-to-end training affect logical decoding. Results support jointly trained soft-syndrome processing over hard or independently trained alternatives.

  • L-NBP training uses Adam for 1000 epochs, with learning rate 10^-4, cosine annealing, Xavier initialization, and a batch size of 256.Source: Appendix B · p. 10
  • 60 BP iterations and a logical-classifier hidden dimension h = 256 are used, with iteration sampling interval Δ = 10.For d = 9 code-capacity training, one epoch takes about 30 seconds and the full run roughly 8 hours on an NVIDIA RTX A5000 GPU.Source: Appendix B · p. 10
  • Threshold estimates use at least 10^5 Monte Carlo trials and continue until at least 1000 logical failures are collected.The threshold is defined as the crossing point among logical-error-rate curves for different code distances.Source: Appendix B · p. 10
  • The circuit-level experiment uses Stim’s rotated surface-code memory circuit with R = d syndrome-extraction rounds and depolarizing errors after Clifford gates.Reset and measurement flip probabilities are set to p, with single- and two-qubit Pauli probabilities p/3 and p/15.Source: Appendix C · p. 10

Ablation Study

  • Only the E2E-trained L-NBP soft syndrome forms compact, well-separated clusters by logical operator in the t-SNE visualization.The comparison includes measured hard syndromes, untrained BP soft syndromes, and independently trained NBP soft syndromes.Source: Figure 8 · p. 11
  • 2.3 × 10^-2 logical error rate is achieved by the standalone MLP variant that directly classifies the measured hard syndrome at d = 11.This is substantially worse than the L-NBP baseline, indicating that direct lightweight MLP classification is insufficient.Source: Appendix D · p. 11
  • Hard residual-syndrome processing remains poor because hard decisions block gradients through NBP and discard information useful for logical classification.Source: Appendix D · p. 11
  • Independently training and freezing NBP before classifier training performs poorly, showing that NBP must be optimized jointly for the logical objective.Source: Appendix D · p. 11
Loading 2608.27682v1…