Papers › QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuits

QASM-Eval: A Dataset to Train and Evaluate LLMs on OpenQASM-3 Beyond Quantum Circuits

28 Apr 2026arXiv:2605.30358added by Syntology

Zhenxiao Fu, Lei Jiang, Fan Chen

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Quantum computing remains in the Noisy Intermediate-Scale Quantum (NISQ) era, where the performance is highly constrained to noise. Addressing the limitation often requires hardware-facing capabilities beyond gate-sequence circuit specification, including mid-circuit measurement and classical feedback for quantum error correction (QEC), precise timing control for dynamical decoupling (DD), and pulse-level waveform access for calibration. OpenQASM-3 was introduced to expose exactly these capabilities, providing a hardware-level programming interface. However, despite the rapid progress of large language models in code generation, there is still no dataset specifically designed to train and evaluate LLMs on OpenQASM-3 programs that involve its advanced hardware-oriented features. To address this gap, we introduce QASM-Eval, the first comprehensive dataset designed to train and evaluate LLMs on OpenQASM-3. Rather than focusing on quantum algorithm design or reasoning, QASM-Eval explicitly targets the language's hardware-facing features. QASM-Eval comprises an expert-verified test set of 100 tasks and a training set of 4,000 tasks, systematically covering classical logic, timing scheduling, pulse control, and complex real-world workflows. To automatically validate generated programs, we check syntax, quantum states and program timeline using an extended verifier. Our evaluation reveals that while state-of-the-art LLMs struggle heavily in OpenQASM-3 coding tasks, targeted fine-tuning on QASM-Eval yields significant gains. QASM-Eval provides a crucial benchmark and training foundation to accelerate the development of reliable LLM assistants for hardware-facing quantum programming in NISQ era. Data and code: https://github.com/fuzhenxiao/QASM-Eval

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.30358")

Code

Syntology Ran 19 of 23 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 19 ran with no contract checked.

By repository: found in paper text by Syntology: 23 samples from 1 repository, 19 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

fuzhenxiao/QASM-Eval found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

23 samples harvested; 19 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

19ran
4unverified

Licence: 23 of the 23 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from fuzhenxiao/QASM-Eval. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_one_complex_background fuzhenxiao/QASM-Eval/dataset_factory/background_complex.py found in paper text by Syntology ran no licence file found · pointer only · 59e5f96badbeb49a · report
build_one_pulse_background fuzhenxiao/QASM-Eval/dataset_factory/background_pulse.py found in paper text by Syntology ran no licence file found · pointer only · 0c17e2f40a5a8075 · report
detect_newline fuzhenxiao/QASM-Eval/dataset_factory/generate_prompt_train.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · bfd9e4a2c3354d03 · report
extract_context_for_model fuzhenxiao/QASM-Eval/dataset_factory/generate_prompt_train.py found in paper text by Syntology ran no licence file found · pointer only · 15a125850ac6f7ab · report
fmt_angle fuzhenxiao/QASM-Eval/dataset_factory/background_classical.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · e34681c6ec5cc373 · report
load_json fuzhenxiao/QASM-Eval/dataset_factory/build_parquet_dataset.py found in paper text by Syntology ran no licence file found · pointer only · b60d7699ea0bfa77 · report
load_meta fuzhenxiao/QASM-Eval/dataset_factory/pulse_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · 5b12edc2dc932c40 · report
n_qubits fuzhenxiao/QASM-Eval/dataset_factory/classical_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · 504dc1d7fdef4323 · report
n_qubits fuzhenxiao/QASM-Eval/dataset_factory/complex_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · ca3c8b54e895d336 · report
n_qubits fuzhenxiao/QASM-Eval/dataset_factory/pulse_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · 9683abdaccc67842 · report
pick_qubit fuzhenxiao/QASM-Eval/dataset_factory/classical_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · c077843ed2a79386 · report
pick_qubit fuzhenxiao/QASM-Eval/dataset_factory/complex_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · 9ee6413fcd29c289 · report
pick_two_distinct fuzhenxiao/QASM-Eval/dataset_factory/background_classical.py found in paper text by Syntology ran no licence file found · pointer only · 3ed4e31d44ffb0c0 · report
prefix_dir_with_prompt fuzhenxiao/QASM-Eval/dataset_factory/generate_prompt_train.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 03967fc4b0700a50 · report
rand_angle fuzhenxiao/QASM-Eval/dataset_factory/background_classical.py found in paper text by Syntology ran no licence file found · pointer only · 09f7389473514b04 · report
read_text fuzhenxiao/QASM-Eval/dataset_factory/build_parquet_dataset.py found in paper text by Syntology ran no licence file found · pointer only · 1162e7f1352ecaac · report
used_qubits fuzhenxiao/QASM-Eval/dataset_factory/classical_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · 19e24295596c14d3 · report
used_qubits fuzhenxiao/QASM-Eval/dataset_factory/complex_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · e86dc1a5f823a7d6 · report
used_qubits fuzhenxiao/QASM-Eval/dataset_factory/pulse_coretasks.py found in paper text by Syntology ran no licence file found · pointer only · 96c621e0b81d5042 · report
build_dataset fuzhenxiao/QASM-Eval/dataset_factory/generate_dataset.py found in paper text by Syntology unverified no licence file found · pointer only · b35350dd508a219b · report
generate_prompt_qasm fuzhenxiao/QASM-Eval/dataset_factory/generate_dataset.py found in paper text by Syntology unverified no licence file found · pointer only · 8662b34ddebd9f07 · report
generate_qasm_corpora fuzhenxiao/QASM-Eval/dataset_factory/generate_dataset.py found in paper text by Syntology unverified no licence file found · pointer only · bcef96eadfa21ac3 · report
strip_task_instruction fuzhenxiao/QASM-Eval/dataset_factory/build_parquet_dataset.py found in paper text by Syntology unverified no licence file found · pointer only · 139e3f5cb8d4c521 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.30358, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections