Skip to content
Quantum.world

Research

Satisfying Quantum Codes: Physics-Informed and Hardware-Aware Code Design with SAT Solvers

Overview Research area: Quantum error correction, specifically the computational design of stabilizer codes, combined with computational complexity theory and Boolean satisfiability (SAT) solving. Tec

Satisfying Quantum Codes: Physics-Informed and Hardware-Aware Code Design with SAT Solvers
arXiv
2608.23460
Published
2026-08-24
Authors
Ben DalFavero, William M. Watkins, Margarite L. LaBorde, Vincent Russo, Ethan Egger, Gregory Quiroz, Ryan LaRose

AI summary

Overview

Research area: Quantum error correction, specifically the computational design of stabilizer codes, combined with computational complexity theory and Boolean satisfiability (SAT) solving.

Technical level: Advanced. The paper assumes familiarity with stabilizer formalism, binary symplectic representations, Pauli commutation, and NP-completeness; the plain-language core idea (search for codes by encoding the rules as logic constraints) is accessible to intermediate readers.

Scope: The paper presents a general SAT-based framework for designing quantum error-correcting codes — from scratch, from physics symmetries, or from hardware noise models — proves that general code design is NP-complete, and uses the framework to produce codes up to 100 physical qubits, including biased-noise codes with lower logical error rates than the XZZX surface code.

What This Paper Is About

Quantum error-correcting codes are still largely designed by hand, and there has been no clear improvement over the surface code in the more than three decades since it was introduced. The authors ask whether code design can instead be turned into a computational search problem that automatically respects the physics of a problem (its symmetries) or the realities of hardware (its noise). Their answer is to encode every requirement of a valid code — commuting stabilizers and the ability to detect or correct a chosen set of errors — as a Boolean satisfiability (SAT) instance, then let state-of-the-art SAT solvers search for codes.

Key Contributions

  1. A general SAT formulation of quantum code design. The authors express the conditions for a stabilizer code — commutativity of the stabilizer group and detection/correction of a desired error set — as Boolean clauses in conjunctive normal form (CNF), covering code discovery (starting from an empty stabilizer set), code extension (starting from an existing stabilizer set), physics-inspired design, and hardware-aware design.

  2. An NP-completeness proof for code design. Using a reduction from k-set cover (one of Karp's original NP-complete problems), they prove that k-code design is NP-complete, ruling out an efficient general algorithm.

  3. A theory of quantum code extension. They generalize classical code extension to quantum codes, defining extensions with and without mutation, prove that distance-increasing extensions always exist (via concatenation, with 1 ≤ m ≤ n(n−1)), and show that bivariate bicycle codes admit extension without mutation up to a qubit permutation.

  4. Demonstrated code design at large scale. They design physics-inspired codes from the symmetries of a 100-qubit Fermi-Hubbard model in minutes to hours on a laptop, produce a [[100,50,4]] code in under five minutes of CPU time, and discover hardware-aware surface codes for biased noise that beat the XZZX surface code under a maximum likelihood decoder.

Main Findings

  • Code design is NP-complete: k-code design is NP-hard by reduction from k-set cover and is in NP, so no efficient algorithm exists for the general case. The authors draw an explicit parallel to decoding, which is NP-hard (indeed #P-complete) yet tractable in practical cases.

  • Distance-increasing extensions always exist: For any [[n,k,d]] code with d > 1, there is an extension with parameters [[n+m, k′, d′]] where 1 ≤ m ≤ n(n−1), d′ > d, and k′ ≥ k. The proof uses concatenation of the code with itself, giving an [[n², k², d²]] code.

  • Extensions come in two flavors: In an extension without mutation the original checks are unchanged on the new qubits; in an extension with mutation some original stabilizers change. Rotated surface codes at d = 3 and d = 5, and triangular color codes at d = 3 (the Steane code) and d = 5, are related by extensions with mutation; bivariate bicycle codes admit extension without mutation.

  • SAT solvers scale to practical instances: Physics-inspired codes with up to 100 physical qubits are designed in minutes, and extensions for an n = 100 Fermi-Hubbard Hamiltonian in minutes to hours, running on a laptop. A [[100,50,4]] code is found in under five minutes of CPU time, compared with under an hour for a prior multi-agent approach; prior reinforcement-learning work in this line handled up to 25 physical qubits with constrained connectivity.

  • A satisfiability phase transition exists: For instances with randomly drawn error sets, the authors empirically find a phase transition in both the probability of satisfiability and the average-case runtime, with the number of errors per stabilizer as the order parameter.

  • A phase diagram for distance-three codes: A fitted SAT–UNSAT transition sits between the low-rate region constrained by the Gilbert-Varshamov bound and the high-rate region constrained by the Singleton bound, giving an empirical prediction of code existence in the contested region.

  • Physics-informed codes improve observable accuracy: Augmenting symmetries of the Fermi-Hubbard Hamiltonian to correct chosen errors improves the accuracy of expectation values computed in noisy simulation (reported in the paper's Fig. 5).

  • Hardware-aware codes beat the XZZX surface code for biased noise: Adding a biased noise model to the Fermi-Hubbard design problem reduces undetected error rates in noisy simulation (Fig. 7), and newly discovered surface codes achieve logical error rates lower than the XZZX surface code — itself tailored for biased noise — under a maximum likelihood decoder (Fig. 8).

  • Memory is the practical bottleneck: The search space for discovery is 2n(n−k)-dimensional, and enumerating all errors up to weight d−1 requires M = Σ_{w=1}^{d−1} 3^w C(n+m, w) errors. High-distance discovery and large high-weight extension problems are therefore memory-intensive, which is mitigated by restricting to low distance or few additional errors.

Note on figures: The numerical values behind the logical error rates, undetected error rates, and expectation-value accuracies appear in the paper's Figures 5, 7 and 8 and in numerical results not contained in the provided text; specific percentages, error-rate values and phase-transition thresholds are therefore not reported here.

Methodology in Plain English

The approach rests on a translation step. Any Pauli operator on n qubits becomes a binary vector of length 2n — one bit for X support, one for Z support — and whether two Paulis commute becomes a simple arithmetic test (the symplectic inner product). Each stabilizer generator of the code being sought is then a bundle of unknown bits.

With the unknowns in place, each requirement becomes a logical clause:

  • Commutation: every pair of chosen stabilizers must commute.
  • Error detection: each error in the target set must anticommute with at least one chosen stabilizer, or else be a member of the stabilizer group itself (a logical identity).
  • Correction (Knill-Laflamme): for error-correcting rather than merely detecting codes, products E_i E_j† must not land in the normalizer of the stabilizer group outside the group.

These clauses are joined into a single Boolean formula in conjunctive normal form and handed to a modern SAT solver. If the solver returns a satisfying assignment, its bits are read back as a stabilizer check matrix. Starting from an empty stabilizer set yields code discovery; supplying an initial set — either from a known code or from the symmetries of a Hamiltonian — yields code extension, and swapping in a device-specific error set makes the whole procedure hardware-aware.

The authors also analyze the search itself: they empirically map where instances flip from satisfiable to unsatisfiable as the number of errors per stabilizer grows, and they analyze the memory cost of storing the error set. They support the practical work with a complexity proof, showing that a general-purpose efficient algorithm cannot exist.

Why This Matters

Impact on research: The NP-completeness proof puts computational code design on firm theoretical footing, explaining why heuristic search methods are the right response rather than a stopgap. The extension theory supplies a general framework where only scattered examples previously existed, and the SAT formulation unifies code discovery, code extension, physics-informed design and hardware-aware design in one tool — a step beyond prior SAT uses such as finding phantom codes, finding state-preparation circuits for CSS codes, or certifying distances of already-generated codes.

Real-world applications (as grounded in the paper):

  • Fault-tolerant implementations of Shor's algorithm, where the paper notes a steady reduction of resource requirements across prior work — lower-overhead codes directly shrink those requirements.
  • Quantum simulation of fermionic systems, where physics-informed codes built from Fermi-Hubbard symmetries improved the accuracy of computed expectation values in noisy simulation.
  • Error-corrected memory experiments on biased-noise hardware, where the new surface codes target the noise asymmetry that actual devices exhibit.
  • Error-detected quantum algorithms more broadly, where the authors report higher fidelity when computing expectation values in error-detection experiments.

Industry relevance: Code design has been an expert, manual, and slow process; an automated framework that runs on a laptop and returns 100-qubit codes in minutes lowers the barrier for hardware teams to co-design codes with their specific noise. Because the framework ingests a device error model directly, it fits naturally into the workflow of groups building superconducting, trapped-ion or neutral-atom processors, and into the effort to demonstrate large-scale error correction experimentally.

Future Directions

  • Alleviating the memory bottleneck: enumerating all errors of weight below d grows as Σ 3^w C(n+m, w), so extending the framework to higher-distance codes likely requires smarter error encodings or symmetry reduction.
  • Improving decodability, not just existence: the distance-increasing extension proof relies on concatenation, which the authors note is resource intensive and hard to decode relative to CSS codes, leaving open how to systematically find low-overhead, easily decodable extensions.
  • Characterizing the satisfiability landscape further: the observed phase transition and the fitted SAT–UNSAT boundary for distance-three codes suggest predicting code existence from instance parameters; extending this analysis to other code families and parameter regimes is a natural next step.
  • Closing the loop with hardware: since the framework already consumes biased-noise models, testing the designed codes against measured device noise, and iterating design against characterization data, is the obvious next validation step.

Target Audience

Quantum error correction researchers and theorists interested in stabilizer codes and code construction; complexity theorists working on quantum problems; quantum computing hardware and architecture teams who want codes matched to their noise; and applied SAT/formal-methods researchers looking for a demanding new application domain. Graduate students with some background in stabilizer formalism will get the most from the technical sections, while the overview and results sections are readable by anyone comfortable with basic quantum error correction.

Authors’ abstract

Although quantum error correction is widely believed to be necessary for impactful applications of quantum computers, the design of quantum error correction codes is largely done by hand, without respect to problem or hardware constraints. In this work, we present a highly general and flexible framework for the computational design of both physics-inspired and hardware-aware quantum codes. To do so, we formulate code design as a Boolean satisfiability (SAT) problem and show how to incorporate all required error correction criteria. We prove that code design is NP-complete, ruling out any efficient algorithm for designing codes in general. Nonetheless, we show that state-of-the-art SAT solvers are able to effectively find solutions for many practical problems. Notably, we are able to design physics-inspired codes with up to 100 physical qubits in minutes, and we design new hardware-aware codes for biased noise which have a lower logical error rate than state-of-the-art surface codes.

Read the original paper