Skip to content

Author

Manas Sharma

1 paper indexed here

We haven’t gathered this author’s papers yet. Follow them and we’ll fetch their work.

Not the right person? Other researchers publish under this name.

Open access Aug 2026

PyFock: A Just-In-Time Compiled Gaussian Basis DFT Python Code for CPU and GPU Architectures.

Despite the robust ecosystem, ease of use, and flexibility offered by Python, most of the current popular quantum chemistry codes are still developed in Fortran, C, or C++, due to their speed advantage over Python. Furthermore, the tedious compilation process acts as a barrier for many aspiring beginners. PySCF and Psi4 have alleviated many of these problems; however, they still use C/C++ for the performance-critical parts of the code. This hinders community development or improvements/tweaks to the low-level algorithms used for molecular integral evaluations, especially when it comes to implementing GPU acceleration. In this work, we report PyFock, a Gaussian basis Kohn-Sham density functional theory code with the quantum chemistry specific algorithms such as molecular integrals and exchange-correlation term evaluation implemented entirely in Python that achieves high performance through Numba just-in-time compilation. PyFock employs the density fitting approximation with Cauchy-Schwarz screening to achieve approximately quadratic scaling with respect to system size (similar to PySCF), driven by the electron repulsion integral evaluations (Coulomb term), while the exchange-correlation contribution shows subquadratic scaling. We demonstrate that the code achieves numerical accuracy consistent with PySCF and computational performance comparable to state-of-the-art C/C++ backends on multicore CPUs, with benchmarks carried out on systems of up to ∼450 atoms using the def2-SVP, def2-TZVP, and def2-QZVP basis sets. Furthermore, PyFock leverages GPU acceleration via Numba+CuPy, delivering speedups of up to 24× over four-core PySCF (CPU) and competitive performance relative to GPU4PySCF. The package is open-source with a flexible MIT license (available on GitHub) and easily installable via PyPI and supports all major operating systems, offering an accessible yet efficient platform for quantum chemistry education and prototyping.

Manas Sharma, Marek Sierka · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.