QMCkl: A Kernel Library for Quantum Monte Carlo Applications
Emiel Slootman, Vijay Gopal Chilkuri, Aurelien Delval, Max Hoffer, Tommaso Gorni, François Coppens, Joris van de Nes, Ramón L. Panadés-Barrueta, Evgeny Posenitskiy, Abdallah Ammar, Edgar Josué Landinez Borda, Kevin Camus, Oto Kohulàk, Emmanuel Giner, Pablo de Oliveira Castro, Cedric Valensi, William Jalby, Claudia Filippi, Anthony Scemama
TL;DR
QMCkl tackles the challenge of running accurate quantum Monte Carlo (QMC) calculations efficiently by providing a modular kernel library that decouples algorithmic development from hardware-specific optimization. It combines pedagogical Fortran reference implementations with highly optimized C kernels, all accessible through a common C API to ensure identical numerical results across codes and architectures. The library covers essential building blocks—atomic and molecular orbitals, cusp corrections, Jastrow factors, inverses, and interatomic forces—and integrates TREXIO for standardized input, enabling reproducible, cross-code workflows and interoperability with deterministic quantum chemistry packages, such as Quantum Package. Across CHAMP, QMC=Chem, and Quantum Package, QMCkl delivers substantial speedups in energy and derivative evaluations and supports broader applications like orbital visualization and density analysis, paving the way for scalable, exascale-ready QMC software with reduced development effort and improved reproducibility.
Abstract
Quantum Monte Carlo (QMC) methods deliver highly accurate electronic structure calculations but are computationally intensive. The quantum Monte Carlo kernel library (QMCkl) provides a modular, portable collection of high-performance kernels implementing the core building blocks of QMC calculations. It offers a C-compatible API, supports the TREXIO standard for input, and covers essential QMC kernels including atomic and molecular orbitals, cusp corrections, Jastrow factor, and the necessary derivatives also to perform variational and structural optimization. QMCkl separates algorithmic development from hardware-specific tuning by combining human-readable reference implementations with performance-optimized kernels that produce identical numerical results. The library enables consistent, efficient, and reproducible simulations across different QMC codes and architectures, and achieves substantial speedups in the evaluation of the energy and its derivatives. Beyond QMC, QMCkl can accelerate deterministic quantum chemistry workflows and visualization tools, promoting cross-code interoperability and simplifying high-performance scientific software development.
