arXiv:2608.27682quant-phAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.27682

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hee-Youl Kwak 1^{1}, Seong-Joon Park 2^{2}, Dae-Young Yun 1,∗^{1,*}, Eliya Nachmani 3^{3}, and Jae-Won Kim 4,∗^{4,*}

1^{1}Department of Electrical, Electronic and Computer Engineering, University of Ulsan, Ulsan 44610, South Korea

2^{2}Department of Electrical Engineering, Pohang University of Science

and Technology (POSTECH), Pohang, Gyeongbuk 37673, South Korea

3^{3}School of Electrical and Computer Engineering, Ben-Gurion University of the Negev, Israel

4^{4}Department of Electronic Engineering, Gyeongsang National University, Jinju 52828, South Korea

(Dated: August 31, 2026)

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

Quantum computing promises significant advantages for solving certain classically intractable problems [1–5]. To realize this potential at scale, quantum error correction (QEC) is indispensable for protecting quantum information from noise [6–9]. Among existing QEC codes, surface codes are a leading candidate owing to their high error threshold and local connectivity [10–12]. Surface codes can exhibit a threshold behavior: once the physical error rate falls below a threshold value, the logical error rate (LER) decreases as the code distance d grows.

QEC decoders must achieve a low LER while operating within the coherence time of the quantum system, demanding extremely low computational complexity [13–15]. Minimum-weight perfect matching (MWPM) [11, 12, 16] is a standard decoder for surface codes, but it has worst-case superlinear complexity. Belief propagation (BP) [17–19] is attractive from a scalability viewpoint because its message-passing complexity scales linearly with the code length. However, BP alone is not sufficiently accurate for surface codes because of short cycles and quantum degeneracy [19, 20]. Neural belief propagation (NBP) improves BP by introducing trainable weights that break the symmetry of messages [21]. Nevertheless, the accuracy of standalone BP and NBP remains limited, and neither exhibits clear threshold behavior.

In this work, we propose logical NBP (L-NBP), a BP-based neural decoder that redirects the decoding objective from physical-level decoding to logical-level decoding. Rather than identifying a physical error pattern, L-NBP couples NBP with a logical classifier that predicts the logical operator induced by the physical error. The decoder first processes the measured hard syndrome with an NBP stage to produce posterior beliefs. A logical classifier then converts these beliefs into a continuous-valued soft syndrome and maps it to the logical operator by a lightweight neural network. Because all operations in L-NBP are trainable, the decoder is trained end-to-end (E2E) with a logical-level classification loss [22]. The key point is that NBP is trained not to recover the underlying physical error, but to extract a soft syndrome that is useful for inferring the correct logical operator. As a result, unlike decoders built on high-capacity architectures such as transformers [23–25], L-NBP achieves a low LER even with a logical classifier implemented as a simple multilayer perceptron (MLP). At the same time, since both the NBP stage and the logical classifier have linear complexity, L-NBP is a linear-complexity decoder.

We evaluate L-NBP under the code-capacity noise model with depolarizing noise. Numerical results show that, merely by changing the decoding objective from physical to logical, L-NBP significantly outperforms NBP. Moreover, despite preserving the linear-complexity scaling, L-NBP matches or outperforms superlinear-complexity decoders such as MWPM [11, 12, 16] and BP with ordered-statistics decoding (BP-OSD) [26, 27]. Under the code-capacity model, L-NBP attains a threshold of 17.5%, exceeding those of MWPM (14.5%) and

*Corresponding authors: yundy@ulsan.ac.kr and jae-won07.kim@gnu.ac.kr

BP-OSD (16.5%) and other high-complexity decoders such as quantum error correction code transformer (QECCT) [23] and BP with additional memory effects (AMBP) [28].

We further evaluate L-NBP under the phenomenological and circuit-level noise models [11, 29], in which the syndrome is measured over multiple rounds. Under circuit-level noise, BP-OSD operates on the detector error model (DEM), whose graph contains a large number of fault nodes spread across the measurement rounds, so its complexity grows rapidly. L-NBP avoids this cost: since its NBP module only needs to produce a soft syndrome, it operates on a compact extended stabilizer matrix whose column count remains the code length n perround. Moreover, because the soft syndrome is a compressed quantity that is independent of the number of rounds, the logical classifier retains exactly the same structure as in the single-round case. Consequently, L-NBP preserves its linear O(n)\mathcal{O}(n) complexity per round even at the circuit level, irrespective of the number of faults. At d = 9, L-NBP achieves accuracy comparable to both BP-OSD and Relay-BP [30] while requiring only about 0.2% and 0.06% of their respective complexities.