1 00:00:01,000 --> 00:00:09,300 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:09,300 --> 00:00:36,975 [Hal Turing] Today's paper is "Discovering state-of-the-art quantum circuits with large language models," posted to arXiv in October 2026. The first author is Andi Gu at Harvard, working with colleagues at the Harvard Quantum Initiative, Anthropic and QuEra Computing. The claim is that an LLM-driven evolutionary search found quantum arithmetic circuits that need fewer Toffoli gates and fewer qubits than the best published designs, across eight tasks. 3 00:00:36,975 --> 00:00:55,200 [Dr. Ada Shannon] The question is whether that gain is real, and what exactly it comes from. Two disclosures first. The search used Claude Mythos 5 through OpenEvolve, an open-source evolutionary framework. And Anthropic-affiliated people are on the author list. That doesn't invalidate anything, but you should weigh it. 4 00:00:55,200 --> 00:01:04,725 [Hal Turing] Agreed. Let's start with why this is hard for a human or a compiler. What makes quantum arithmetic different from writing a normal function? 5 00:01:04,725 --> 00:01:23,600 [Dr. Ada Shannon] Three things. First, coherent control flow. If an input is in superposition, the circuit can't pick one branch. Every branch gets compiled into one fixed gate sequence, so every branch costs gates even if it applies to only some inputs. Think of GPU warp divergence, but where every path always runs. 6 00:01:23,600 --> 00:01:41,450 [Dr. Ada Shannon] Second, reversibility. Quantum operations can't discard information. A temporary value has to be cleaned back to zero, which is uncomputation. Until then it occupies a qubit, and if you never clean it, it stays entangled with the output and wrecks the interference you need. 7 00:01:41,450 --> 00:01:46,425 [Hal Turing] So it's like memory you can't free until you run the code backward. 8 00:01:46,425 --> 00:02:07,000 [Dr. Ada Shannon] Close. It's the same trade-off as activation checkpointing in training: store the intermediates, or recompute them. The third thing is the failure budget. A designer can accept a small, stated probability of a wrong answer, under an assumed input distribution, and then drop hardware that only rare inputs need. Rare cases normally set the worst-case circuit, so that is a real lever. 9 00:02:07,000 --> 00:02:10,025 [Hal Turing] Now the costs. What are they counting? 10 00:02:10,025 --> 00:02:37,550 [Dr. Ada Shannon] Toffoli count and peak qubits. A Toffoli is a three-qubit AND-like gate. On fault-tolerant hardware it's expensive because it consumes magic-state resources, so its count stands in for runtime. Peak qubit count is the most logical qubits allocated at one moment, ancillas included. That's the footprint. The paper multiplies them into a TQ-cost. The gain, G_TQ, is baseline TQ divided by discovered TQ, so twelve means twelve times cheaper. The authors say equal weighting is a simplification, and I agree. 11 00:02:37,550 --> 00:02:44,575 [Hal Turing] One more term before we go on: measurement-based uncomputation, which the paper leans on. 12 00:02:44,575 --> 00:02:55,800 [Dr. Ada Shannon] It's a trick from Craig Gidney. To clear a temporary AND, you measure it in the X basis and apply a cheap Clifford phase fix. That costs one Toffoli instead of two. 13 00:02:55,800 --> 00:03:06,350 [Hal Turing] Here's what I don't get. You can't simulate a quantum circuit classically without tracking two-to-the-n amplitudes. How do you check an LLM's candidate? 14 00:03:06,350 --> 00:03:34,725 [Dr. Ada Shannon] That's what makes this problem fit. These circuits use reversible gates, diagonal sign gates and X-basis measurements. Each of those maps a basis state to a basis state, possibly with a sign. So a classical program can track one bit string and one phase. Check outputs, untouched inputs, clean ancillas and phase on sampled basis inputs. By linearity, passing those tests gives a statistical guarantee for superpositions. It's an exact programmatic evaluator, which is the thing LLM search needs. 15 00:03:34,725 --> 00:03:38,900 [Hal Turing] Why not use existing optimizers? There are plenty. 16 00:03:38,900 --> 00:04:00,050 [Dr. Ada Shannon] Tools like the Nam et al. optimizer, and comparison families like Quartz, PyZX, TODD and T-par, work by equivalence-preserving rewrites. They keep correctness by construction, but they stay within variants of a fixed design. They can't replace Euclid's algorithm with a different inversion algorithm. This search can, and the price is that correctness is statistical rather than proved. 17 00:04:00,050 --> 00:04:03,600 [Hal Turing] And the search loop itself isn't new, right? 18 00:04:03,600 --> 00:04:34,300 [Dr. Ada Shannon] No. FunSearch, by Romera-Paredes and colleagues at Google DeepMind, in Nature in 2024, set the loop: the LLM proposes programs, an exact evaluator scores them, and a database keeps the best. AlphaEvolve, by Novikov and colleagues at Google DeepMind in 2025, is the closest whole-program relative. No weights are updated. It's test-time search with an evaluator standing in for a loss function. What's new here is algorithm-family ideation with cross-pollination between families, and the basis-state evaluator for quantum circuits. 19 00:04:34,300 --> 00:04:38,000 [Hal Turing] So hallucinated circuits just get rejected. 20 00:04:38,000 --> 00:04:47,500 [Dr. Ada Shannon] Yes, the evaluator carries the guarantee, much like unit tests gating generated code. The model is only a proposal distribution. 21 00:04:47,500 --> 00:04:49,600 [Hal Turing] What are the eight tasks? 22 00:04:49,600 --> 00:05:12,950 [Dr. Ada Shannon] Two decoders for decoded quantum interferometry, or DQI: Reed-Solomon and Hermitian. DQI turns an optimization problem into a decoding problem, so a decoder has to run reversibly on a superposition, and it dominates the cost. Then modular inversion, three numerical functions covering an HHL rotation angle, a Coulomb potential and a Gaussian, an iron-sulfur chemistry task called Fe2S2, and a nonabelian lattice-gauge task. 23 00:05:12,950 --> 00:05:16,925 [Hal Turing] And the paper pulls out some general design principles? 24 00:05:16,925 --> 00:05:28,200 [Dr. Ada Shannon] Three, and I'll just name them for now: conditional routing, decoding branches from state, and the failure budget. The mechanisms come later, and they're where the gains actually come from. 25 00:05:28,200 --> 00:05:34,226 [Hal Turing] Let's make the pipeline concrete. What does one search actually look like, start to finish? 26 00:05:34,226 --> 00:05:59,301 [Dr. Ada Shannon] It starts from a hand-written task spec and a blank program. First comes ideation: the model proposes up to five algorithm families. For Reed-Solomon decoding that was extended Euclid, Berlekamp-Massey, and a third decoder called PGZ. Each family evolves separately. Every iteration is a fresh LLM session. It gets a parent program, the evaluator's feedback, some archive programs, and short DISCOVERY notes that earlier sessions left behind. There's no growing conversation. 27 00:05:59,301 --> 00:06:02,927 [Hal Turing] And how does the archive decide what survives? 28 00:06:02,927 --> 00:06:22,927 [Dr. Ada Shannon] MAP-Elites. The Toffoli-versus-qubit plane is cut into cells, and each cell keeps its cheapest circuit. So a qubit-lean design with too many Toffolis stays alive for later. Good circuits are also shared across families periodically. In the Gaussian lineage, some descendants got worse on one resource before the search reached a better region. 29 00:06:22,927 --> 00:06:26,652 [Hal Turing] Show me the evaluator rejecting something. 30 00:06:26,652 --> 00:06:48,127 [Dr. Ada Shannon] The small example is inversion in a sixteen-element field. One candidate computed the inverse with five products, but the temporary AND qubit wasn't returned to zero. The evaluator rejected it. The model saw that message and added measurement-based uncomputation. The fixed circuit came out at five Toffolis and ten qubits, a TQ-cost of fifty. The model never has to judge its own correctness. 31 00:06:48,127 --> 00:06:53,702 [Hal Turing] But for big domains the checks are sampled. What does a pass actually promise? 32 00:06:53,702 --> 00:07:16,277 [Dr. Ada Shannon] Each test checks the output, that the inputs are untouched, that every ancilla is zero, and that the phase is exact. If k independent tests pass, then with confidence one minus delta the error is at most about the log of one over delta, divided by k. That assumes the candidate was fixed before the tests were drawn. The failure budgets are checked against a stated input distribution, with a hundred thousand tests: one in a thousand for the DQI decoders, two in ten thousand for inversion. 33 00:07:16,277 --> 00:07:19,952 [Hal Turing] Now the principles. Conditional routing first. 34 00:07:19,952 --> 00:07:40,927 [Dr. Ada Shannon] Take x gets x plus c times y if a control bit is zero, and x plus c times z if it's one. The naive circuit has two controlled multiply-adds. The routed one swaps y and z on the control, runs one uncontrolled multiply-add, and swaps back. Swaps are cheap, so the Toffoli count halves. The hard part is finding the equivalence that makes two different branches the same computation. 35 00:07:40,927 --> 00:07:44,352 [Hal Turing] Second one, decoding the branch from state. 36 00:07:44,352 --> 00:07:59,402 [Dr. Ada Shannon] Say a register adds b_j times two to the j in round j, and you know it stays below two to the j. Then bit j of the result is exactly b_j. You can read the branch back out during uncomputation, so no history stack. 37 00:07:59,402 --> 00:08:23,452 [Dr. Ada Shannon] Berlekamp-Massey is a cheaper way to find the error-locator polynomial than extended Euclid. But its replace step overwrites the old template and discrepancy, so a naive reversible version needs a growing stack of whole polynomials. The discovered circuit rescales the replace branch. The locator only matters up to a nonzero factor, so the roots don't change. Then the old discrepancy can be recovered from the locator's constant coefficient. Only retain rounds still need a stack entry. 38 00:08:23,452 --> 00:08:27,078 [Hal Turing] And the third principle is the failure budget. 39 00:08:27,078 --> 00:08:46,153 [Dr. Ada Shannon] Right. A fixed circuit must contain hardware for its worst-case input, even a rare one. If the extra stack entries are separable, you drop them. Here a second entry is needed with probability about one in ten thousand, so one entry replaces thirty-five. That's nineteen qubits instead of 665. 40 00:08:46,153 --> 00:08:48,703 [Hal Turing] Where does that leave divsteps? 41 00:08:48,703 --> 00:09:30,178 [Dr. Ada Shannon] Divsteps is a Euclid variant using only conditional add or subtract and halving. Reversing it means remembering each step's branch. The swap bit is always cheap to recover from a trailing-zero pattern. Simple tests recover about two thirds of the other decisions. The rest sit in excursions, and there the LLM found an invariant, and a proof, that recovers the bit. A cutoff, j_store, decides which decisions get decoded and which get stored, and that traces a Toffoli-versus-qubit frontier. Then the failure budget reserves sixty stack slots instead of 263, failing about twice in a million inversions. It also schedules 533 steps instead of 590, with failure near one in a hundred thousand. 42 00:09:30,178 --> 00:09:33,378 [Hal Turing] So what do the results look like overall? 43 00:09:33,378 --> 00:09:55,353 [Dr. Ada Shannon] Across eight tasks, TQ-cost improves by roughly four to thirty-nine times. Seven of the eight use fewer Toffolis and fewer qubits. Most of the gain is Toffolis. For the Reed-Solomon decoder, Toffolis drop from about 5.1 million to about 440 thousand, while qubits only go from 1,938 to 1,837. The modest end is Fe2S2 chemistry at 4.1 times. 44 00:09:55,353 --> 00:10:01,103 [Hal Turing] How much of the Reed-Solomon twelve comes from the algorithm and how much from the budget? 45 00:10:01,103 --> 00:10:29,329 [Dr. Ada Shannon] They separate fairly cleanly. Swapping Euclid for Berlekamp-Massey takes the key-equation solve from about 1.9 million Toffolis to about 140 thousand, roughly thirteen times fewer, and that's an exact gain. The stack trick saves about 646 qubits out of a roughly 2,483-qubit circuit. That 2,483 is my arithmetic, not a paper figure. The paper doesn't say whether the baseline decoder was costed at worst case or given the same budget. 46 00:10:29,329 --> 00:10:31,204 [Hal Turing] And inversion? 47 00:10:31,204 --> 00:10:51,154 [Dr. Ada Shannon] The benchmark circuit is 4.0 million Toffolis and 935 qubits, but the table gives no single baseline, so there's no headline multiplier. Prior designs trade Toffolis for qubits differently. The authors specialized Luo's space-efficient construction, which cut its Toffolis by 3.4 times for five more qubits. 48 00:10:51,154 --> 00:10:54,780 [Hal Turing] Is there a task with no multiplier at all? 49 00:10:54,780 --> 00:11:13,630 [Dr. Ada Shannon] The Hermitian DQI decoder. No prior reversible compilation exists, so the baseline is a naive implementation. The paper reports no gain figure for it, and neither should we. One rule applies everywhere else: where a baseline had free parameters, the authors set them to minimize its TQ-cost. 50 00:11:13,630 --> 00:11:21,780 [Hal Turing] Let's test the headline. Four to thirty-nine times on Toffoli times qubits sounds large. What worries you about it? 51 00:11:21,780 --> 00:11:44,255 [Dr. Ada Shannon] The asymmetry in effort. The discovered programs are the survivors of thousands of evaluator-scored candidates. Most baselines are published point designs, and where a baseline had free parameters, the authors set them. The supplied text doesn't say how many knobs each baseline has, how long the tuning took, or how many evaluator calls each task used. Only the Gaussian lineage is plotted, and it ends near iteration ninety-four. 52 00:11:44,255 --> 00:11:46,380 [Hal Turing] So what would settle it? 53 00:11:46,380 --> 00:12:06,430 [Dr. Ada Shannon] Give a strong human expert, or the baseline's own authors, a comparable search budget and rerun the comparison. One point in the authors' favor: they specialized Luo's inversion construction and cut its Toffoli count 3.4 times at a cost of five qubits. So they did strengthen at least one baseline. That's evidence of effort, not of parity. 54 00:12:06,430 --> 00:12:10,730 [Hal Turing] Then the failure budget. Does the baseline get the same one? 55 00:12:10,730 --> 00:12:31,955 [Dr. Ada Shannon] The text doesn't say. The budget buys the one-entry stack instead of thirty-five, sixty entries instead of 263, the shorter stopping window, and the adaptive coefficient ranges. If the Khattar decoder and the earlier inversion designs were costed at worst case, part of each multiplier is budget, not algorithm. It's only apples to apples if the baseline is rebuilt with the same allowance. 56 00:12:31,955 --> 00:12:34,905 [Hal Turing] Is the whole twelve at risk, then? 57 00:12:34,905 --> 00:12:48,655 [Dr. Ada Shannon] No. The Berlekamp-Massey switch is an exact gain with no failure allowance, so the budget is the secondary lever there. For inversion the budget matters more, and there the architecture is the contribution anyway. 58 00:12:48,655 --> 00:12:56,530 [Hal Turing] And those failure rates, one in ten thousand, 2.4 in a million. Small, but small under what inputs? 59 00:12:56,530 --> 00:13:10,055 [Dr. Ada Shannon] Under the stated input distribution. A real workload may not match it, and the same circuit gets called many times, so failures accumulate. I didn't see the paper analyze either point in the supplied text. 60 00:13:10,055 --> 00:13:15,580 [Hal Turing] Checking is by sampling too, right? Large domains can't be enumerated. 61 00:13:15,580 --> 00:13:35,880 [Dr. Ada Shannon] Right. The statistical bound is sound, but the inputs the circuit is allowed to drop are exactly the ones random sampling rarely hits. The paper says the model produced a proof of the branch-decoding invariant. The supplied text doesn't say who checked it, or whether it was machine-verified. For a resource estimate someone will rely on, I'd want independent re-derivation. 62 00:13:35,880 --> 00:13:41,306 [Hal Turing] Table I also has no baseline for inversion. Isn't that the showcase? 63 00:13:41,306 --> 00:14:00,756 [Dr. Ada Shannon] It is, and it's the gap I'd most like closed. Without a single baseline, 4.0 million Toffolis and 935 qubits can't be read as a multiplier, and any comparison depends on which prior construction you pick. The Hermitian decoder has the same issue: no prior reversible compilation, so no gain figure. 64 00:14:00,756 --> 00:14:09,106 [Hal Turing] How much of the discovery is the model's? Berlekamp-Massey is textbook, and divsteps was already a known algorithm. 65 00:14:09,106 --> 00:14:31,681 [Dr. Ada Shannon] Right, the model selected known algorithms. The novel part is making them reversible, especially the branch-decoding invariant for divsteps. How much came unaided, versus task specs and cutoffs the authors wrote, isn't isolated in the supplied text, and I didn't see ablations for ideation or cross-pollination. There's one search per task and no variance reported, so we can't tell whether this architecture is found every time or once. 66 00:14:31,681 --> 00:14:35,831 [Hal Turing] Where does this sit against FunSearch and AlphaEvolve? 67 00:14:35,831 --> 00:15:04,831 [Dr. Ada Shannon] Same recipe: the model proposes programs, an exact evaluator scores them, an archive keeps the best. What's new is the cheap exact basis-state evaluator for quantum circuits, the family ideation step, and the reversible structures it found. The rewrite optimizers, Quartz, PyZX, TODD and T-par, preserve correctness by construction but stay within one design family. This approach can change the family, and the price is statistical correctness. The paper doesn't run them head to head in the supplied text, so I won't claim a result there. 68 00:15:04,831 --> 00:15:07,681 [Hal Turing] And the cost metric itself? 69 00:15:07,681 --> 00:15:35,606 [Dr. Ada Shannon] Toffolis times qubits weights space and time equally, which the authors call a simplification. They suggest qubits raised to a power from one to three, or depth. Sequential designs like Berlekamp-Massey and divsteps could lose ground under a depth-aware model. The ranking may survive, but nothing here tests that. Coset representations are also outside the fixed interface, so this evaluator can't find those savings. And yes, the authors include Anthropic-affiliated people and used an Anthropic model. 70 00:15:35,606 --> 00:15:37,781 [Hal Turing] Who should care right now? 71 00:15:37,781 --> 00:16:00,007 [Dr. Ada Shannon] People doing logical-resource estimates for DQI, chemistry and lattice-gauge simulation, because the inputs to those estimates may drop. Anyone building something similar needs an expressive task interface and a cheap exact evaluator. The paper also proposes co-design across algorithm, code, magic states and architecture, with an evaluator that propagates logical errors. That's aspirational, not tested. 72 00:16:00,007 --> 00:16:23,433 [Hal Turing] So where do we land? An evaluator-guided search found new reversible constructions that beat published point designs on Toffolis times qubits, under stated failure budgets. The inversion architecture looks like a genuine structural idea. But the size of the gain isn't yet shown to be independent of search budget, baseline tuning and failure-budget accounting. 73 00:16:23,433 --> 00:16:29,558 [Dr. Ada Shannon] Read four-to-thirty-nine as an upper estimate until someone runs budget-matched comparisons. 74 00:16:29,558 --> 00:16:33,808 [Hal Turing] That's our time. Thanks for listening, and see you next time.