libterachem.py: Modular development of electronic structure methods with graphical processing units
Juncheng Harry Zhang, Ruiyan Wang, Andreas Erbs Hillers-Bendtsen, Todd J. Martínez
Key points
From the paper's conclusion- Presents libterachem.py, a Python interface and method framework that facilitates development and prototyping of electronic structure methods while leveraging TeraChem's optimized graphical processing unit (GPU) operations.
- Direct access to GPU operations allows users to assemble and modify methods within Python while reusing the underlying GPU implementations.
- Python-driven self-consistent-field calculations using libterachem.py incur no significant computational overhead compared to native TeraChem and preserve its multi-GPU scaling.
Abstract
We present libterachem.py, a Python interface and method framework that facilitates development and prototyping of electronic structure methods while leveraging TeraChem's optimized graphical processing unit (GPU) operations. Direct access to these building blocks and their intermediate quantities allows users to assemble and modify methods within Python while reusing the underlying GPU implementations. A layered architecture, programmable at both the operation level and the method level, supports numerical experimentation, composition of complete electronic structure methods with interchangeable components, and integration with external scientific libraries. We illustrate operation-level use with grid pruning for least-squares tensor hypercontraction and with exchange--correlation functionals supplied through LibXC and by the machine-learned Skala functional. We illustrate method-level use with dispersion corrections, periodic calculations, and geometry optimization with an external optimizer. Python-driven self-consistent-field calculations using libterachem.py incur no significant computational overhead compared to native TeraChem and preserve its multi-GPU scaling. A photoactive yellow protein QM/MM molecular dynamics application further demonstrates throughput comparable to native TeraChem in a workflow composed with external simulation libraries. These results establish libterachem.py as a platform for method development and interoperable molecular simulation that retains the performance of TeraChem's GPU operations.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Presents libterachem.py, a Python interface and method framework that facilitates development and prototyping of electronic structure methods while leveraging TeraChem's optimized graphical processing unit (GPU) operations.
- Direct access to GPU operations allows users to assemble and modify methods within Python while reusing the underlying GPU implementations.
- Python-driven self-consistent-field calculations using libterachem.py incur no significant computational overhead compared to native TeraChem and preserve its multi-GPU scaling.
Readers' thoughts
No reader thoughts yet.
Related papers
- PyFock: A Just-In-Time Compiled Gaussian Basis DFT Python Code for CPU and GPU Architectures.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
- Implementation of the Multigrid Gaussian-Plane-Wave Algorithm with GPU Acceleration in PySCF.Journal of chemical theory and computation · 2026
- Complete Active Space Self-Consistent Field with GPU-Accelerated Density FittingJournal of Chemical Theory and Computation · 2026
- Efficient Tensorized Evaluation of Permutation Invariant Polynomials for Representing Potential Energy Surfaces.Journal of chemical theory and computation · 2026
- Ground and excited state gradients with end-to-end differentiable semiempirical quantum chemistryThe Journal of Chemical Physics · 2026