NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Theory-Informed Quantum Error Mitigation for Shor Order Finding with Fourier Neural Operators

Stefano Markidis, Qingxin Yang, Erik Åsgrim, Ivy PengarXiv 2026 · DOI

TL;DR

Quantum hardware is famously noisy, often drowning out the delicate interference patterns that quantum algorithms rely on. Rather than trying to fix every individual qubit error on the fly, the authors use classical machine learning—guided by the mathematical theory of the algorithm itself—to spot the ghost of the right answer hiding inside noisy data. Tested on Shor’s order-finding subroutine, their method substantially boosts success rates both in simulations and zero-shot on real IBM quantum processors.

What Problem Does This Paper Address?

Quantum computers rely on fragile superpositions and interference patterns. Today's processors don't have enough qubits for full Quantum Error Correction (QEC), which actively detects and fixes errors mid-flight. Instead, researchers often turn to Quantum Error Mitigation (QEM): running noisy circuits and using classical post-processing to estimate what the clean result should have been.

Standard QEM typically treats noise at the hardware level—modeling bit flips, gate faults, and readout errors without caring much about what the circuit is actually computing. The authors flip this perspective to focus on algorithm-level QEM. Specifically, they tackle the core quantum subroutine of Shor’s factoring algorithm: order finding.

In an ideal world, Shor’s circuit uses an inverse Quantum Fourier Transform (QFT) to turn modular arithmetic into a clean, periodic "comb" of probability peaks, where the spacing between peaks reveals the hidden period (the "order"). In reality, arithmetic faults create competing harmonics, phase errors blur the interference, and readout noise scrambles the outcomes. When the final histogram looks like static, how do you recover the hidden comb?

How circuit errors deform the ideal periodic peak comb into noisy static.

Methods

The authors introduce a theory-informed approach using a Fourier Neural Operator (FNO)—a neural network architecture that learns mappings between functions in frequency space. Because Shor’s output is inherently a periodic wave pattern, looking at its classical Fourier spectrum is a natural way to spot regular peak spacings, even across wide registers.

Fig. 1. Overview of theory-informed algorithm-level quantum error mitigation.

Here is what makes their setup distinct:

  • Cross-Execution Consistency: Instead of lumping all measurement shots together, the network takes histograms from three separate circuit executions. By comparing their mean and variance, the FNO learns which faint features are genuine recurring signals and which are random noise.
  • Diffusion-Inspired Spectral Gain: Peak broadening in frequency space acts a lot like physical diffusion, where high-frequency harmonics decay fastest. The authors build a learned "spectral gain" into the FNO layers that can selectively amplify weakened high-frequency modes or attenuate sampling noise.
  • Mixture-of-Templates Reconstruction: Rather than hallucinating a clean probability distribution from scratch, the network adjusts correlation scores for candidate orders. It then reconstructs the ideal output as a weighted mixture of exact analytical templates—guaranteeing a mathematically valid probability distribution with sharp, physically meaningful peaks.

Datasets

The authors generate two newly introduced synthetic datasets (via statevector Monte Carlo simulations) and one hardware dataset:

  • General Synthetic Dataset: 9,399 examples across 497 circuit configurations for odd composite numbers ($15 \le N \le 127$), modeling general modular exponentiation faults, QFT phase screens, and asymmetric readout flips.
  • Mersenne Synthetic Dataset: 9,499 examples tailored to Mersenne integers ($N = 2^n - 1$ with power-of-two bases). Because general modular arithmetic requires circuits too deep for current hardware, Mersenne numbers allow multiplication to be compiled into much shallower cyclic qubit rotations.
  • IBM Quantum Hardware Dataset: 680 real executions across 101 Mersenne circuit configurations run on five IBM processors (ibm_boston, ibm_kingston, ibm_miami, ibm_pittsburgh, and ibm_torino).

Key Insights and Ideas

  • Zero-shot sim-to-real transfer works: The model evaluated on IBM quantum processors was trained and calibrated entirely on synthetic simulation data, with zero hardware fine-tuning. Modeling how errors propagate at the algorithmic level captured real hardware distortions surprisingly well.
  • More shots actually help again: Under heavy noise, giving a standard raw correlation decoder more measurement shots doesn't help—its accuracy flatlines around 18% from 500 to 12,000 shots because systematic distortions dominate. The FNO, however, steadily climbs from 24% to 34% as shot counts grow, proving that latent algorithmic structure is still buried near the noise floor waiting to be resolved.
  • Conservative switching prevents "spoiling": By requiring a confidence margin before overriding the baseline correlation guess, the network fixes broken runs while rarely ruining ones that were already right (spoiling fewer than 1% of test cases overall).

Key Results

  • General Simulations: Across 1,351 held-out test cases, exact order recovery jumped from 19% to 34% (and top-3 accuracy rose from 26% to 48%). Out of 1,351 cases, the FNO recovered 215 failed runs while spoiling only 12. The median Jensen-Shannon (JS) divergence from the ideal output distribution dropped by half, from 0.64 to 0.32 nats.
  • IBM Hardware: Across the 101 Mersenne circuits (runs 1–3), zero-shot FNO mitigation boosted exact order estimates from 35 to 53 (35% to 52%), lifted top-3 recovery from 37% to 67%, and cut mean JS divergence from 0.40 to 0.23 nats.

Limitations and Future Work

  • Exponential Candidate Scaling: In their main experiments, the decoder exhaustively scores all $N - 1$ possible candidate orders—an approach that grows exponentially with the bit-length of $N$ and won't scale to cryptographically large integers. While a preliminary screening test showed that filtering down to the top 32 candidates retains 93% of true orders, generating candidate shortlists efficiently (e.g., via continued fractions) before running the FNO needs dedicated evaluation.
  • Register Size Bottlenecks: Storing full outcome histograms becomes intractable as the precision register grows; future versions will need sparse encoders that compute selected Fourier modes directly from raw shot counts.
  • Broader Generalization: The synthetic splits tested unseen $(Q, N, a)$ configurations, but individual moduli $N$ could appear in both training and test sets. Testing on completely unseen moduli, deeper general-arithmetic hardware circuits, and extending the framework to algorithms like Quantum Phase Estimation and Quantum Walks are the next frontiers.

Summary updated

BibTeX
@misc{markidis2026theory,
  author = {Stefano Markidis and Qingxin Yang and Erik Åsgrim and Ivy Peng},
  title = {{Theory-Informed Quantum Error Mitigation for Shor Order Finding with Fourier Neural Operators}},
  year = {2026},
  eprint = {2611.32923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32923},
}
Figure