AG-CoT: Verified Algorithmic Traces for LLM Program Synthesis on Clifford Circuits
Not on the map. Why?
Abstract (arXiv)
Scientific code generation can produce executable programs that fail to compute the intended scientific object. We study this problem in language-model synthesis of Clifford circuits, which prepare the stabilizer states used in quantum error correction and admit exact classical verification. In our target-conditioned framework, each target is given as compact signed stabilizer generators, and an exact verifier checks the generated OpenQASM circuits. We supervise models with Aaronson-Gottesman chain-of-thought (AG-CoT) traces checked by the verifier, and continue training on model generations that the verifier accepts. Across two independently trained model families (3B and 7B), AG-CoT supervision multiplies greedy-decode state-equivalence accuracy by four to six times over circuit-only baselines, and verifier-filtered continuation training adds a further consistent gain atop both. A complementary 32B study shows that supervised models achieve near-perfect syntax and Clifford validity while the strongest direct model reaches 6.14% state equivalence per target, rising to over 10% under verifier-guided selection with multiple candidates. These results show that algorithmic trace supervision gives a large, statistically significant gain in both model families and that verifier-filtered continuation adds a further repeated gain. The persistent gap between Clifford validity and state equivalence confirms that exact verification is necessary: a circuit can be syntactically and physically valid yet prepare the wrong quantum state.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 26 of its 38 references that are in the map. First posted on arXiv 27 Sep 2026.
Builds on
26 of 38 references.
References · 26
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Mistral 7Bcited by 3,164
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 991
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
- 2025S*: Test Time Scaling for Code Generationcited by 98
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 91
14 more
- 2025Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpeningcited by 80
- 2024DA-Code: Agent Data Science Code Generation Benchmark for Large Language Modelscited by 58
- 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 44
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
- 2023Quantum circuit synthesis with diffusion modelscited by 33
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checkingcited by 24
- 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimizationcited by 17
- 2024QCircuitBench: A Large-Scale Dataset for Benchmarking Quantum Algorithm Designcited by 15
- 2024Meta-Designing Quantum Experiments with Language Modelscited by 12
- 2025QuanBench: Benchmarking Quantum Code Generation with Large Language Modelscited by 12
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RLcited by 11
- 2025QCoder Benchmark: Bridging Language Generation and Quantum Hardware through Simulator-Based Feedbackcited by 7
- 2026Quantum Circuit Generation via test-time learning with large language modelscited by 1
- 2026Aligning Quantum Operators with Large Language Modelscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026AlphaClifford: Efficient Clifford Synthesis and Transpilation with Model-based RL
- 2026Position: Quantum Program Generation Must Prioritize Validity Over Probabilistic Scaling
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomy
- 2026PennySynth: RAG-Driven Data Synthesis for Automated Quantum Code Generation
- 2026Towards Verifiable Transformers: Solver-Checkable Circuit Explanations
- 2026Deterministic LLM Inference Across GPU Kernels: Power-of-Two INT8 Quantization Scales and the Limits of Tolerance-Based Conformance
- 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms
- 2026Revisiting Quantum Code Generation: Where Should Domain Knowledge Live?