Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Google Research 6 min read Research hardMaster

Towards a quantum computer that learns from its errors

Google Quantum AI uses reinforcement learning on quantum error correction detection events to continuously recalibrate thousands of analog control parameters during computation, rather than halting to recalibrate. On the Willow superconducting processor, RL steering improved logical stability 3.5-fold under injected drift and cut logical error rates a further 20% beyond expert human calibration, reaching under one error per thousand cycles in the surface code and one per hundred in the color code. Simulations with hundreds of qubits and tens of thousands of parameters show the number of RL training epochs is independent of system size, because detection events are locally sensitive to errors.

Assumes: quantum error correction basicsreinforcement learning basics

Related posts

  • Dynamic surface codes open new avenues for quantum error correction

    Google Research hardMaster

    Google Quantum AI demonstrated surface codes run with dynamic circuits on its Willow superconducting processor, alternating between different detecting-region tilings each cycle instead of repeating one static circuit. Three variants each address a hardware problem: a hexagonal circuit needs only three couplers per qubit and achieved a 2.15x error suppression from distance 3 to 5, matching the static circuit. A walking circuit swaps data and measure roles so leakage reset reaches every qubit, cutting time-correlated errors by over an order of magnitude, on par with DQLR. An iSWAP-based circuit reached a suppression factor of 1.56, which suggests future hardware could be co-designed around non-CZ gates and around qubit dropouts.

  • vLLM V0 to V1: Correctness Before Corrections in RL

    Hugging Face hardMaster

    Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge. Matching the V0 reference took four backend fixes: setting logprobs-mode=processed_logprobs so returned logprobs reflect temperature and top-k/top-p processing, explicitly disabling V1's default prefix caching and async scheduling, reproducing V0's inflight weight-update semantics with pause_generation(mode="keep", clear_cache=False), and computing the lm_head in fp32 to match the trainer. Batch invariance and the logprob-mode fix alone did not close the gap. The broader recommendation is to restore inference-backend correctness before adding objective-side off-policy corrections such as truncated importance sampling, so those corrections don't hide backend bugs.

  • PipelineRL

    Hugging Face hardMaster

    PipelineRL resolves the tradeoff between inference throughput and on-policy data in LLM reinforcement learning by doing inflight weight updates: after each optimizer step, trainers broadcast new weights via NCCL to inference servers, which pause only long enough to receive them and then keep generating with existing KV caches. Trained on the Open-Reasoner-Zero dataset at 7B and 32B, it matches or beats Open-Reasoner-Zero on AIME 2024 and MATH 500 using a simplified GRPO with no value function, importance-weight clamping, KL penalty or entropy bonus. The modular design defines HTTP contracts for inference servers (init_process_group, request_weight_update, chat completion) and Python contracts for trainers, so engines like vLLM, SGLang, DeepSpeed or FSDP can be swapped in.

  • A game you cannot win unless you have a quantum computer

    Google Research hardMaster

    Google Quantum AI measured quantum contextuality on its superconducting Willow processor. Its qubits won the Mermin-Peres magic square game 98.30% of the time against a classical ceiling of 88.89%, and a state-independent Bell–Kochen–Specker inequality gave χ = 5.590, above the classical bound of 4 and close to the quantum limit of 6. The separation holds at scale: GHZ parity games with up to 71 players stayed above the classical bound, and constant-depth hidden-linear-function circuits succeeded with probability above 0.5 on up to 105 qubits. These tasks also expose subtle coherent errors that random-circuit benchmarks average away, which makes them useful as a hardware benchmark with a fixed physical ceiling.

  • Putting RL back in RLHF

    Hugging Face hardMaster

    RLOO (REINFORCE Leave-One-Out) is now available as a trainer in Hugging Face TRL. It is an online RLHF algorithm that drops PPO's value model. It treats the whole completion as a single action, uses the REINFORCE loss, and computes each sample's baseline as the mean reward of the other k−1 completions for the same prompt. That cuts vRAM by roughly 50-70% and makes training 2-3x faster than PPO on Pythia 1B and 6.9B, while matching PPO's GPT-4-judged win rate (78.7% for 6.9B on TL;DR) and beating DPO. Code walkthroughs show the advantage computation and that REINFORCE is a special case of the PPO loss. There is a caveat: bf16 numerical mismatches between generation and training logprobs hurt RLOO more than PPO.

The quest for software engineering knowledge.

Look:
Layout: