atlas

Research map / Large language models / Instruction and fine-tuning

QCircuitBench: A Large-Scale Dataset for Benchmarking Quantum Algorithm Design

NeurIPS 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces QCircuitBench, a 120k-datapoint benchmark for LLM-driven quantum algorithm design and oracle construction in Qiskit/OpenQASM 3.0 (and Cirq), with automatic syntax and semantic verification, and benchmarks GPT-4o, Llama3, Qwen2.5, DeepSeek-R1 plus a small LoRA fine-tune of Llama3-8B.

Problem

LLMs lack a dataset for designing and implementing quantum algorithms as verifiable quantum circuit code, since existing quantum circuit benchmarks are for NISQ hardware or software tools rather than AI training and evaluation.

Approach

Formulate quantum algorithm design as quantum code generation: each data point pairs a natural-language problem with OpenQASM 3.0 circuits, black-box oracle definitions, Python post-processing, and automated syntax/semantic test-case verification, across 25 algorithms and three task suites.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 5-shot instead of 1-shot promptingGPT-4o · Bernstein-VaziraniQASM syntax score: 0.0000 -> 1.0000Helped
Use 5-shot instead of 1-shot promptingQwen 2.5 · Deutsch-JozsaSemantic score: 0.0000 -> 0.2854Helped
Use 5-shot instead of 1-shot promptingGPT-4o · Quantum algorithm designAverage QASM syntax score: 0.2734 -> 0.5775Helped
Use 5-shot instead of 1-shot promptingGPT-4o · Quantum algorithm designAverage semantic score: 0.0245 -> 0.2006Helped
Use 5-shot instead of 1-shot promptingQwen 2.5 · Quantum algorithm designAverage QASM syntax score: 0.2844 -> 0.4307Helped
Use 5-shot instead of 1-shot promptingQwen 2.5 · Quantum algorithm designAverage semantic score: 0.0000 -> 0.0998Helped
Use 5-shot instead of 1-shot promptingLlama3 · Quantum algorithm designAverage QASM syntax score: 0.2435 -> 0.4602Helped
Use 5-shot instead of 1-shot promptingLlama3 · Quantum algorithm designAverage semantic score: 0.0110 -> 0.0323Helped
Use 5-shot instead of 1-shot promptingDeepSeek-R1 · Quantum algorithm designAverage QASM syntax score: 0.0576 -> 0.1768Helped
Use 5-shot instead of 1-shot promptingDeepSeek-R1 · Quantum algorithm designAverage semantic score: 0.0126 -> 0.0102Hurt
Fine-tune on QCircuitBench oracle construction dataLlama3-8B · Grover oracle constructionAggregated verification score: +0.1900Helped
Fine-tune on QCircuitBench random circuit synthesis dataLlama3-8B · Clifford and universal random circuitsAggregated verification scoreHurt

Surprising findings

Limitations

Experimental setup

Datasets: QCircuitBench

Benchmarks: QCircuitBench

Metrics: BLEU byte perplexity QASM syntax score Python syntax score semantic score gate count ratio shot count ratio time count ratio

Baselines: GPT-4o Llama3-8B Qwen 2.5 DeepSeek-R1 Human study

Builds on: QLoRA LoRA QASMBench MQTBench

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy