arXiv:2610.28678cs.SEOct 2026

Manuscript Offprint

arXiv:2610.28678

Benchmarking the Quantum Leap: Auditing LLM Evaluation for Quantum Code Generation

Ethan Seefried, Romit Ghosh, Sharmin Afrose, Nicholas Stapleton, Vicente Layton Ortega, Travis Humble, Tirthankar Ghosal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large language models (LLMs) are increasingly capable of generating quantum programs, but reliable evaluation remains difficult: benchmarks differ in task composition, scoring procedures, and failure handling, while leaderboard rankings can obscure uncertainty and evaluator defects. We evaluate 15 hosted frontier, open-weight, quantum-specialized, and retrieval-augmented models across five primary quantum code-generation suites containing 530 tasks, and 10 models on Quantum-BenchEval (QBE), a new benchmark of 96 tasks across six quantum-computing topics that we introduce. We report task-level bootstrap confidence intervals, multiplicity-adjusted paired comparisons, and audits of evaluator behavior, output validity, and shared failures. QiskitHumanEval-Standard is approaching saturation for the strongest models (98.7% pass@1), whereas its Hard variant retains substantial headroom (63.8%); across the recorded primary-suite outcomes, none of the five top-two comparisons remains significant after multiple-comparison correction. Evaluation design can have an even larger effect: removing checks on quantities the prompts never specified in two QuantumBenchEval topics raises GPT-6 Astra's pass@1 from 0% to 94.1% (T1) and from 1.2% to 92.9% (T6) without changing its outputs. Our audit also identifies 17 QuanBench-117 tasks with shared failures associated with benchmark-owned imports, while controlled probes of the current evaluator reveal unexecuted unit tests, leakage of canonical functions into candidate execution, and reference imports that can block otherwise valid candidates. These defects can affect both apparent failures and apparent passes, requiring historical QuanBench outcomes to be revalidated under an isolated evaluator. Together, these results show that quantum code-generation progress cannot be characterized by leaderboard scores alone. We release the evaluation harness, per-sample outcomes, and audit artifacts, and advocate protocols that validate scoring and test execution, isolate candidate and reference code, report uncertainty and output validity, and respect sampling assumptions when estimating pass@k.

1 INTRODUCTION

A programmer asked to prepare a four-qubit W state, or to decompose a CNOT into iSWAP gates, must reason about circuit semantics, measurement statistics, and backend constraints in addition to ordinary concerns of API usage and correctness (Riofrío et al., 2025). Large language models (LLMs) have become capable code generators (Chen et al., 2021), and several systems now target this setting directly, including Qiskit Code Assistant (Dupuis et al., 2024), QSpark (Kheiri et al., 2025), PennyCoder (Basit et al., 2025b), and Agent-Q (Jern et al., 2025). A parallel line of work has produced benchmarks for measuring them, from Qiskit HumanEval (Vishwakarma et al., 2024) and QCircuitNet (Yang et al., 2024) to QHackBench (Basit et al., 2025c), QCoder (Mikuriya et al., 2025), and QuanBench (Guo et al., 2025).

These benchmarks do not agree on what to measure or how. They differ in task composition, execution environment, and output format. Some grade by executable unit tests; others require a model-based judge or a custom scoring function. Three consequences follow for anyone comparing models across them. First, a suite may lose discriminative power as models improve, so that a leaderboard position no longer distinguishes capability. Second, a difference between two models may be smaller than the sampling noise of a few hundred tasks, so that leaderboard order and statistical evidence for separation come apart. Third, a benchmark score depends on the reference solutions, test harness, dependencies, and evaluator assumptions as much as on the generated program, so that a defect in any of these components is misread as a failure, or a success, of the model. Systematic analysis of evaluation validity of this kind exists for classical code generation (Chen et al., 2021) but not, to our knowledge, for quantum code generation.

In this paper, we ask two questions: how well do current LLMs generate quantum code, and how reliably do existing protocols measure that ability? We evaluate 15 models spanning hosted frontier, open-weight, quantum-specialized, and retrieval-augmented systems on five established suites comprising 530 tasks. We also introduce QuantumBenchEval (QBE), a new 96-task benchmark spanning six quantum-computing topics, on which we evaluate 10 models. Because its tasks are newly constructed, they are less likely than long-standing public suites to appear in training data. Across all suites we report uncertainty, statistical separability, shared failures, output validity, and evaluator behavior rather than point estimates alone.

Our contributions are as follows.

• Unified evaluation. We build a single harness covering five suites, 530 tasks, and 15 models, and report pass@k with task-level bootstrap confidence intervals, paired comparisons with Holm correction, and bootstrap rank intervals.

• Saturation and separability. QiskitHumanEval-Standard is saturating for the strongest models (98.7% pass@1), whereas its Hard variant retains headroom (63.8%). On each of the five primary suites, the top-two model comparison loses significance after multiplicity correction.

• Evaluator effects. Removing checks on quantities the prompts never specified in two QuantumBenchEval topics raises GPT-6 Astra from 0% to 94.1% (T1) and from 1.2% to 92.9% (T6) on unchanged outputs. An audit of the QuanBench evaluator identifies 17 QuanBench-117 tasks whose shared failures trace to benchmark-owned imports, and controlled probes show that unit-test cases can go unexecuted, canonical functions can leak into candidate execution, and reference-code imports can block otherwise valid candidates. These defects affect apparent passes as well as apparent failures, so historical QuanBench results require revalidation under an isolated evaluator.

• Living benchmark. We release Quantum Arena, a public leaderboard consolidating tasks, per-sample outcomes, and audit artifacts, together with the harness itself, so that new models and tasks can be evaluated under the same protocol after publication.

References (58)