Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dissociated H2 test. #88

Merged
merged 1 commit into from
Apr 15, 2023
Merged

Fix dissociated H2 test. #88

merged 1 commit into from
Apr 15, 2023

Conversation

cjcscott
Copy link
Contributor

This fixes the test failures on #69, as discussed in #83, by changing the test to use dense ERIs rather than density fitting. Breaking spin symmetry here required a more explicitly symmetry-broken initial guess than with density fitting, so I've added the suggested approach to break symmetries from pyscf/examples/scf/32-break_spin_symm.py into TestMolecule.uhf_stable.

This doesn't fix using density fitting in this system- that's proved more difficult (see #84, which I'm going to close now), but given it's an edge case this seems acceptable for now. I would say we could just add a warning/error if a cluster has no excitations in a spin channel and is using density fitting, but this is going to come up again if we're running large Hubbard models.

For now this passes the tests in the only place I can currently produce the original error (thanks Abhi!) so hopefully removes a blocker to #69 merging.

…ured TestMolecule.uhf_stable uses symmetry-broken reference.
@cjcscott
Copy link
Contributor Author

(I should also note I've also added a TODO in the test referencing the issues with density fitting)

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (to_cisdtq@544cc66). Click here to learn what that means.
Patch has no changes to coverable lines.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff              @@
##             to_cisdtq      #88   +/-   ##
============================================
  Coverage             ?   71.55%           
============================================
  Files                ?      133           
  Lines                ?    18438           
  Branches             ?     2570           
============================================
  Hits                 ?    13194           
  Misses               ?     4506           
  Partials             ?      738           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ghb24 ghb24 merged commit 0c962df into to_cisdtq Apr 15, 2023
@obackhouse obackhouse deleted the fix_h2_dissoc_test branch April 16, 2023 15:17
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.

3 participants