LLM 智能体在 Lean 中自动发现经过形式化验证的量子程序
Discovering formally verified quantum programs with AI
researchers 让 LLM 智能体在 Lean 里写量子程序,还能数学证明验证对不对,量子算术直接提升 290 倍,值得看看这套自动化发现流程怎么搭的。
研究团队在 Lean 定理证明器中构建量子程序库,让大语言模型智能体根据形式化问题规约合成新程序,并通过数学证明验证正确性与成本。智能体以团队协作方式运行,通过 wiki 共享结果并在组织的会议上讨论想法。在并行搜索任务上较此前基线提升最高 1.4 倍,量子算术提升 290 倍。在核聚变、光化学和药物代谢相关的模拟任务上分别取得 11 倍、8 倍和 2.5 倍的改进。
Discovering formally verified quantum programs with AI
The timeline by which quantum computers can solve breakthrough problems in science depends on improved quantum algorithms as much as on better hardware. Such algorithmic advances are typically achieved through many years of expert human collaboration. In mathematics and computer science, large language models have accelerated progress through automated discovery loops. However, quantum algorithms can only be evaluated by classical computers on restricted or small instances. Here we demonstrate automated discovery of quantum programs beyond these regimes including order-of-magnitude improvements on scientific applications. To achieve this, we build a quantum program library in the Lean theorem prover in which large language model agents synthesize novel programs against formal problem specifications and verify their correctness and cost. Agent teams collaborate, sharing results and knowledge through wikis and discussing ideas at organized conferences. Our results improve on prior baselines for parallel search (up to 1.4x), quantum arithmetic (290x), and simulations relevant to fusion, photochemistry and drug-metabolism by 11x, 8x and 2.5x respectively. Combining human and artificial intelligence at scale, under the rigor of mathematical proof, lets researchers design algorithms that today's classical and quantum computers cannot test, shortening the path to practical quantum computation.