Skip to content
RESEARCH

Small AI models missed 27 quantum code translations. A conventional tool passed them all

The test exposed a difference between moving a quantum circuit and rewriting the program that creates it.

Published Source report Sources checked
Reading tools for text size, copying, printing and your reading list
My reading list
Front view of a gold NVIDIA DGX Spark desktop computer on a wooden surface.
An NVIDIA DGX Spark, a conventional computer designed for AI workloads, photographed in May 2026. This is not the equipment used in the study.Daniel LuDaniel Lu, via Wikimedia Commons. May 16, 2026. Resized. Both image versions are CC BY-SA 4.0.

A November 24 preprint asked small AI models to move quantum code from IBM’s Qiskit to NVIDIA’s CUDA-Q. They did well on some generated exercises but missed all 27 tasks drawn from code written by developers for an industry benchmark. A conventional converter passed all 27. The twist: it got there by translating the circuit each program produced, not by rewriting the source code line by line.[1][2][3]

Moving a circuit is not the same as moving a program

Qiskit and CUDA-Q let programmers describe operations for a quantum computer. Moving a program between them can mean two different jobs. If you just need the circuit for one set of inputs, you can sometimes run the original code to build it and translate the resulting list of operations. If you need a reusable program that takes different inputs, translating one finished circuit won’t preserve that flexibility.[1][4]

Researcher Ana Paula Appel checked the translations by running both versions in a simulator and comparing the quantum states they produced. Looking only at how often the final bits turn up can miss mistakes. Two states can produce the same counts in one measurement but respond differently to a later operation because their quantum phases differ. The study required the simulated states to match to at least 0.999 on a scale where one is an exact match.[1]

The result changed when the examples got harder

On 640 generated tasks, one fine-tuned model, Qwen2.5-Coder 7B, passed 92%, versus about 83% when given four worked examples instead. Fine-tuning scarcely changed the headline result for another model, NVIDIA’s Nemotron 4B: about 84% versus 83%. The conventional converter passed all 640 by running the source first. That makes the AI scores evidence about rewriting code, not evidence that an AI was necessary to port those circuits.[1]

On a separate set of 48 short functions, the target program had to accept arguments and match three different input settings. The best AI configuration passed about 83%; the circuit converter couldn’t meet that requirement. But on the 27 tasks built from QED-C’s benchmark code, none of the four AI configurations evaluated there produced an equivalent translation. Those were extracted circuit-building tasks, not 27 full applications, and the result does not cover every model or coding agent.[1][3]

What did each translation test require?

The authors ran the Qiskit and CUDA-Q programs in a simulator and checked the output states.
Test setRequired outputReported result
640 generated tasksReproduce a fixed circuit’s output state.The circuit converter passed all 640. The fine-tuned Qwen 7B model passed 92%.
48 short functionsAccept parameters and match the state at three input settings.The best model configuration passed 83%. The converter produced a fixed circuit that could not accept new inputs.
27 QED-C tasksReproduce circuits built by existing benchmark code at specified inputs.The converter passed all 27. Each of the four AI configurations tested here passed none.

A passing state comparison required fidelity of at least 0.999. The 27 tasks came from six benchmarks. They tested extracted circuits at small sizes. [1]

For a developer, the useful distinction is what needs to survive the move. If it is one circuit with fixed inputs, a conventional tool is worth trying first. If it is a reusable piece of source code, a convincing translation needs to run correctly across inputs it did not see in the prompt. A program that looks right, or even compiles, is not enough.[1]

Keep your reading trail

Evidence & context

4 linked sources

Appel v1 listed November 24, submitted November 22. Simulated state fidelity threshold 0.999. Separate sets of 640 generated, 48 parametric and 27 QED-C benchmark tasks. Four evaluated AI configurations zero on the 27; not a test of all coding agents or hardware.

How to read the evidence and dates

An announcement records what an organization stated. An experiment reports an observation. A simulation or resource estimate depends on its assumptions. QubitWire’s analysis connects these sources; the labels are not quality scores.

Published is the article’s first QubitWire publication. Updated marks a substantive content change. Sources checked records a review of the underlying evidence. An older paper can support a new explanation, and another press release about the same work is not independent replication.

Sources

  1. Ana Paula Appel, arXiv preprint, version 1

    Sections 3, 5 and 6 describe the execution check, generated examples and harder translation sets.

  2. arXiv submission record

    Submitted November 22; publicly listed November 24.

  3. Quantum Economic Development Consortium benchmark repository

    Project source for the developer-written circuits used to build the 27-task test.

  4. QubitWire: what changed in Qiskit 2.6

    An earlier software release, separate from the AI translation test.

READ NEXT

Continue exploring

All Research stories
  1. Which changes matter when moving a Qiskit program?

    Qiskit 2.6 gives compiled languages more control over quantum circuits

    C API compiler passes, circuit serialization and custom operations broaden the SDK. The 2.6.1 patch is already out, so migration checks should include it.

    Published · Source report · Sources checked · About 2 min read