mlsanityData to 7 Oct 2026

QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RL

arXiv 2510.00967 ↗First posted 1 Oct 2025cs.AI quant-phcited by 11

On the map: LLM agents and tool use → Medical and scientific domain agents

Abstract (arXiv)

Designing and optimizing task-specific quantum circuits are crucial to leverage the advantage of quantum computing. Recent large language model (LLM)-based quantum circuit generation has emerged as a promising automatic solution. However, the fundamental challenges remain unaddressed: (i) parameterized quantum gates require precise numerical values for optimal performance, which also depend on multiple aspects, including the number of quantum gates, their parameters, and the layout/depth of the circuits. (ii) LLMs often generate low-quality or incorrect quantum circuits due to the lack of quantum domain-specific knowledge. We propose QUASAR, an agentic reinforcement learning (RL) framework for quantum circuits generation and optimization based on tool-augmented LLMs. To align the LLM with quantum-specific knowledge and improve the generated quantum circuits, QUASAR designs (i) a quantum circuit verification approach with external quantum simulators and (ii) a sophisticated hierarchical reward mechanism in RL training. Extensive evaluation shows improvements in both syntax and semantic performance of the generated quantum circuits. When augmenting a 4B LLM, QUASAR has achieved the validity of 99.31% in Pass@1 and 100% in Pass@10, outperforming industrial LLMs of GPT-4o, GPT-5 and DeepSeek-V3 and several supervised-fine-tuning (SFT)-only and RL-only baselines.

Key facts. Cited by 11 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 19 of its 60 references that are in the map. First posted on arXiv 1 Oct 2025.

Builds on

19 of 60 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025QAgent: An LLM-based Multi-Agent System for Autonomous OpenQASM programming26 Aug
  2. 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correction20 Apr
  3. 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimization15 Apr

Other references · 16

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2024GPT-4o System Cardcited by 4,467
  5. 2013Ising formulations of many NP problemscited by 204
  6. 2016Community detection in networks: A user guidecited by 105
  7. 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Usecited by 92
  8. 2023Challenges and Opportunities in Quantum Optimizationcited by 42
  9. 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 29
  10. 2024Meta-Designing Quantum Experiments with Language Modelscited by 12
  11. 2016A Practical Quantum Instruction Set Architecturecited by 9
  12. 2024KetGPT - Dataset Augmentation of Quantum Circuits using Transformerscited by 8
4 more
  1. 2013Graph isomorphism and adiabatic quantum computingcited by 7
  2. 2025QAOA-GPT: Efficient Generation of Adaptive and Regular Quantum Approximate Optimization Algorithm Circuitscited by 7
  3. 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistantcited by 6
  4. 2025LLM-Guided Ans"atze Design for Quantum Circuit Born Machines in Financial Generative Modelingcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 9.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026An LLM System for Autonomous Variational Quantum Circuit Design
  2. 2025QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challenges
  3. 2026Position: Quantum Program Generation Must Prioritize Validity Over Probabilistic Scaling
  4. 2026Quantum Circuit Vision: Cost-Aware Evaluation of Visual AI Agents for Quantum Code Generation
  5. 2025PennyCoder: Efficient Domain-Specific LLMs for PennyLane-Based Quantum Code Generation
  6. 2026PennySynth: RAG-Driven Data Synthesis for Automated Quantum Code Generation
  7. 2026El Agente Forjador: Task-Driven Agent Generation for Quantum Simulation
  8. 2026DreamQAS: Learning a Decision-Useful World Model for VQE-Efficient Quantum Architecture Search