FSIM: A Pedagogical and Extensible HPC Framework for the Hartree-Fock Method
Mario Hernández Vera
TL;DR
FSIM presents a minimal, pedagogical C++ implementation of restricted Hartree–Fock that leverages the McMurchie–Davidson scheme for analytic Gaussian integrals. The framework combines a clear object-oriented design with MPI and OpenMP parallelization, enabling educational exploration of one- and four-index integrals and a DIIS-accelerated SCF loop. Key contributions include a transparent integral engine, modular software architecture, rigorous testing against established codes, and a curated set of mini-projects to study algorithmic optimization and scalability. By providing a compact, reproducible platform, FSIM bridges theory and practice in computational chemistry and high-performance computing, offering a practical tool for teaching and research on modern HPC architectures.
Abstract
Efficient computation of molecular integrals and Hartree-Fock energy remains a central topic in quantum-chemistry algorithm development. Although many sophisticated open-source packages are available, understanding their implementations from first principles can be difficult for students and developers alike. In this work, we present a concise overview and an extensible pedagogical framework that implements the Hartree-Fock method and the McMurchie-Davidson scheme for molecular integral evaluation. The implementation follows an object-oriented design in C++, emphasizing clarity and modularity. We also discuss strategies for parallel execution, including distributed computing with MPI and shared-memory parallelization with OpenMP. Beyond presenting a working reference, this work establishes a learning platform for further exploration, including suggested mini-projects for algorithmic optimization and HPC scalability. The accompanying open-source library, FSIM, described in this work, serves as a compact resource for teaching and research in computational chemistry and high-performance computing.
