Benchmarking Large Language Models on Repairing Qiskit Programs using Bugs4Q

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Emerging Technologies & Innovation · Depth: Expert, long

Summary

A new study benchmarks four Large Language Models (LLMs) on repairing 67 real Qiskit defects from the Bugs4Q dataset across six pinned Qiskit releases: 0.25.0, 0.45.0, 1.0.0, 1.1.1, 2.0.0, and 2.3.1. The research reveals that quantum benchmarks like Bugs4Q are susceptible to "silent label inversion," where benchmark entries become invalid without explicit errors as Qiskit versions evolve. Evaluating GPT-4o-mini, GPT-5o-mini, GPT-5.4, and GPT-5.4-mini, the study found GPT-5.4 achieved the highest pass@10 at 48.8%, with GPT-5.4-mini at 47.3%, GPT-5o-mini at 30.3%, and GPT-4o-mini at 22.6%. Performance peaked at Qiskit 0.45.0 and significantly declined after the Qiskit 1.0 transition. Crucially, 64% of observed successful repairs occurred on benchmark entries that were invalid for the target version, and many failures were due to API incompatibility rather than logical repair errors. The authors release a re-validated, version-pinned Bugs4Q benchmark.

Key takeaway

For Machine Learning Engineers evaluating Large Language Models for quantum program repair, you must adopt version-pinned evaluation protocols. Your benchmark results will be unreliable if you don't account for Qiskit version changes, which cause silent label inversions and API incompatibilities. Ensure you track both repair correctness and environmental executability. Consider developing multi-version-aware prompting strategies to improve model robustness across different Qiskit releases.

Key insights

Quantum program repair benchmarks require version-pinned validation to accurately assess LLM capabilities due to silent label inversion and API evolution.

Principles

Method

The study constructed a deduplicated 67-defect Bugs4Q benchmark, authored executable tests, and applied a version-pinned validation protocol across six Qiskit releases to evaluate LLM repair candidates.

In practice

Topics

Code references

Best for: AI Scientist, Research Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.