If you use this code, please cite the paper using the BibTeX reference below.
@article{wu2026ambertorchpb,
title={AmberTorchPB: A Unified Framework for Poisson--Boltzmann-Based Reaction Field Energy Calculation via Tensor Computation},
author={Wu, Yongxian and Wang, Qiankang and Jiang, Robin and Luo, Ray},
journal={Journal of Chemical Theory and Computation},
volume={22},
number={7},
pages={3554--3570},
year={2026},
publisher={ACS Publications}
}The AmberTorchPB C++ backend constitutes a unified, extensible, and accelerator-aware framework built upon LibTorch, designed to modernize biomolecular electrostatics.
- CMake >= 3.20.0
- Libtorch == 2.5.1. The CPU version may be retrieved via
wget https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.5.1%2Bcpu.zip. CUDA-enabled versions are also available, corresponding to specific CUDA release numbers (e.g., for CUDA 11.8: https://download.pytorch.org/libtorch/cu118). - GCC >= 9
Two examples are provided to demonstrate the invocation of AmberTorchPB within a caller project: (1) the direct utilization of AmberTorchPB as an external library (test/test_library.cpp), and (2) the invocation of AmberTorchPB via an interface function (test/test_wrapper.cpp).