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

Enforce incore ERIs when cluster has no excitations in one spin channel. #84

Closed
wants to merge 6 commits into from

Conversation

cjcscott
Copy link
Contributor

This fixes the test failures in #69 , as discussed in #83.
The underlying issues with pyscf and numpy are a bit gnarly, and in the interest of not holding up the original branch I've just removed the calculation of the CISD initial guess which is actually causing the errors and isn't what this actually wants to test. Catching all errors like this is going to be simplified if we have a more standardised approach to calculate our embedded integrals, such as in #66. An alternative tack could be forcing incore_anyway in these systems, which might be an OK halfway point.

…when one spin channel has no valid excitations.
@cjcscott cjcscott changed the title Remove initial guess for FCI test on dissociated, spin-symmetry-broken H2 test Enforce incore ERIs when cluster has no excitations in one spin channel. Apr 13, 2023
@cjcscott
Copy link
Contributor Author

cjcscott commented Apr 13, 2023

I've now (hopefully) implemented a fix to detect this exception, and instead generate the ERIs with incore_anyway=True (debugging without being able to reproduce locally is a pain).

In the process of this I've discovered some possible unintentional behaviour in our FCI solver that thwarted my initial approach. It's not a major problem but I've implemented a quick fix which I'll put in a separate PR to avoid more confusion.

@cjcscott cjcscott mentioned this pull request Apr 13, 2023
@cjcscott
Copy link
Contributor Author

Getting this functionality to not throw an error in this case is proving more involved than expected, so for now I've updated the test to instead run using explicit ERIs in #88. As such I'm going to close this PR, but leave up an issue highlighting the unresolved issue.

@cjcscott cjcscott closed this Apr 14, 2023
@cjcscott cjcscott deleted the fix_uhf_reshape branch April 28, 2023 16:24
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.

1 participant