Designing quantum chemistry algorithms with just-in-time compilation

X Xiaojie Wu Q Qiming Sun (Innovation Center for Chemical Science, College of Chemistry, Chemical Engineering and Materials Science, Jiangsu Key Laboratory of Advanced Negative Carbon Technologies) Y Yuanheng Wang (Department of Chemistry)

Abstract

We introduce just-in-time (JIT) compilation to the integral kernels for Gaussian-type orbitals to enhance the efficiency of electron repulsion integral computations. For Coulomb and exchange (JK) matrices, JIT-based algorithms yield a 2× speedup for the small 6-31G* basis set over GPU4PySCF v1.4 on an NVIDIA A100-80G GPU. By incorporating a novel algorithm designed for orbitals with high angular momentum, the efficiency of JK evaluations with the large def2-TZVPP basis set is improved by up to 4×. The core CUDA implementation is compact, comprising only ∼1000 lines of code, including support for single-precision arithmetic. Furthermore, the single-precision implementation achieves a 3× speedup over the previous state-of-the-art.

Article Details

Volume / Issue Vol. 164, Issue 19
Published May 21, 2026
ISSN 0021-9606
Publisher American Institute of Physics

Journal Info

The Journal of Chemical Physics

American Institute of Physics

ISSN: 0021-9606 Physical Sciences

Authors (3)

X

Xiaojie Wu

Q

Qiming Sun

Innovation Center for Chemical Science, College of Chemistry, Chemical Engineering and Materials Science, Jiangsu Key Laboratory of Advanced Negative Carbon Technologies

Y

Yuanheng Wang

Department of Chemistry