Skip to content

Fix <S^2> for frozen_core References - #238

Merged
frieschneider merged 7 commits into
masterfrom
ssq_frozen_core
Aug 19, 2026
Merged

Fix <S^2> for frozen_core References#238
frieschneider merged 7 commits into
masterfrom
ssq_frozen_core

Conversation

@jonasleitner

Copy link
Copy Markdown
Contributor

<S^2> was wrong for any ReferenceState with frozen_core.
"Normal" and frozen_virtual references were not affected.
This was a consequence of missing blocks in ReferenceState.density_2p and OperatorIntegrals.ssq_2p.

Changes:

  • Generalized the construction of density_2p and ssq_2p. Note: the operator should most likely be also valid for CVS, but could not test it without CVS 2p densities and thus kept the NotImplementedError in place.
  • ReferenceState and LazyMp <S^2> tests were updated to cover all cases to catch this in the future.
  • The test data of the open shell systems was updated with the new ssq data.

Comment thread adcc/ReferenceState.py Outdated
Comment thread adcc/ReferenceState.py Outdated
jonasleitner and others added 2 commits August 18, 2026 09:23
Co-authored-by: Friederike Schneider <110526409+frieschneider@users.noreply.github.com>
@frieschneider
frieschneider merged commit dac412b into master Aug 19, 2026
10 checks passed
@frieschneider
frieschneider deleted the ssq_frozen_core branch August 19, 2026 14:29
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