-
Notifications
You must be signed in to change notification settings - Fork 12
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
Users can't map wavefunc coeffs to the corresponding configuration #85
Comments
Actually, the wavefunction coefficients are returned as a PySCF SCIvector object, which does have the configurations stored in the |
As discussed offline, I'd like users to be able to inspect the coefficients and CI strings without needing to access a private field. Our source will still need to access that field to unpack the strings, which isn't great. We can assert (or error out) that I will definitely cast the |
I think I favor the name |
Environment
All environments
What is happening and why is it wrong?
The wavefunction coefficients returned from
solve_fermion
are stored in anMxN
matrix, whereM
is the number of unique alpha determinants andN
is the number of unique beta determinants. The rows and columns are associated with the sorted (ascending) determinants.Since users pass in a bitstring matrix, they have no way of knowing to what configuration each amplitude is associated (Keep in mind the output configurations don't even have to be present in the set of input configurations.)
Any suggestions?
The user should be returned a mapping from configuration to amplitude. The most straightforward thing to do would be to return a
dict[int, float]
mapping the full spin configuration to the associated amplitude.We could also return a tuple as shown here.
The text was updated successfully, but these errors were encountered: