Ground and excited state gradients with end-to-end differentiable semiempirical quantum chemistry
Vishikh Athavale, Maksim Kulichenko, Nikita Fedik, Sebastian Fernandez-Alberti, Anders M. N. Niklasson, Sergei Tretiak
Los Alamos National Laboratory · Nvidia (United States)
Key points
From the paper's conclusion- Overall, automatic differentiation emerges as a practical alternative to analytical gradients in semiempirical quantum chemistry, offering high accuracy while allowing seamless integration in AI-driven workflows and popular packages, such as PyTorch and JAX.
Abstract
Accurate and efficient gradients of molecular energy with respect to nuclear degrees of freedom are essential for geometry optimization and molecular dynamics, including simulations that go beyond the Born-Oppenheimer regime. A common approach involves deriving analytical formulas for new electronic structure methods, which is often conceptually difficult and requires tedious coding. Here, we implement analytical, semi-numerical, and automatic differentiation (AD)-based gradient pathways for semiempirical Hamiltonian models in the PYSEQM software package, leveraging both graphics processing unit (GPU) and central processing unit (CPU) architectures. We further extend these capabilities to excited states calculated using the configuration interaction singles and time-dependent Hartree-Fock ansätze. We benchmark wall time, peak memory usage, and accuracy across three molecular families of varying chemical complexity, including systems of up to a thousand atoms. For ground-state simulations, analytical and AD gradients achieve near-identical GPU runtimes, while semi-numerical gradients are slower on GPU but remain competitive on CPU. For excited states, both analytical and custom AD approaches using implicit differentiation show similar performance and low memory requirements, whereas gradients with full AD are memory-limited. AD gradients match analytical ones in accuracy across all tested systems, aided by a quaternion-based diatomic frame rotation for two-center quantities that ensures smooth energy surfaces. Overall, automatic differentiation emerges as a practical alternative to analytical gradients in semiempirical quantum chemistry, offering high accuracy while allowing seamless integration in AI-driven workflows and popular packages, such as PyTorch and JAX. Our results provide actionable guidance for selecting optimal gradient strategies in large-scale ground- and excited-state molecular dynamics simulations.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- GPU-Accelerated Large-Scale Nonadiabatic Excited State Molecular Dynamics.Journal of chemical theory and computation · 2026
- Affordable Analytic Gradients for G0W0-BSE Excited States for Multiple GW Variants via Back-PropagationarXiv · 2026
- Nonadiabatic Molecular Dynamics with Quantum Algorithms.The journal of physical chemistry. A · 2026
- Compensated Grid-Based Hybrid Exchange - A Simple, Accurate, Efficient, and Differentiable Recipe for Large-Scale Molecular SystemsarXiv · 2026
- Fast gradient-free optimization of excitations in variational quantum eigensolversCommunications Physics · 2025
- libterachem.py: Modular development of electronic structure methods with graphical processing unitsarXiv · 2026