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.
Reading tools for text size, copying, printing and your reading list

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?
| Test set | Required output | Reported result |
|---|---|---|
| 640 generated tasks | Reproduce a fixed circuit’s output state. | The circuit converter passed all 640. The fine-tuned Qwen 7B model passed 92%. |
| 48 short functions | Accept 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 tasks | Reproduce 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]