You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[UNEXPECTED BEHAVIOR] from_chk may give wrong electron count for fractional occupations #3650
Describe the unexpected behavior
Since v2.13.0, restarting a PBC RHF/RKS calculation from a checkpoint with fractional
occupations (e.g. after smearing) builds a density matrix with too many electrons.
pbc.scf.hf.init_guess_by_chkfile calls pbc.scf.uhf.init_guess_by_chkfile and sums the
two spin DMs. The UHF reader splits each restricted occupation and relies on the
negative beta occupation to cancel. Then the negative beta parts are dropped and
each partly occupied orbital counts as fully occupied in alpha.
electrons, make_rdm1(): 6.0000000000000036
electrons, from_chk() : 6.999957678285341
energy at make_rdm1() DM: -15.139134536641663
energy at from_chk() DM : -14.461800849792464
Expected behavior from_chk() reproduces the checkpoint density (6 electrons).
Activity