Manuscript Offprint

arXiv:2611.22897

Born for the Task: Rethinking Quantum Chemistry with Foresighted Agentic Computing

Haozhi Han, Junjie Yang, Ruge Zhang, Zihe Huang, Pengyi Xu, Bo Zhang, Yunquan Zhang, Ting Cao, Yunxin Liu, Yifeng Chen, Kun Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Quantum chemistry relies on general-purpose software, whose generality leaves many large-scale calculations beyond practical resource budgets. Coding agents make task-specific programs cheap to write, but not efficient ones easy to find: whether a computational strategy is accurate and fast enough becomes clear only after it actually runs at the target scale. We introduce Born, a foresighted agentic computing framework that synthesizes high-performance quantum chemistry programs on demand. Born anticipates the behavior of each strategy before execution, extrapolating its error from representative small systems and predicting its runtime from the target-scale workload and measured hardware throughputs. Building on these predictions, Born unfolds the preset schemes of existing packages into independently configurable algorithmic components, selects the fastest strategy within the error tolerance from the predicted accuracy–runtime Pareto frontier, and guides coding agents to compile it with component-level performance predictions. For a Hartree–Fock calculation with 50,024 basis functions, Born finishes in 1.41 h on a single CPU node, 77×\times faster than the estimated runtime of a general-purpose baseline and still 9.8×\times faster with development time included. On a single GPU, Born completes the ubiquitin calculation in 2.1,h, the same order of runtime as the GPU-accelerated package Mako on 64 GPUs, and shortens the B-DNA duplex calculation from an estimated two months to 8.1,h (173×\times).

\pdfxform M for the Task: Rethinking Quantum Chemistry with Foresighted Agentic Computing Haozhi Han1,5,, Junjie Yang2,, Ruge Zhang3,5, Zihe Huang3,5, Pengyi Xu4, Bo Zhang4, Yunquan Zhang3, Ting Cao5, Yunxin Liu5, Yifeng Chen1, and Kun Li5,† 1School of Computer Science, Peking University, 2Moore Threads, 3University of Chinese Academy of Sciences, 4Michigan Technological University, 5Institute for AI Industry Research (AIR), Tsinghua University *Equal contribution. Date: November 17, 2026 Correspondence: †Kun Li at likun@air.tsinghua.edu.cn Figure

1 Introduction

(a) General-purpose packageFigureFigureFigureFigureFigureCoulomb JExchange KEigensolverJgfixedJgfixedJgfixedPreset schemeFigureCPU≈\approx​109 hFigureGPU×\boldsymbol{\times} 64 (b) Born (Ours)FigureFigureFigureFigureFigureForesighted Agentic ComputingCoulomb JExchange KEigensolverJgRI-JJgFMM-JJgSGXJgLinKJgstandardJgbandedFigureCPU1.41 hFigureGPU×\boldsymbol{\times} 1

Figure 1: General-purpose package vs. Born: one preset scheme for every task vs. a program born for each task.

Quantum chemistry resolves the structure and properties of matter at the electronic level by solving the electronic Schrödinger equation [29]. Its numerical solution relies on mature software packages developed and refined by domain experts over decades [46, 16, 62, 73]. Given the high cost of software development and numerical validation, these packages combine broadly applicable methods with carefully optimized general-purpose implementations, delivering reliable results across diverse molecules, scientific objectives, and computing environments.

However, this generality can limit computational efficiency for demanding quantum chemistry tasks. Each calculation fixes its molecule, basis set, accuracy requirement, and hardware, yet general-purpose implementations offer only a few preset algorithms and settings that cannot exploit them. This limitation is particularly pronounced for large molecular systems of scientific interest, where the time or memory required by general-purpose implementations can exceed practical resource budgets [21, 33]. Consequently, the quantum chemistry calculations needed to investigate these systems can remain beyond practical reach.

Recent advances in coding agents have opened new opportunities for quantum chemistry through automated code generation and optimization [10, 74, 48]. By lowering development costs, these agents make it increasingly feasible to synthesize programs tailored to individual quantum chemistry tasks [23, 59, 12], rather than relying solely on preset general-purpose implementations. Such programs can exploit what each task fixes, bringing previously infeasible calculations within practical reach.

Yet while coding agents make programs easy to write, they do not make efficient programs easy to find, for three reasons. Unproductive search: beyond preset schemes, algorithms and settings combine into a vast, unmapped space, so agents waste the budget on unpromising strategies. Expensive feedback: a strategy’s accuracy and runtime are revealed only by running it, yet target-scale runs are costly and small-scale runs mislead, so agents cannot judge strategies cheaply. Blind optimization: small-scale timings also hide target-scale bottlenecks, so agents cannot tell where optimization pays off. This raises a central question: How can coding agents build the program best suited to a task before running it at the target scale?

We answer this question with Born, a foresighted agentic computing framework that guides the on-demand synthesis of high-performance programs through predictive reasoning, extending the computational frontier of quantum chemistry beyond existing general-purpose software. Our key insight is that the feasibility and performance potential of a computational strategy can be anticipated before it is executed. Specifically, its numerical error can be estimated by analyzing representative small systems and extrapolating to the target [32, 54], while its runtime can be predicted by combining the target-scale computational workload with throughputs measured by hardware microbenchmarks [72, 67]. This allows agents to guide strategy selection and program synthesis through foresighted decisions, without relying on costly target-scale trial and error.

Born puts this insight into practice through three interlocking stages. Component-Wise Unfolding decomposes preset schemes in general-purpose software into independently configurable algorithmic components and recombines them across components and computational stages, exposing a structured design space with potentially efficient strategies unavailable in existing packages. Target-Scale Foresight reuses component-level analyses to accurately predict numerical errors and runtimes at the target scale at low cost, constructing a predicted accuracy–runtime Pareto frontier and selecting the fastest strategy expected to satisfy the accuracy constraint. Agent-Driven Compilation exploits the task-specific computational structure for ahead-of-time specialization and uses component-level performance predictions to diagnose bottlenecks, guiding agents toward targeted, hardware-aware optimization and iterative validation.

We evaluate Born on large-scale quantum chemistry tasks, demonstrating its ability to extend the computational frontier beyond general-purpose software. For a Hartree–Fock calculation with 50,024 basis functions, Born completes the task in just 1.41 h on a single CPU node, while some general-purpose packages fail to complete it. Even a general-purpose baseline capable of running the task is estimated to require 109 h, corresponding to a 77×\times computational speedup and a 9.8×\times end-to-end speedup including development time. For ubiquitin, Born reduces the GPU requirement from 64 to just one while maintaining comparable runtime.

More broadly, we envision a paradigm shift in scientific computing: from adapting scientific problems to existing programs to building programs born for each task—expanding not just computational efficiency, but the boundaries of what we can compute.

TaskFigurePhysical modelHartree–FockAccuracyerror ≤ε\leq\varepsilonHardwareCPU / GPU, Mmax⁡M_{\max} (a) Component-Wise UnfoldingDecompose: algorithms per componentJKDirectRI-JFMM-JLinKRI-KSGX……each ×\times settings: grid, aux. basis, …Recompose: pairings ×\times stagesθ\boldsymbol{\theta}early ⋅\cdot FP32RI-JSGXfinal ⋅\cdot FP64FMM-JLinK(b) Target-Scale ForesightErrorlocal-error model\varepsilon$$\bigstarproxiestargeterrorRuntimeW/R modelT^=∑k\widehat{T}=\sum_{k}FigureW_{k}$$R_{k}$$\widehat{\mathsf{\Delta}}$$\widehat{T}Pareto selection\varepsilon$$\bigstarruntimeerror★\bigstar fastest θ∗\theta^{\ast} withΔ^≤ε\widehat{\mathsf{\Delta}}\leq\varepsilon,M^≤Mmax⁡\widehat{M}\leq M_{\max}NO TARGET RUNS(c) Agent-Driven CompilationStatic computation graphJ, KFdiagDSCF loop fixed shapes& workloads Compile Validate Measurerevert if invalid or slowerkeep; next bottleneck Task-specific program P_{\theta^{\ast}}$$\mathcal{S}$$\theta^{\ast}

Figure 2: Overview of Born. Given a task, Born (a) unfolds package schemes into a strategy space S\mathcal{S}, where one strategy θ∈S\theta\in\mathcal{S} is one pairing per SCF stage; (b) predicts the target-scale error and runtime of every strategy from proxies and microbenchmarks and selects the fastest θ∗\theta^{\ast} within ε\varepsilon; and (c) has coding agents compile θ∗\theta^{\ast} into a task-specific program.

References (59)