Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimization
On the map: LLM agents and tool use → Medical and scientific domain agents
Abstract (arXiv)
Large language models (LLMs) have achieved remarkable outcomes in complex problems, including math, coding, and analyzing large amounts of scientific reports. Yet, few works have explored the potential of LLMs in quantum computing. The most challenging problem is to leverage LLMs to automatically generate quantum circuits at a large scale. Fundamentally, the existing pre-trained LLMs lack the knowledge of quantum circuits. In this paper, we address this challenge by fine-tuning LLMs and injecting the domain-specific knowledge of quantum computing. We describe Agent-Q, an LLM fine-tuning system to generate and optimize quantum circuits. In particular, Agent-Q implements the mechanisms to generate training data sets and constructs an end-to-end pipeline to fine-tune pre-trained LLMs to generate parameterized quantum circuits for various optimization problems. Agent-Q provides 14,000 quantum circuits covering a large spectrum of the quantum optimization landscape: 12 optimization problem instances and their optimized QAOA, VQE, and adaptive VQE circuits. Based thereon, Agent-Q fine-tunes LLMs and constructs syntactically correct parametrized quantum circuits in OpenQASM 3.0. We have evaluated the quality of the LLM-generated circuits and parameters by comparing them to the optimized expectation values and distributions. Experimental results show superior performance of Agent-Q, compared to several state-of-the-art LLMs and better parameters than random. Agent-Q can be integrated into an agentic workflow, and the generated parametrized circuits with initial parameters can be used as a starting point for further optimization, e.g., as templates in quantum machine learning and as benchmarks for compilers and hardware.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Placed in Medical and scientific domain agents, one of 16 directions in LLM agents and tool use. Builds on 37 of its 69 references that are in the map. First posted on arXiv 15 Apr 2025.
Builds on
37 of 69 references.
References · 37
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2016Layer Normalizationcited by 5,669
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2024Qwen2.5 Technical Reportcited by 4,942
25 more
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2024CogVideoX: Text-to-Video Diffusion Models with An Expert Transformercited by 2,261
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2025Gemma 3 Technical Reportcited by 1,824
- 2025s1: Simple test-time scalingcited by 1,341
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2013Generating Sequences With Recurrent Neural Networkscited by 554
- 2023MusicLM: Generating Music From Textcited by 448
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2023Generating Images with Multimodal Language Modelscited by 260
- 2013Ising formulations of many NP problemscited by 207
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
- 2016Community detection in networks: A user guidecited by 105
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 30
- 2024Qiskit Code Assistant: Training LLMs for generating Quantum Computing Codecited by 25
- 2015Graph Isomorphism in Quasipolynomial Timecited by 19
- 2024Meta-Designing Quantum Experiments with Language Modelscited by 12
- 2024KetGPT - Dataset Augmentation of Quantum Circuits using Transformerscited by 8
- 2013Graph isomorphism and adiabatic quantum computingcited by 7
- 2021The Quantum Approximate Optimization Algorithm at High Depth for MaxCut on Large-Girth Regular Graphs and the Sherrington-Kirkpatrick Modelcited by 6
- 2022Faster exact solution of sparse MaxCut and QUBO problemscited by 4
- 2021Optimizing Ansatz Design in QAOA for Max-cutcited by 3
Built on by
Citing papers per year: 2025: 4; 2026: 13.
17 papers.
Sort:
By area:
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RLcited by 11
- 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistantcited by 6
- 2026QBugLM: An Agentic Benchmarking Framework for LLM-based Quantum Software Debuggingcited by 2
- 2026Quantum Circuit Generation via test-time learning with large language modelscited by 1
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMscited by 1
- 2026Practical Quantum CIM Empowerment via All-Domestic-Core Agentic Large Modelcited by 1
- 2026Aligning Quantum Operators with Large Language Modelscited by 1
- 2025EARL: Efficient Agentic Reinforcement Learning Systems for Large Language Modelscited by 0
- 2025Twirlator: A Pipeline for Analyzing Subgroup Symmetry Effects in Quantum Machine Learning Ansatzescited by 0
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomycited by 0
- 2026QAP-Router: Tackling Qubit Routing as Dynamic Quadratic Assignment with Reinforcement Learningcited by 0
- 2026QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuitscited by 0
5 more
- 2026Fine-Tuning Large Language Models for Quantum Reasoningcited by 0
- 2026Hybrid LLM-Guided Search for Quantum Reservoir Architecture Designcited by 0
- 2026LLM-Driven Algorithm Design for Quantum Circuit Synthesis based on Binary Decision Diagramscited by 0
- 2026Conduit: An Experience Data Plane for Distributed Reinforcement Learningcited by 0
- 2026AG-CoT: Verified Algorithmic Traces for LLM Program Synthesis on Clifford Circuitscited by 0
- 2026AG-CoT: Verified Algorithmic Traces for LLM Program Synthesis on Clifford Circuits27 Sep 2026
- 2026Conduit: An Experience Data Plane for Distributed Reinforcement Learning21 Sep 2026
- 2026LLM-Driven Algorithm Design for Quantum Circuit Synthesis based on Binary Decision Diagrams4 Sep 2026
- 2026Hybrid LLM-Guided Search for Quantum Reservoir Architecture Design21 Jul 2026
- 2026Fine-Tuning Large Language Models for Quantum Reasoning20 Jun 2026
- 2026Aligning Quantum Operators with Large Language Models11 Jun 2026
- 2026QBugLM: An Agentic Benchmarking Framework for LLM-based Quantum Software Debugging5 Jun 2026
- 2026QAP-Router: Tackling Qubit Routing as Dynamic Quadratic Assignment with Reinforcement Learning12 May 2026
- 2026QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuits28 Apr 2026
- 2026Practical Quantum CIM Empowerment via All-Domestic-Core Agentic Large Model24 Apr 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomy17 Mar 2026
5 more
- 2026Quantum Circuit Generation via test-time learning with large language models3 Feb 2026
- 2025Twirlator: A Pipeline for Analyzing Subgroup Symmetry Effects in Quantum Machine Learning Ansatzes6 Nov 2025
- 2025EARL: Efficient Agentic Reinforcement Learning Systems for Large Language Models7 Oct 2025
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RL1 Oct 2025
- 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistant28 Aug 2025
- 2026Fine-Tuning Large Language Models for Quantum Reasoningcited by 0
- 2026Fine-Tuning Large Language Models for Quantum Reasoning20 Jun 2026
- 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistantcited by 6
- 2026Quantum Circuit Generation via test-time learning with large language modelscited by 1
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMscited by 1
- 2026Practical Quantum CIM Empowerment via All-Domestic-Core Agentic Large Modelcited by 1
- 2026Aligning Quantum Operators with Large Language Modelscited by 1
- 2025Twirlator: A Pipeline for Analyzing Subgroup Symmetry Effects in Quantum Machine Learning Ansatzescited by 0
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomycited by 0
- 2026QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuitscited by 0
- 2026Hybrid LLM-Guided Search for Quantum Reservoir Architecture Designcited by 0
- 2026LLM-Driven Algorithm Design for Quantum Circuit Synthesis based on Binary Decision Diagramscited by 0
- 2026AG-CoT: Verified Algorithmic Traces for LLM Program Synthesis on Clifford Circuitscited by 0
- 2026AG-CoT: Verified Algorithmic Traces for LLM Program Synthesis on Clifford Circuits27 Sep 2026
- 2026LLM-Driven Algorithm Design for Quantum Circuit Synthesis based on Binary Decision Diagrams4 Sep 2026
- 2026Hybrid LLM-Guided Search for Quantum Reservoir Architecture Design21 Jul 2026
- 2026Aligning Quantum Operators with Large Language Models11 Jun 2026
- 2026QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuits28 Apr 2026
- 2026Practical Quantum CIM Empowerment via All-Domestic-Core Agentic Large Model24 Apr 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Generative AI for Quantum Circuits and Quantum Code: A Technical Review and Taxonomy17 Mar 2026
- 2026Quantum Circuit Generation via test-time learning with large language models3 Feb 2026
- 2025Twirlator: A Pipeline for Analyzing Subgroup Symmetry Effects in Quantum Machine Learning Ansatzes6 Nov 2025
- 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistant28 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correction
- 2025QAgent: An LLM-based Multi-Agent System for Autonomous OpenQASM programming
- 2026An LLM System for Autonomous Variational Quantum Circuit Design
- 2026Leveraging LLM-Based Agentic Systems to Generate Quantum Applications for Test Optimization
- 2025QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challenges
- 2025Circuit Partitioning Using Large Language Models for Quantum Compilation and Simulations
- 2026Position: Quantum Program Generation Must Prioritize Validity Over Probabilistic Scaling
- 2025LLM-based Multi-Agent Copilot for Quantum Sensor