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

"Need at least 1 alpha and 1 beta electron" error possibly due to occupation array handling #182

Open
mmuelle6 opened this issue Oct 14, 2024 · 2 comments

Comments

@mmuelle6
Copy link

I am implementing a custom interface between adcc and QUEST, and I consistently encounter the following error:

"The HF data passed to adcc is not valid: Need at least 1 alpha and 1 beta electron."

It appears that my code has difficulty filling the occupation array correctly, although the interface follows the same logic as the working Psi4 interface. Additionally, the same issue occurs when performing the SCF calculation using PySCF, following the standard procedure outlined in the "Performing General ADC(n) Calculations" section of the documentation.

Consequently, I am wondering if there might be an issue with the API. If so, I suspect the problem could be related to adcc's internal handling of the occupation array, though I am having difficulty pinpointing the exact cause.

Could you please provide some guidance on whether this might be a known issue with the API, or if it is likely a problem within my code for the QUEST interface? Any feedback would be greatly appreciated!

@maxscheurer
Copy link
Member

maxscheurer commented Oct 14, 2024

I tried to reproduce the error, and it seems to be related to NumPy. I get the same error in a conda environment with numpy>=2.0. Could you try to downgrade the NumPy version below 2.0 and see if the error persists?

@mmuelle6
Copy link
Author

It works with an older version of NumPy. Thank you very much!

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

No branches or pull requests

2 participants