Continuous Relaxation Decoding for CSS Quantum LDPC Codes: Energy Landscape, Basin Geometry, Gradient Dynamics, and Hardware Implementation
Yannick Schmitt
Abstract
This repository contains the full research for a novel approach to decoding Quantum Low-Density Parity-Check (QLDPC) codes via continuous optimization. Moving away from traditional message-passing or combinatorial algorithms, this work introduces a syndrome-agnostic energy landscape—a "squared-spring" potential where global minima correspond exactly to valid codewords. The decoder operates as a codeword projector, using gradient dynamics to navigate the continuous relaxation of the binary error space. Key Contributions The Energy Landscape: Formalization of the squared-spring Hamiltonian $H(v)$, proving that valid codewords are the only points with zero energy and zero gradient (Theorem 3.4). Basin Geometry & Convergence: Analytical derivation of the exact Hessian and gradient at valid codewords (Theorems 4.1, 4.3). The work defines three nested radii ($r_{loc}$, $r_{barrier}$, $r_{emp}$) that characterize the decoder’s convergence behavior. The Girth–Trap Hypothesis: An empirical finding that challenges existing intuition; data demonstrates that higher girth does not necessarily prevent decoder trapping, with girth-8 codes observed to trap at higher rates than girth-4 variants. Optimal λ Heuristic: Discovery of a universal scaling law $\lambda^* \approx (3/16)\bar{d}$ for the regularization parameter, verified across eight independent CSS code families. Hardware Acceleration: A high-throughput implementation leveraging PyTorch and CUDA, achieving >86,000 syndromes per second, representing a ~28,000× speedup over serial Python implementations. Contents Core Library: `continuous_relaxation_decoder.py` — A modular Python library for CSS code construction, GF(2) linear algebra, and energy-based decoding. Verification Suite: `verification_ContinuousRelaxationDecoder.py` — A self-contained script that numerically verifies every theorem and proposition in the paper to machine precision. Computational Experiments: Momentum and Langevin dynamics comparisons. Failure mode census and pseudo-codeword barrier height calculations. Causal Diamond (CD) geometry analysis and [[208, 16, 6]] distance certification. Manuscript: LaTeX source and compiled PDF of the paper. Testbed CodesThe results are benchmarked on several high-performance QLDPC codes, including: [[193, 25, 4]] D4 Causal Diamond Hypergraph Product (HGP) code. [[112, 4, (6,6)]] and [[176, 32, (3,6)]] augmented-seed codes. Various Generalised Bicycle and CSS-LDPC code families.