I am trying to write a basic Hartree-Fock code to compute orbital energies and total energy of a molecule at almost all basis sets. I wrote the integral code in Cython/Python and is very slow. I would like to use libint to compute the integrals. However, I am unable to find references to use the libint library in python. Any pointers to use libint library in python would be much appreciated.
2 Answers
PyQuante is one of the first quantum chemistry codes written in Python, and it has been around for a long time. There is a binding to Ed Valeev's libint version 1 in PyQuante, see clibint.c and clibint.h; I am sure these will be as much help to you as they were for me a decade ago when I wrote my own interface to libint.
Some background:
The following answer by Anycorn was "accepted" by the OP:
"I wrote python bindings for libint. Did you look in python/tests? there are two tests, including sample hf program"
but it was deleted due to being "very low quality".
Geoff's comment was even better, as it gave the exact URL to a complete script, rather than just suggesting for the OP to look in a folder where they may or may not find what they need.
Conclusion:
Using libint with Python has been demonstrated for the $\ce{H2O}$ molecule in this complete script.
-
$\begingroup$ @GeoffHutchison you might have an opinion on this Meta post! $\endgroup$ Commented Dec 30, 2022 at 1:45
libint
tests - it looks like a complete script for water. $\endgroup$