Source code for Automatic Differentiation for the Direct Minimization Approach to the Hartree-Fock Method (arXiv).
- JAX
- PySCF
- SciPy
- NumPy
- matplotlib
You can install dependencies with requirements.txt
.
pip install -r requirements.txt
We tested our program with Python 3.8.10 on Ubuntu 20.04.5 LTS.
python diatomic.py H2 STO-3G
python diatomic.py H2 3-21G
python diatomic.py HF STO-3G
python diatomic.py HF STO-3G
python polyatomic_angle.py H2O
python polyatomic_angle.py NH3
python ad_vs_fd.py NH3 cc-pVDZ --plot
python plot_step_size.py
data/step_size_h2o.csv
was created by running ad_vs_fd.py
in different step sizes (change line 173).
You can calculate each row using polyatomic.py
. For example,
python polyatomic.py H2O STO-3G
You can calculate each row using ad_vs_fd.py
. For example,
python ad_vs_fd.py H2O STO-3G