TRANSMISSION // 2607.07554v2

RubriQ teaches AI to favor cheaper correct quantum circuits

Source published

RubriQ separates checking whether a quantum circuit is correct from scoring its cost. The authors report that training raised correct outputs and that a separate selection test favored lower-cost verified circuits—but results depended on the task and setup.

AI-generated conceptual illustration for RubriQ teaches AI to favor cheaper correct quantum circuits
AI-generated conceptual illustration; not documentary evidence.

A quantum circuit must perform the intended computation, but it may also need to use fewer or more suitable operations. RubriQ gives these goals separate roles: a verifier checks correctness, while a rubric scores circuits that pass. The authors report promising results, with important limits on what the experiments establish.

Quantum circuits are sequences of operations that instruct a quantum processor. For a circuit to be useful, it must implement the intended computation and do so at a manageable cost. But training a language model to write circuits raises a tricky question: how should it be rewarded when correctness is essential and efficiency has several possible measures?

In an arXiv preprint, Ziqing Guo and Ziwen Pan propose RubriQ, a reward system that divides the task in two. First, a verifier checks whether a circuit meets a correctness threshold. A circuit that fails—or code that cannot be parsed—gets no reward. Circuits that pass receive scores for features including gate composition, estimated T-gate cost, circuit depth and compatibility with selected hardware. T gates are costly in some fault-tolerant computing schemes; depth reflects how many layers of operations a circuit requires. The scores use unequal weights, with fidelity receiving the largest weight, alongside a separate pass threshold.

The team trained a 7-billion-parameter code model using group relative policy optimization, or GRPO. In simple terms, the model generates several candidate answers to a prompt, and training encourages candidates that score better than others in their group. The researchers compared different reward designs using verifiers and circuit benchmarks.

In one training evaluation, the share of outputs passing the correctness check rose from about 7% before training to 91% in runs that reached 1,000 steps. The rubric, a binary pass-or-fail reward and a single T-count reward had similar correctness-learning curves. So the result does not show that RubriQ alone produced the increase in correctness.

The paper also tested cost selection separately. The authors assembled pools of circuits that had already been verified, then trained a simple policy to choose among them. Across five circuit families, the rubric closed an average of 91% of the available reward gap in four families. The binary reward closed less than 10% in those reported comparisons. This gap is measured using the rubric’s reward; it is not a universal percentage reduction in circuit cost. The rubric also involved trade-offs: it favored lower depth in some comparisons, while a T-count-focused reward did better on T count.

The results depend on the experimental setup. A gated reward cannot distinguish candidates in a group if none is correct: all receive zero, leaving no learning signal from that group. In an initial evaluation, the model had no correct samples under the prompt format used. Gated rewards therefore provided no learning signal there. Dense rewards, which could score parsed circuits even when they failed the correctness threshold, still produced informative groups and helped the model learn to format outputs, though they did not teach it the target computation. A revised prompt allowing Qiskit code gave the model some successful candidates to build on. Conversely, partial credit for circuits that nearly—but did not—meet the correctness threshold led to a “near-miss” problem in one evaluation: the model favored almost-correct circuits and stopped short of the threshold.

There is another limit to the cost-selection test: its policy chose from a prepared pool of verified circuits rather than generating them itself. In the model-training evaluation, a permitted Qiskit library call let the model reuse reference circuits. Correct candidates often then had identical scores, leaving little opportunity for the rubric to distinguish their costs. The authors also note that some earlier hardware evaluations were not repeated and that logs for an earlier 1,500-circuit collection were absent from the code archive.

The work supports a narrower conclusion than “AI can design cheaper quantum circuits.” Separating correctness from cost may help: a gate prevents incorrect circuits from being rewarded for cheapness, while multiple scores can rank verified alternatives when those alternatives differ. Whether this produces better circuits in a new setting depends on the verifier, prompts, candidate diversity, cost measures and hardware assumptions. The source is an arXiv preprint, so these findings should not be taken as independent replication or peer-reviewed validation.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.