← Latest papers
⚛️ quantum physics

When Close Enough Is Not Enough: Autoregressive Drift in Quantum Circuit Synthesis

This paper demonstrates that while transformer-based models can successfully optimize quantum circuits when approximate outputs are correctable via post-processing, their reliability for exact discrete synthesis is fundamentally limited by autoregressive drift that causes performance to degrade sharply as circuit length increases, a problem only partially mitigated by inference-time search and data scaling rather than model-level adjustments.

Original authors: Mehdi Saeedi, Eddie Richter, Paul Hartke

Published 2026-07-15
📖 5 min read🧠 Deep dive

Original authors: Mehdi Saeedi, Eddie Richter, Paul Hartke

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a robot to build a perfect LEGO castle. You show it a messy pile of bricks (the "input circuit") and ask it to rebuild it into a sleek, efficient version using the fewest special "magic" bricks possible. This is the job of quantum circuit optimization, and the researchers at AMD tried to teach a smart AI robot (a "transformer") to do it.

Here is the twist: The robot is amazing at some things but hits a wall at others, and the reason is a glitch they call autoregressive drift.

The Two Worlds: The "Fuzzy" vs. The "Pixel-Perfect"

The researchers tested the robot in two different game modes.

Mode 1: The Fuzzy World (Parameterized Circuits)
In this mode, the robot builds a castle where the angles of the walls can be tweaked slightly. If the robot builds the shape of the castle correctly but the walls are tilted a tiny bit wrong, a human (or a classical calculator) can come in later and just nudge the angles until they are perfect.

  • The Result: The robot was a superstar here. It learned the structure so well that after a little "nudge," it achieved 100% perfect fidelity (a score of 1.000) on circuits with 3 to 6 qubits. It's like the robot drew the blueprint perfectly, and the builder just fixed the tiny crooked lines.

Mode 2: The Pixel-Perfect World (Clifford+T Circuits)
This is the real challenge. Here, the robot must build with rigid, discrete LEGO bricks. There are no "angles" to nudge later. Every single brick must be in the exact right spot, or the whole castle collapses into a different shape entirely.

  • The Result: This is where the robot started to trip over its own feet. While it learned the rules of the game (the syntax) and knew roughly how many magic bricks to use, it failed to build the exact correct castle often.
    • For short castles (9 bricks or fewer), the robot got it right about 88% of the time.
    • For medium castles (15–25 bricks), success dropped to 8.4% with the standard training data, and only rose to 23.4% when the robot was given significantly more practice data.
    • For long castles (26+ bricks), the robot got it right 0% of the time with standard data, and only 3.7% even with the extra data.

The Culprit: The "Domino Effect" of Drift

Why did the robot fail on the long, rigid castles? The authors discovered a problem they named autoregressive drift.

Imagine the robot is writing a story, one word at a time, from left to right.

  1. It writes the first word correctly.
  2. It writes the second word correctly.
  3. But then, on the third word, it makes a tiny mistake. Maybe it swaps a "T" for an "S" brick.

In the "Fuzzy World," that mistake wouldn't matter because you could fix the angle later. But in the "Pixel-Perfect World," that single wrong brick changes the context for every single brick that comes after it. The robot tries to build the rest of the castle based on a broken foundation. The error cascades, and by the time it reaches the end, the whole structure is completely wrong.

The paper shows that this drift happens incredibly fast. The robot usually makes its first mistake within the first 1–2 bricks (about 3% into the sequence). Once that happens, the rest of the sequence is doomed.

What Didn't Work (The "Try Harder" Trap)

The researchers tried many ways to fix this, and they were very clear about what didn't help:

  • Making the robot smarter (More parameters): They tried a bigger brain (133.6 million parameters vs. 44.8 million). It helped a tiny bit, but the drift problem remained.
  • Fine-tuning: They tried to teach the robot specifically on the hard, long castles. It didn't help.
  • Mixing models: They tried combining the outputs of two different robots. It didn't help much.
  • Just trying harder (Inference-time search): They tried generating 200 different versions of the castle and picking the best one. This helped, raising success rates from 7% to 22.5%, but it still couldn't fix the long castles.

The One Thing That Did Help (More Data)

The only thing that gave the robot a significant boost was giving it more practice.

  • When they increased the training data by 2.5 times (from 200,000 examples to 500,000), the robot's success rate nearly doubled.
  • With more data, the robot got the short castles right 94% of the time and the medium ones (15–25 bricks) right 23.4% of the time.
  • However, the drift problem didn't disappear. Even with all that extra practice, the success rate for the longest castles (26+ bricks) was still only 3.7%. The "domino effect" of the first mistake was still too strong to overcome just by reading more books.

The Bottom Line

The paper concludes that for quantum circuits where every single piece must be perfect, being "close enough" isn't good enough.

If you can fix small errors later (like in the Fuzzy World), AI works great. But if you need a perfect, discrete sequence where one wrong step ruins everything, the AI's tendency to drift off-course early on is a major bottleneck. The researchers suggest that for now, this AI might be best used as a "peephole" optimizer—fixing small, short sections of code where it is reliable—rather than trying to rebuild entire complex circuits from scratch.

The authors are careful to say this isn't a solved problem. They measured these results on specific simulations and found that while more data helps, the fundamental issue of "drift" in long sequences remains a stubborn hurdle that current methods haven't cleared.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →