Daily AI Paper

Daily AI Paper

2026-10-17

Archived
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-11-07Scientist World: Grow a Research World for AI-Scientists2026-11-07Understanding AI from the Inside: The State of Mechanistic Interpretability for AI Safety2026-11-06User Embeddings are Superpositions of Interpretable Behavioral Modes2026-11-05FrontierPhysics: Evaluating Agents for End-to-End Physics Research2026-11-05Reinforcement Learning Enables Scaling Generalist Robot Policy Improvement2026-11-05Perceptive Humanoid Motion from Simulation2026-11-04From Autonomous Agents to Cognitive Symbionts: Toward AI-Augmented Human Intelligence2026-11-04DreamX: Video Diffusion Model is a Universal Latent Action Learner2026-11-04PyRUA-DataFarm: LLM Agent as a Cost-Efficient Teleoperator for Real-Ready Robot Data2026-11-03Pixel: A Co-Designed Full-Stack Robot System for Learning General-Purpose Mobile Manipulation2026-11-03Strategist: Evolving Reasoning with Agents2026-11-03DR Pixel: Page-Native Deep Research with Vision-Language Models2026-11-02ACCT: Asymmetric Cross-LLM Context Transfer2026-11-02Latent Reasoning in Continuous Space for Unified Multimodal Models2026-11-02Subquadratic Attention with a Hierarchical Tree-Structured Indexer2026-11-01Testimony from Timelines: Evidence-Grounded Significance Testing of Temporal Clinical Hypotheses2026-11-01ShallowDefend: Harnessing Shallow Safety Alignment for Multi-Turn Defender2026-10-31Difficulty Calibration Across Time for Membership Inference in Diffusion Models2026-10-30world2vec: Mechanistic world models through latent dynamics learning2026-10-30Elucidating the Design Space of LM Data Attribution2026-10-29Pushing Dexterity and Safety for In-Hand Object Pose Reaching That Works Remarkably Well2026-10-29Can LLMs Uncover Hidden Physical Laws through Free Exploration?2026-10-29Scaling Laws for Tool-Use Agents via Controllable Environment Synthesis2026-10-28Multi-State Linear Attention with Generalized Second-Order Routing2026-10-28Heads of Security: Learned Attention Gates Improve Prompt Injection Robustness2026-10-27Pretraining Knows What, Simulation Teaches How: Compositional Generalization in a Sim-Trained Robot Agent2026-10-27Retriever-Free Retrieval: Navigating Documents with Decision Models2026-10-27Reva: Real-Time Vulnerability Detection through Contextual Probing of Large Language Models2026-10-26Learning Positive Linear Combinations of ReLUs in Fully Polynomial Time2026-10-25Reliable AI-Assisted Decisions via Selective Auditing2026-10-25A Fix for Softmax and Cross-Entropy2026-10-25Sensorimotor Alignment: A Platonic Proxy for Embodied Policy Success2026-10-22LongZero: Enhancing Long-Context Reasoning in LLMs from Zero Data2026-10-22The End of Consensus Research?2026-10-22Asymmetric On-Policy Distillation Learns In-Context Exploration2026-10-21UniWALM: Unified World Action Language Model for Embodied Robot Control2026-10-21Joints, Camera, Action! Co-Generating 3D Motion and Video for Arbitrary Rigs2026-10-21Evolving Agent Interfaces2026-10-20OpenVLHarness: Real World Visual Agentic Tool-Use with Multimodal Memory2026-10-20Same Simulation, Different Evidence: Where Retrieved Tool Output Costs LLM Agents Accuracy2026-10-20Text-to-Image Generative Modeling Without Language Pretraining2026-10-19DiscoveryRSI: Recursively Learning to Discover Valuable Hypotheses2026-10-19Learning without relearning physical symmetry: an SO(3)-equivariant convolutional network (CNN) on the sphere2026-10-19Self-Building Labs2026-10-18T2-z: Test-Time Optimization of Environment Latents for Robotic World Models2026-10-18FDE-Gym: The Last Mile of AI Delivery2026-10-18MLExpert: 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 Systems