QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuits
Not on the map. Why?
Abstract (arXiv)
Quantum computing remains in the Noisy Intermediate-Scale Quantum (NISQ) era, with performance constrained by noise. Addressing this limitation requires hardware-facing capabilities beyond gate sequences: mid-circuit measurement and classical feedback for quantum error correction (QEC), precise timing for dynamical decoupling (DD), and pulse-level waveform access for calibration. OpenQASM 3 exposes these capabilities through a hardware-level programming interface. Despite rapid progress in large language models (LLMs) for code generation, datasets targeting these advanced features remain lacking. We introduce QASM-Eval, the first comprehensive dataset to train and evaluate LLMs on OpenQASM 3, targeting completion of hardware-facing constructs within a supplied program context. QASM-Eval comprises an expert-curated test set of 1,200 tasks and a training set of over 4,000 tasks, covering classical logic, timing scheduling, pulse control, and complex tasks inspired by quantum-control workflows. An extended verifier automatically checks syntax, quantum measurement distributions, and program timelines. Our evaluation identifies substantial headroom for OpenQASM 3 code generation and significant gains from targeted fine-tuning. Fine-tuned Llama-3-8B outperforms zero-shot GPT-5.6-Terra, while fine-tuned Llama-3-70B achieves 61.17% overall pass@1 and approaches few-shot-augmented GPT-5.6-Terra. QASM-Eval provides a benchmark and training resource for specification-guided code generation over the hardware-facing constructs of OpenQASM 3, supporting the development of LLM assistants for quantum programming. Data and code: https://github.com/fuzhenxiao/QASM-Eval
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 47 references that are in the map. First posted on arXiv 28 Apr 2026.
Builds on
17 of 47 references.
References · 17
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2023Challenges and Opportunities in Quantum Machine Learningcited by 203
- 2025WebGen-Bench: Evaluating LLMs on Generating Interactive and Functional Websites from Scratchcited by 72
- 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 66
- 2023Challenges and Opportunities in Quantum Optimizationcited by 42
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 30
- 2024Qiskit Code Assistant: Training LLMs for generating Quantum Computing Codecited by 25
- 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimizationcited by 17
- 2025InfoChartQA: A Benchmark for Multimodal Question Answering on Infographic Chartscited by 17
- 2024QCircuitBench: A Large-Scale Dataset for Benchmarking Quantum Algorithm Designcited by 15
5 more
- 2022The Complexity of NISQcited by 13
- 2025AstroVisBench: A Code Benchmark for Scientific Computing and Visualization in Astronomycited by 13
- 2025QuanBench: Benchmarking Quantum Code Generation with Large Language Modelscited by 12
- 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correctioncited by 11
- 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RLcited by 11
Built on by
Not cited yet.