Dear Dirac developers,
I'm facing some problems on understanding the way in which the molecular orbitals are stored in the corresponding h5 file.
After running the H2 molecule with a really small basis set (contracted STO-6G), I extract from the h5 file:
- nmo from wavefunctions/scf/mobasis/n_mo
- nao from aobasis/1/n_ao
- The overlap (AO basis) from operators/ao_matrices/OVERLAP TFFT. It is a one-dimensional array and I converted it to a symmetric matrix of shape (nao,nao).
- The MO coefficients from wavefunctions/scf/mobasis/orbitals which is a one-dimensional array with 2 * nao * 2 * nmo elements, and I reshape it to (2 * nmo , 2 * nao).
To check my understanding I tried to simply calculate the norm of the occupied wave function. I get what I expected on H2, but then when I go to HF molecule I get a wrong result. I don't find where is my mistake.
I attach here the Jupyter notebook I'm using and the corresponding h5 files.
Any help would be really appreciated. I'm strugling on this
Best regards,
Juan J. Aucar