Skip to content

Reducing T gates in product formulas with agent loops

Luis Mantilla Calderón, Jérôme F. Gonthier, Alex Zook, Kohei Nakaji, Taylor L. Patti, Alán Aspuru-Guzik

quant-ph

Abstract

Quantum chemistry calculations on a fault-tolerant quantum computer usually require many T\text{T} gates. This cost depends on the simulation method and how precisely its rotations are implemented. In this paper, we used Nemotron 3.5 Lightning, a large language model (LLM), in a coding-agent loop to optimize the structure and rotation-synthesis precision of product formulas (PFs) for quantum phase estimation (QPE). Each of five independent searches optimized a shared protocol across 115 HamLib molecular Hamiltonians spanning 4--16 qubits over 100 code mutations. The searches started from a calibrated, nested second-order PF with uniform synthesis precision. We minimized T95T_{95}, the estimated total T\text{T}-gate cost including QPE queries and repeated attempts for 95%95\% success probability, while requiring chemical accuracy for every training Hamiltonian. We name the best protocol found error-limited optimized Trotter evolution (ELOTE). It achieves chemical accuracy for its training data and achieved median and geometric-mean T95T_{95} reductions of 85.35%85.35\% and 84.82%84.82\%, respectively. ELOTE combines contributions to the same Pauli string, uses a first-order PF, and varies synthesis precision with coefficient magnitude, Pauli support, and diagonal character. We also tested ELOTE on 76 larger Hamiltonians with 18--22 qubits, which met chemical accuracy in every case. For ten reaction energies, we further optimized a shared δδ-ELOTE protocol. It reduced geometric-mean T95T_{95} by 58.90%58.90\% relative to ELOTE while preserving chemical accuracy for every signed reaction difference. These classically verified results show cost savings from shared protocols across molecules and reactions, and motivate similar searches in which energy measurements from quantum computers guide explorations in a coding-agent loop.

Create a lesson

Metadata

Comments
18 pages, 6 figures