← Latest papers
⚛️ quantum physics

RubriQ: Rubric-Guided Group Relative Policy Optimization for Constraint-Aware Quantum Circuit Synthesis

RubriQ is a scalable, HPC-driven framework that leverages rubric-guided Group Relative Policy Optimization (GRPO) with GPU-accelerated simulation to automatically synthesize fault-tolerant quantum circuits that achieve significant T-gate compression while strictly adhering to hardware constraints and maintaining high fidelity.

Original authors: Ziqing Guo, Ziwen Pan

Published 2026-07-09
📖 4 min read🧠 Deep dive

Original authors: Ziqing Guo, Ziwen Pan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a complex machine using a very specific, expensive, and fragile set of Lego bricks. You have a master blueprint (the algorithm you want to run), but the instructions you have are written in a vague, high-level language like "build a flying car."

The problem is that the factory floor (the quantum computer) has strict rules:

  1. The Bricks are Rare: One specific type of brick (the "T-gate") is incredibly expensive to make. You want to use as few of them as possible.
  2. The Layout is Weird: Some machines (like IBM's) only let you connect bricks that are right next to each other. Others (like IonQ's) let you connect any brick to any other brick.
  3. The Goal: You need to turn that vague "flying car" idea into a precise, step-by-step instruction manual that uses the fewest expensive bricks possible while obeying the factory's layout rules.

RubriQ is a new system designed to solve this puzzle automatically. Here is how it works, broken down into simple concepts:

1. The "Smart Writer" (The LLM)

Instead of using a rigid computer program that follows a fixed list of rules, RubriQ uses a Large Language Model (LLM). Think of this as a very smart, creative writer who has read millions of instruction manuals.

  • You give the writer a prompt: "Write a quantum circuit for a 4-qubit Fourier Transform."
  • The writer tries to generate the code. Sometimes it writes perfect code; sometimes it writes nonsense or leaves out steps.

2. The "Strict Teacher" (The Rubric)

In the past, when training AI to do this, the computer would only say "Good job" or "Bad job" at the very end. This is like a teacher waiting until the final exam to tell a student they failed, without explaining why. This makes learning slow and frustrating.

RubriQ introduces a Rubric, which is like a detailed grading rubric a teacher uses. Instead of a simple "Pass/Fail," the system checks the generated code on five specific dimensions:

  • Clifford Score: Did you use the cheap, common bricks?
  • T-Count Score: Did you minimize the expensive, rare bricks?
  • Hardware Score: Does this code actually fit on the specific machine (IBM or IonQ) you are targeting?
  • Fidelity Score: Does the machine actually do what you asked it to do?
  • Efficiency Score: Is the instruction manual short and tidy?

The system gives the AI a score for each of these areas. This provides a "dense" signal—lots of feedback—so the AI knows exactly which parts of its code to fix, rather than guessing.

3. The "Group Contest" (GRPO)

To teach the AI, RubriQ uses a method called Group Relative Policy Optimization (GRPO).

  • Imagine you ask the AI to solve the problem 8 times in a row.
  • You don't need a separate "judge" AI to tell you which one is best. Instead, you just compare the 8 answers against each other.
  • The one with the highest rubric score gets a "thumbs up," and the ones with lower scores get a "thumbs down."
  • The AI learns by looking at the winners and losers within its own group and adjusting its writing style to produce more "winners" next time.

4. The "Super-Factory" (HPC)

Training this AI is incredibly heavy lifting. Simulating quantum circuits is like trying to calculate the weather for every possible future at the same time; it requires massive computing power.

  • The researchers ran this on NERSC Perlmutter, a supercomputer with hundreds of powerful graphics cards (GPUs).
  • They built a pipeline where the AI generates code, a parser checks if it's readable, and a simulator runs it on the "virtual factory floor" to check the scores.
  • Because they used the "Rubric" method, the AI learned 2 to 3 times faster than previous methods that relied on vague "Pass/Fail" signals.

The Results

When they tested RubriQ:

  • It saved resources: It managed to reduce the number of expensive "T-gates" by an average of 3.3 times compared to standard tools.
  • It was accurate: The circuits it wrote actually worked when tested on real quantum computers from IBM and IonQ.
  • It was efficient: It reached its goals in fewer training steps, saving massive amounts of electricity and computer time.

In short: RubriQ is a system that teaches a creative AI writer how to build quantum circuits by giving it a detailed checklist (the rubric) and letting it learn by comparing its own attempts against each other, all running on a massive supercomputer to ensure the results are ready for real-world quantum machines.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →