A Mixture of Experts Vision Transformer for High-Fidelity Surface Code Decoding
Hoang Viet Nguyen, Manh Hung Nguyen, Hoang Ta, Van Khu Vu, Yeow Meng Chee
TL;DR
This work addresses the challenge of decoding topological quantum error-correcting codes with scalable, real-time performance. It develops QuantumSMoE, a Vision Transformer-based decoder that embeds the toric code's geometry via PlusConv2D, enforces locality with Adaptive Masking, and scales capacity with a SoftMoE layer aided by a slot orthogonality loss. The approach yields superior logical error rates (LER) compared to classical and ML baselines, while maintaining competitive bit error rates (BER) across multiple code distances under depolarizing noise. By explicitly leveraging lattice structure and a scalable mixture-of-experts design, the method demonstrates significant practical potential for real-time quantum error correction and paves the way for applying similar inductive biases to other topological codes and noise models.
Abstract
Quantum error correction is a key ingredient for large scale quantum computation, protecting logical information from physical noise by encoding it into many physical qubits. Topological stabilizer codes are particularly appealing due to their geometric locality and practical relevance. In these codes, stabilizer measurements yield a syndrome that must be decoded into a recovery operation, making decoding a central bottleneck for scalable real time operation. Existing decoders are commonly classified into two categories. Classical algorithmic decoders provide strong and well established baselines, but may incur substantial computational overhead at large code distances or under stringent latency constraints. Machine learning based decoders offer fast GPU inference and flexible function approximation, yet many approaches do not explicitly exploit the lattice geometry and local structure of topological codes, which can limit performance. In this work, we propose QuantumSMoE, a quantum vision transformer based decoder that incorporates code structure through plus shaped embeddings and adaptive masking to capture local interactions and lattice connectivity, and improves scalability via a mixture of experts layer with a novel auxiliary loss. Experiments on the toric code demonstrate that QuantumSMoE outperforms state-of-the-art machine learning decoders as well as widely used classical baselines.
