QAgent: An LLM-based Multi-Agent System for Autonomous OpenQASM programming
On the map: LLM agents and tool use → Medical and scientific domain agents
Abstract (arXiv)
Programming quantum circuits at the OpenQASM level is essential for achieving hardware-aware optimization and reliable execution on noisy intermediate-scale quantum (NISQ) devices, yet it remains challenging due to the need for domain-specific planning, iterative code synthesis, and low-level calibration. In this paper, we present QAgent, the first autonomous multi-agent framework for end-to-end OpenQASM code generation. QAgent integrates schema-aware task planning, example- and tool-driven code synthesis, and hardware-aware calibration within a unified planning-synthesis-calibration workflow. The system leverages retrieval-augmented generation (RAG) to access structured kernel knowledge, examples, and backend constraints, and employs coordinated multi-agent reasoning with iterative execution feedback to ensure correctness. We evaluate QAgent on 12 representative quantum kernels and their compositions across five large language models (LLMs). Results show that QAgent improves Pass@1 accuracy by 47-70% on single-kernel tasks and achieves over 88% accuracy on multi-kernel workflows for large models, substantially outperforming existing baselines. Furthermore, under realistic hardware frequency drift, QAgent maintains near-unit execution fidelity through automated calibration, whereas SDK-based LLM methods suffer significant degradation. These results demonstrate that integrating planning, synthesis, and calibration is critical for reliable quantum program generation. The implementation of QAgent is open-sourced at https://github.com/fuzhenxiao/QAgent
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Medical and scientific domain agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 49 references that are in the map. First posted on arXiv 26 Aug 2025.
Builds on
22 of 49 references.
Closest ancestors · 2
Same direction, newest first
- 2025El Agente: An Autonomous Agent for Quantum Chemistry5 May
- 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correction20 Apr
Other references · 20
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2021Quantum advantage in learning from experimentscited by 186
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
- 2024BetterV: Controlled Verilog Generation with Discriminative Guidancecited by 99
- 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 99
- 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Toolcited by 85
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 29
8 more
- 2024Qiskit Code Assistant: Training LLMs for generating Quantum Computing Codecited by 24
- 2025Devstral: Fine-tuning Language Models for Coding Agent Applicationscited by 23
- 2024Quantum Many-Body Physics Calculations with Large Language Modelscited by 17
- 2024Exploring LLM-Driven Explanations for Quantum Algorithmscited by 7
- 2024Testing and Debugging Quantum Programs: The Road to 2030cited by 5
- 2020OpenQL : A Portable Quantum Programming Framework for Quantum Acceleratorscited by 4
- 2022Quantum Advantage in Cryptographycited by 1
- 2025Circuit Partitioning Using Large Language Models for Quantum Compilation and Simulationscited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 8.
9 papers.
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RLcited by 11
- 2026QuantumQA: Enhancing Scientific Reasoning via Physics-Consistent Dataset and Verification-Aware Reinforcement Learningcited by 1
- 2026Aligning Quantum Operators with Large Language Modelscited by 1
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomycited by 0
- 2026Fine-Tuning Large Language Models for Quantum Reasoningcited by 0
- 2026Leveraging LLM-Based Agentic Systems to Generate Quantum Applications for Test Optimizationcited by 0
- 2026Hybrid LLM-Guided Search for Quantum Reservoir Architecture Designcited by 0
- 2026QuantumMind: Constraint-Grounded Agentic Reasoning for Speedup Analysis in Quantum Computingcited by 0
- 2026QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?cited by 0
- 2026QuantumMind: Constraint-Grounded Agentic Reasoning for Speedup Analysis in Quantum Computing7 Aug 2026
- 2026QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?31 Jul 2026
- 2026Hybrid LLM-Guided Search for Quantum Reservoir Architecture Design21 Jul 2026
- 2026Leveraging LLM-Based Agentic Systems to Generate Quantum Applications for Test Optimization1 Jul 2026
- 2026Fine-Tuning Large Language Models for Quantum Reasoning20 Jun 2026
- 2026Aligning Quantum Operators with Large Language Models11 Jun 2026
- 2026QuantumQA: Enhancing Scientific Reasoning via Physics-Consistent Dataset and Verification-Aware Reinforcement Learning20 Apr 2026
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomy17 Mar 2026
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RL1 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimization
- 2025QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challenges
- 2025LLM-based Multi-Agent Copilot for Quantum Sensor
- 2026QBugLM: An Agentic Benchmarking Framework for LLM-based Quantum Software Debugging
- 2026An LLM System for Autonomous Variational Quantum Circuit Design
- 2026Lowering the implementation barrier of neutral-atom quantum computing with agentic workflows
- 2026Evaluating Verified Autonomy in Quantum Engineering
- 2026PennySynth: RAG-Driven Data Synthesis for Automated Quantum Code Generation