Daily AI Paper

Every day, our AI scans the latest arXiv submissions, picks the most notable one, and narrates a video introduction — automatically.

Latest
2026-10-17

Discovering state-of-the-art quantum circuits with large language models

Andi Gu, Alek H. Kemeny, Susanne F. Yelin, Mikhail D. Lukin

arXiv:2610.22367v1

Quantum algorithms don’t just need clever high-level ideas. They also need the low-level circuits that make those ideas practical. And in quantum computing, that low-level layer is unusually hard, because the computation has to be reversible. Every bit of information that gets overwritten has to be recoverable later, or the circuit can’t be uncomputed cleanly. That reversibility constraint turns many otherwise elegant classical algorithms into resource-hungry quantum ones, especially when you count expensive gates like Toffolis and the number of qubits needed for temporary storage. This paper tackles that bottleneck in a very different way. Instead of hand-designing reversible circuits from scratch, the authors use large language models as proposal engines inside an evolutionary search loop. The LLM suggests circuit designs, and an independent evaluator verifies them, scores them, and feeds that information back into the search. The goal is not to ask the model to “solve quantum computing” directly, but to use it as a creative partner that can propose unusual circuit structures humans might overlook. The paper shows that this approach can uncover state-of-the-art circuits across a range of tasks, from numerical computation and chemistry to optimization, quantum simulation, and number theory. The big picture here is that many useful quantum algorithms are built from a small number of repeated computational primitives. If you can make those primitives cheaper, you can improve the whole algorithm. But the quantum version of that problem is tricky because a classical optimization step may rely on branching logic, temporary overwrites, or one-way state updates. In a reversible circuit, those things are expensive. So the challenge is not just to translate a classical algorithm into quantum form, but to reorganize it so that the same logical computation can be carried out with less control overhead, less history storage, and fewer qubits. The paper distills its discoveries into three recurring design principles. The first is conditional routing instead of conditional arithmetic. In a naïve reversible translation of a case-based classical algorithm, each branch gets its own controlled arithmetic block. That is costly. The better idea is to represent the branches so that they differ mainly in which data sits in which register. Then cheap controlled swaps can route the right values into place, one shared unconditional arithmetic path can do the expensive work once, and more routing can move the result where it belongs. So rather than controlling the computation itself, the circuit controls the data layout. This is the same general intuition behind ideas like QRAM-style routing. The second principle is to avoid storing a full history stack whenever possible. Reversibility usually suggests that every branch decision must be recorded so the circuit can later be undone. But the paper points out that the evolving state of the computation itself may already contain enough information to recover those decisions. If the forward algorithm is designed carefully, then some register patterns can serve as an implicit record of the branch choices. During uncomputation, the circuit reads those patterns back, reconstructs the branch bits, and reverses the update without a separate explicit log. The key is that the algorithm, its data representation, and its uncomputation procedure have to be co-designed together. The third principle is to exploit the fact that many quantum algorithms tolerate a small failure probability. That does not mean “ignore hard cases,” but it does mean that if rare inputs force extra resources, it may be worth reorganizing the circuit so those extra resources are isolated to a small portion of the computation. Then the circuit can omit them for the common case, reducing Toffoli count or qubit count, while only failing on very unlikely inputs. This is a very practical trade-off: worst-case resource requirements in a quantum circuit are often set by rare paths, so shrinking those paths can pay off a lot. The first concrete application is reversible syndrome decoding for decoded quantum interferometry, or DQI. DQI is a quantum algorithm that turns certain optimization problems into decoding problems for classical error-correcting codes, then uses quantum interference to bias toward better solutions. One important application is optimal polynomial intersection over finite fields, where DQI offers a superpolynomial speedup over known classical methods. But DQI needs a Reed–Solomon decoder as a subroutine, and because that decoder must act coherently on superpositions, its reversible implementation becomes a major cost. The authors focus on a Reed–Solomon instance where 70 syndrome values determine an error pattern with at most 35 errors. Prior work used a reversible decoder based on the extended Euclidean algorithm. Here, the search framework discovers a different circuit built around the Berlekamp–Massey recurrence. Berlekamp–Massey is arithmetically cheaper, but naïvely making it reversible would seem to require storing a long history of overwritten intermediate polynomials. The discovery is that the circuit can preserve the arithmetic advantage while largely avoiding that storage. At a high level, Berlekamp–Massey incrementally constructs an error-locator polynomial, whose roots identify the error positions. Each round computes a discrepancy from the current syndrome. If the discrepancy vanishes, no correction is needed. If it does not, the algorithm updates the locator polynomial using a previously stored template polynomial and a stored discrepancy value. The reversible challenge is that the update overwrites those old values. A straightforward reversible implementation would keep a whole stack of past polynomials. The paper’s circuit avoids that by using a freedom in the decoding task: the locator polynomial only matters up to a nonzero multiplicative factor, because scaling does not change its roots. That means both branches of the update can be rewritten into a shared arithmetic path after a suitable rescaling. As a result, the circuit can use conditional routing and a single shared update without storing the displaced template polynomial. The second issue is the discrepancy itself. But here too the circuit exploits structure: the updated polynomial’s coefficients contain enough information to reconstruct the old discrepancy, so the circuit never needs to store the discrepancy register explicitly in the common case. There is still one exception, the retain update, where a temporary discrepancy must be stored on the history stack. Even then, the search finds a much smaller stack than the naïve reversible design would require. In the worst case, the old construction would need 35 stack entries, corresponding to 665 qubits. Under the actual DQI input distribution, though, a second stack entry is needed only with probability 10 to the minus 4, so the discovered circuit uses just one stack entry, or 19 qubits instead of 665, and allows failure on those rare inputs. The important point is not just that the circuit is smaller, but that the search found a way to localize the rare-case cost. The second major application is reversible modular inversion, which is a core arithmetic subroutine in many quantum algorithms. The problem is to find x such that wx is congruent to 1 modulo a prime p, given a nonzero w. The standard route is via the extended Euclidean algorithm, which reduces a pair of integers while tracking coefficients that express the gcd in terms of the original inputs. A variant called divsteps replaces division with conditional additions, subtractions, and halving. That makes it attractive for quantum circuits, because those operations are easier to implement reversibly. Divsteps works by holding one odd integer fixed while reducing the other. If the current g is even, it can simply be halved. If it is odd, adding or subtracting f makes it even. Periodically, the roles of f and g are swapped, guided by a signed counter z that estimates their relative sizes. Auxiliary values track the input’s contribution so that, at the end, the inverse can be recovered up to a known scaling factor. The appeal of divsteps is that it avoids division entirely. But reversibility again creates a challenge: every step is one of several possible updates, and a naïve reversible circuit would need to store which update happened at each time step. The discovered circuit instead recovers the decisions from the arithmetic state itself. The update is labeled by two bits: one bit says whether a swap occurred, and the other says whether the incoming g was odd. For many steps, the swap bit is easy to identify because the updated coefficient registers leave a distinctive parity pattern. For nonswap steps, the sign and counter register provide additional clues. The paper emphasizes that the circuit does not simply “record the branch bits more cleverly”; it redesigns the data flow so the branch information can be inferred later from invariants of the computation. The results across the paper are striking in their consistency. In seven of the eight tasks studied, the discovered circuits significantly reduce both Toffoli count and qubit count relative to the state of the art. In the eighth task, the search discovers a new reversible architecture for prime-field modular inversion. That architecture makes divsteps, which had previously been impractical for reversible integer arithmetic, viable in a quantum setting and improves the Toffoli-qubit trade-off for modular inversion. What do these results actually show? First, they show that the best reversible circuit is not always the most literal reversible translation of the best classical algorithm. Often, the better circuit comes from changing the representation, changing what gets routed, or changing which information must be explicitly remembered. Second, they show that LLM-guided search can discover these structural transformations rather than just parameter tweaks. And third, they show that small, local design choices in reversible arithmetic can have large system-level effects on a quantum algorithm’s total cost. There are also important limitations. This is still a search-based approach, not a fully automatic theorem that any classical algorithm can be made efficient. The method depends on the existence of useful evaluator signals and on the search space being rich enough to contain a good design. The paper’s own design principles suggest that success often comes from finding a special decomposition or a hidden invariant, which may not always exist. And when the approach relies on rare-input failure, the resource gains come with a controlled but real loss of worst-case correctness. So these circuits are optimized for the actual input distribution and the practical failure budget, not for absolute worst-case purity. Even with those caveats, the broader message is very encouraging. The paper suggests that evaluator-guided LLMs can do more than generate code-like artifacts: they can help co-design the algorithmic structure itself. For quantum computing, where reversibility, ancilla management, and gate counts are all tightly coupled, that kind of co-design may be exactly what is needed to turn elegant ideas into usable circuits.

Previous daily papers

2026-10-17FDE-Gym: The Last Mile of AI Delivery2026-10-17MLExpert: Towards a Generalist Agentic Model for Autonomous Machine Learning Engineering2026-10-15Your Transformer Is Secretly Elastic2026-10-15Hierarchical Residual Policy Learning for Real-World Mobile Manipulation with Sparse Human Guidance2026-10-15Latent Compaction with Test-Time Training2026-10-14Tev: Scaling Long-Horizon Agentic Environments with Dense Progress Rewards2026-10-14The Last Remote Sensing Model Built by Humans? Casting Any Earth Observation Task as Recursive Self-Improvement2026-10-14Hybrid Reasoning Agents2026-10-13AI Models Can Provably Hide Arbitrary Capabilities2026-10-13RATED: Reliability-Aware AI Agent Tool Retrieval via Execution Dynamics2026-10-13Designing Protein Structures from Natural Language2026-10-12RSI-Anything: Unlocking Recursive Self-Improvement with World Models2026-10-11A Balanced Data Diet: Addressing the Exploration Bottleneck in Mega-Scale RL for Robot Control2026-10-11FAITH: Feasibility-Aware Safety-Filtered RL for High-Dimensional Systems2026-10-11VioLA: Learning Generalist Humanoid Control Policies from Human Data2026-10-10FastBench: Can Streaming VLMs Perceive High-Dynamic Real-World Streams?2026-10-10Ecology of AI Agents: Collaboration Creates a Population Threshold for Takeoff2026-10-08Long-WAM: Scaling the Context of World-Action Models2026-10-08SciExam for ENSO: Can AI Agents Build Climate Models?2026-10-08RoboJEPA: Scaling Robotic Latent World Models2026-10-08RECAST: Learning to Compute the Right Context through Adaptive Evidence Routing2026-10-07WorldSonus: Bringing Sound to Worlds2026-10-07IdeaAnchor: Teaching LLMs to Turn Literature into Research Ideas2026-10-07Agent in a Bottle: Can LLM Agents Turn Their Capabilities Into Cheap, Scalable Artifacts?2026-10-06CLIFT: Conformal Self-Verification for Web Agent Training and Test-Time Scaling2026-10-06PlotGround: Grounding Plot Digitization in Real Scientific Figures and Their Source Data2026-10-06Base Models Can Reason By Taking a Cue From Training Data2026-10-05LESSER: Post-Training Data Selection with Output-Layer Gradients2026-10-05Language Models that Play Chess and Explain Their Moves2026-10-05Less Decoder is More Encoder: Geometric Representation Learning from Novel View Synthesis2026-10-04One Basis to Animate Them All: Gaussian Blendshape Distillation for Real-Time Avatars2026-10-04The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models2026-10-04DMAD: Distribution Matching as Adversarial Distillation for Fast Visual Generation2026-10-03VISTA: A Visual Harness for Reasoning in an Interactive World2026-10-01Looped Diffusion Transformer2026-10-01Scaling Laws for Looped Mixture of Experts2026-10-01EvoDuet: Bilevel Co-Evolution of Web Searching and Task Solving for Scientific Discovery2026-09-30Beyond the Timeline: Augmenting Long-Video Memory with Grounded Entity Biographies2026-09-30Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoning2026-09-30Pretraining Latent Information Feedback Transformers with Teacher Supervision2026-09-29Unifying Distributional Training for One-Step Visual Generation2026-09-29Improving Test-Time Scaling with Adaptive Looped Transformers2026-09-29Telescopic Language Models2026-09-28Statistical attribute alignment for black-box generative AI via output post-processing2026-09-28User Model Extraction via Belief Self-Distillation2026-09-28Learning to Stop without Learning to Stop: Self-Supervised Confidence Training Improves Reasoning Efficiency2026-09-27TrackEverything: Long Horizon Dense Tracking via De-Duplicating 3D Scene Representations2026-09-27LLM Agents Can Easily Tamper With Their Own Traces2026-09-27Instrumental Monitor Evasion Emerges Under Ordinary Task Pressure2026-09-26PoEM: Predicting RL Outcomes from Existing Policies2026-09-24Frozen Flows Forget: Diagnosing and Restoring Lost Motion in a Latent-flow World Model2026-09-24StudentBench: AI and human tutoring yield equivalent GRE learning gains2026-09-24Agent-Editing World Model: Rethinking World Modeling for LLM Agents2026-09-23Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agents2026-09-23FleXray: Universal Clinical X-ray Segmentation2026-09-23SWE-Serve: Benchmarking Agentic Engineering For Production Inference Serving2026-09-22GameHorizon Suite: Multi-Horizon Data and Evaluation in Gameplay2026-09-22Emergent Collusion in Long-Horizon LLM Agent Interaction2026-09-22WorldCrafter: Consistent Video World Model with Implicit 3D-aware Memory