Skip to content

Debug PySCF 2.13.0 (#191)#192

Merged
sunqm merged 12 commits into
pyscf:masterfrom
MatthewRHermes:debug
May 14, 2026
Merged

Debug PySCF 2.13.0 (#191)#192
sunqm merged 12 commits into
pyscf:masterfrom
MatthewRHermes:debug

Conversation

@MatthewRHermes
Copy link
Copy Markdown
Collaborator

@MatthewRHermes MatthewRHermes commented Apr 30, 2026

  • Fix memory passing in csf_fci (again)
  • Update data format of mo_coeff in trexio
  • Account for potential rank reduction in occri
  • Finer mesh in some unit tests to restore agreement between different forms of density fitting
  • Update test references in pbc/lno for density matrix elements that differ between versions by scientifically irrelevant phases

There are still two unit tests that I cannot make pass without changing either the tolerance of the check or the reference value itself, in pbc/lno and pbc/pwscf. I wonder if anyone else has a commentary on those.

Instead of raising an exception when "max_memory" gets incorrectly
turned into "remaining memory", do a warning.
Since this is only ever passed with "remaining memory" rather than
actual max memory, just add back the consumed memory that was just
subtracted from it to get the "real" number.
Since there is an automatic pruning of linear dependencies now in
core-module SCF.
The change from PySCF v2.12.0 is due to an irrelevant phase
difference in the orbital basis; when the MO coefficients are
replaced with the v2.12.0 values, the test passed. Therefore just
update the references for the new phase.
@MatthewRHermes
Copy link
Copy Markdown
Collaborator Author

I convinced myself that the failing test in pbc/lno was due to irrelevant phase convention differences between PySCF versions. However, the last test, in pbc/pwscf, is spooky to me even though it's only slightly off from 1e-6 just because it doesn't change even if I upload v2.12.0 mo_coeff data into the unittest.

@MatthewRHermes MatthewRHermes changed the title Partial debug of PySCF 2.13.0 (#191) Debug PySCF 2.13.0 (#191) May 7, 2026
@MatthewRHermes
Copy link
Copy Markdown
Collaborator Author

#193 fixed the last issue I couldn’t account for, thanks @kylebystrom!!

@sunqm sunqm merged commit 0888306 into pyscf:master May 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants