SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.30358 · 2026

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

Fan Chen, Lei Jiang, Zhenxiao Fu

arXiv · PDF

Code that ran

20 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 10 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.30358.json · badge: /api/ran/2605.30358.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
fuzhenxiao/QASM-Eval canonical (classifier label)
classifier basis: census
20 ran · 3 no recorded run
FunctionStatusWhere it lives
build_one_complex_background Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/background_complex.py
pointer only (licence: NONE) · get_code("59e5f96badbeb49a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_one_pulse_background Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/background_pulse.py
pointer only (licence: NONE) · get_code("0c17e2f40a5a8075")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

detect_newline Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/generate_prompt_train.py
pointer only (licence: NONE) · get_code("bfd9e4a2c3354d03")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_context_for_model Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/generate_prompt_train.py
pointer only (licence: NONE) · get_code("15a125850ac6f7ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fmt_angle Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/background_classical.py
pointer only (licence: NONE) · get_code("e34681c6ec5cc373")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/build_parquet_dataset.py
pointer only (licence: NONE) · get_code("b60d7699ea0bfa77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_meta Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/pulse_coretasks.py
pointer only (licence: NONE) · get_code("5b12edc2dc932c40")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

n_qubits Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/classical_coretasks.py
pointer only (licence: NONE) · get_code("504dc1d7fdef4323")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

n_qubits Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/complex_coretasks.py
pointer only (licence: NONE) · get_code("ca3c8b54e895d336")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

n_qubits Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/pulse_coretasks.py
pointer only (licence: NONE) · get_code("9683abdaccc67842")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pick_qubit Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/classical_coretasks.py
pointer only (licence: NONE) · get_code("c077843ed2a79386")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pick_qubit Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/complex_coretasks.py
pointer only (licence: NONE) · get_code("9ee6413fcd29c289")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pick_two_distinct Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/background_classical.py
pointer only (licence: NONE) · get_code("3ed4e31d44ffb0c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prefix_dir_with_prompt Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/generate_prompt_train.py
pointer only (licence: NONE) · get_code("03967fc4b0700a50")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rand_angle Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/background_classical.py
pointer only (licence: NONE) · get_code("09f7389473514b04")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_text Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/build_parquet_dataset.py
pointer only (licence: NONE) · get_code("1162e7f1352ecaac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

strip_task_instruction Ran
ran; our contract draft was wrong, not the code
fuzhenxiao/QASM-Eval/dataset_factory/build_parquet_dataset.py
pointer only (licence: NONE) · get_code("139e3f5cb8d4c521")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

used_qubits Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/classical_coretasks.py
pointer only (licence: NONE) · get_code("19e24295596c14d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

used_qubits Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/complex_coretasks.py
pointer only (licence: NONE) · get_code("e86dc1a5f823a7d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

used_qubits Ran
ran, honoured the contract we drafted
fuzhenxiao/QASM-Eval/dataset_factory/pulse_coretasks.py
pointer only (licence: NONE) · get_code("96c621e0b81d5042")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_dataset Not yet run
unverified (harvested, no recorded run)
fuzhenxiao/QASM-Eval/dataset_factory/generate_dataset.py
pointer only (licence: NONE) · get_code("b35350dd508a219b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_prompt_qasm Not yet run
unverified (harvested, no recorded run)
fuzhenxiao/QASM-Eval/dataset_factory/generate_dataset.py
pointer only (licence: NONE) · get_code("8662b34ddebd9f07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_qasm_corpora Not yet run
unverified (harvested, no recorded run)
fuzhenxiao/QASM-Eval/dataset_factory/generate_dataset.py
pointer only (licence: NONE) · get_code("bcef96eadfa21ac3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fuzhenxiao/QASM-Eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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. Specifically, fine-tuning Llama-3-8B approaches zero-shot GPT-5.2 performance, while Llama-3-70B achieves an 85% overall pass@1, outperforming few-shot-augmented GPT-5.2. 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.30358")
get_code_for_paper("2605.30358")
have("2605.30358")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.30358.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.30358.svg)](https://syntology.ai/paper/2605.30358)

Connect an agent — have() is free.