When Close Enough Is Not Enough: Autoregressive Drift in Quantum Circuit Synthesis
Not on the map. Why?
Abstract (arXiv)
Quantum circuit optimization for fault-tolerant computing requires exact functional equivalence while minimizing expensive non-Clifford resources such as T gates. We study this problem using a compact 44.8M-parameter encoder-decoder transformer with structured circuit tokenization, evaluating on parameterized circuits (2-6 qubits) and Clifford+T circuits (3-6 qubits). On parameterized circuits, a hybrid approach -- structure from the transformer, angles from classical optimization -- achieves median fidelity 1.000 on 3-6 qubit circuits. On Clifford+T circuits, where all gates are discrete and no post-processing is possible, the model learns valid syntax and accurate T-Count statistics, yet exact equivalence degrades sharply with target length -- from 88% on circuits with <=9 gates to near zero beyond 26 gates. We trace this failure to autoregressive drift: early-token divergence cascading irrecoverably through left-to-right decoding. Two levers partially mitigate the drift: inference-time strategies that generate multiple candidates and select via equivalence verification raise exact-match rates from 7% to 22.5%, while scaling training data by 2.5x pushes them to 39.5%. Yet the degradation with target length persists -- even with more data, exact equivalence drops from 94% on short circuits to under 4% beyond 26 gates. The contrast between settings is our central finding: when approximate outputs can be rescued by post-processing, the transformer succeeds; when exact discrete correctness is required, autoregressive drift limits reliability, with both inference-time search and data scaling as effective levers while training-side fine-tuning and model-level diversification are not.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 14 of its 47 references that are in the map. First posted on arXiv 14 Jul 2026.
Builds on
14 of 47 references.
References · 14
- 2017Attention Is All You Needcited by 60,361
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 991
- 2015Scheduled Sampling for Sequence Prediction with Recurrent Neural Networkscited by 803
- 2015Sequence Level Training with Recurrent Neural Networkscited by 576
- 2017Non-Autoregressive Neural Machine Translationcited by 463
- 2024Quantum Circuit Optimization with AlphaTensorcited by 36
- 2023Quantum circuit synthesis with diffusion modelscited by 33
- 2024Practical and efficient quantum circuit synthesis and transpiling with Reinforcement Learningcited by 22
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RLcited by 11
Built on by
Citing papers per year: 2026: 1.
1 paper.