arXiv:2610.25213quant-phOct 2026

Manuscript Offprint

arXiv:2610.25213

LiftDiff: Guided Discrete Diffusion for Quantum Code Construction

Yotam Peled, Eliya Nachmani

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

ABSTRACT

The realization of fault-tolerant quantum computation relies on Quantum Error-Correcting Codes (QECC). Of particular interest are codes that combine a high encoding rate with sufficient distance. Existing algebraic constructions, such as lifted product (LP) codes, build a large quantum low-density parity-check (qLDPC) code from a classical base matrix. In this work we introduce LiftDiff, a generative approach to the discovery of QECC. A discrete denoising diffusion model is trained to generate base matrices over the group algebra F2[Zℓ]\mathbb{F}_2[\mathbb{Z}_\ell], which are then expanded into LP codes. The reverse diffusion process is guided by an energy function that evaluates quantum code properties, including girth, degree, sparsity and decoding performance, steering the sampler toward matrices that yield LP codes with favorable parameters. Our method discovers codes with parameters such as [[169, 13, 11]], [[143, 15, 9]], and [[260, 24, 10]], including a [[247, 19, 14]] code that achieves the highest kd2/nkd^2/n among the baselines. Moreover, several discovered codes outperform the Gross code across a broad range of the tested physical error rates under both code-capacity and circuit-level noise.

1 INTRODUCTION

Quantum computing harnesses the laws of quantum mechanics to perform computation, giving rise to a fundamentally different computational paradigm from classical computing. This paradigm has the potential to provide substantial computational advantages for problems that are difficult to solve using classical methods (Shor, 1997; Grover, 1996; Gidney & Ekerå, 2021; Feynman et al., 2018). Quantum systems are, however, exceptionally noisy. The qubit, the elementary unit of quantum information, is coupled to its environment, and the resulting decoherence destroys the superpositions and phase relations on which the computation depends. Errors therefore accumulate before a computation of useful length can be completed. Quantum Error Correction (QEC) (Calderbank & Shor, 1996) is thus indispensable for the realization of a quantum computer. Shor's first QEC scheme (Shor, 1995) demonstrated that these obstacles can be overcome, and that quantum information can be protected despite the impossibility of copying it and the continuous nature of the errors that afflict it. Considerable progress has been made since through the stabilizer formalism (Gottesman, 1997). Within the stabilizer framework, Calderbank-Shor-Steane (CSS) codes (Steane, 1996; Calderbank & Shor, 1996) form an important class of QECC constructed from two parity check matrices satisfying an orthogonality condition. Their structure separates the correction of bit-flip and phase-flip errors. Among the QEC schemes proposed, the surface code (Kitaev, 1997; Bravyi & Kitaev, 1998; Kitaev, 2003; Dennis et al., 2002) has received the most attention. It tolerates a comparatively high physical error rate, and efficient decoders for it are available. Its drawback is the encoding rate. A surface code patch encodes a single logical qubit into a number of physical qubits that grows quadratically with the distance, so its encoding rate vanishes as the protection is increased. This has motivated the search for codes that keep the parity checks sparse while encoding many logical qubits in the same block. Classical LDPC codes combine sparse checks with efficient message-passing decoding and performance close to capacity, and recent years have seen sustained effort to create qLDPC codes (Breuckmann & Eberhardt, 2021), where the checks must in addition commute. The Hypergraph Product (HGP) (Tillich & Zemor, 2014) provides a way to construct a qLDPC code using the parity check matrix of two classical codes. The LP construction replaces the binary entries of the base ma-trix with elements of a group algebra (Panteleev & Kalachev, 2022), allowing the constructed codes to achieve high encoding rate and distance. Among the most promising qLDPC constructions are the Bivariate Bicycle (BB) (Bravyi et al., 2024) codes, whose CSS structure is defined through a pair of polynomials in the ring F2[x,y]/(xℓ−1,ym−1)\mathbb{F}_2[x, y]/(x^\ell - 1, y^m - 1). Machine learning has been applied to a range of problems in the domain of quantum computing, such as quantum error decoding (Wang & Tang, 2024; Bausch et al., 2024; Senior et al., 2026; Chamberland et al., 2026) and the design of QECC (Olle et al., 2024; Su et al., 2025; Liu & Marquardt, 2026; Yan et al., 2026b; Cruz-Benito et al., 2026). Several approaches have been used to search the space of QECC. However, the discrete and combinatorial nature of the design space, together with the costly evaluation of the resulting codes, makes efficiently navigating this space challenging, particularly for larger constructions. Generative models offer another approach to this problem. A generative model can learn the underlying structure of the design space and produce new candidate constructions.

In this work, we introduce LiftDiff, a generative approach to the discovery of QECC. Our method employs a discrete diffusion model trained on classical base matrices, which are subsequently used to construct quantum codes through LP. During inference, we guide the diffusion process using a set of energy functions designed to promote desirable code properties, steering the generation toward promising quantum code constructions. Our contributions are as follows:

• We introduce, to the best of our knowledge, the first discrete diffusion framework for the generative construction of novel QECC.

• We develop an energy-based guidance mechanism that operates throughout the reverse diffusion process, using differentiable quantum code properties to steer the generation toward base matrices with desirable properties after lifting.

• LiftDiff can generate QECC with diverse combinations of code parameters, including [[143, 15, 9]], [[260, 24, 10]], and [[169, 13, 11]], as well as a [[247, 19, 14]] code that achieves the highest kd2/nkd^2/n among all baselines for a check weight ≤8\leq 8.

References (55)