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

Reconstructing the wavefunction density from orbitals #248

Open
dotsdl opened this issue Jan 15, 2021 · 1 comment
Open

Reconstructing the wavefunction density from orbitals #248

dotsdl opened this issue Jan 15, 2021 · 1 comment

Comments

@dotsdl
Copy link
Contributor

dotsdl commented Jan 15, 2021

Is your feature request related to a problem? Please describe.

Only eigenvalues and orbitals are currently stored in a Wavefunction object; however, we also need the density in order to rebuild the wavefunction in psi4 to calculate properties. So, the data to get the density is already present, but doing this calculation is left to each user that wants this, requiring domain knowledge that isn't exactly widespread.

Describe the solution you'd like

Wavefunction.density as a property or method that returns the density from the eigenvalues, orbitals.

Describe alternatives you've considered

This functionality may make more sense in QCEngine, but it is not clear yet.

Additional context

@hadim
Copy link

hadim commented Feb 21, 2023

Jumping here as I was looking for an easy method to pull the density from a qcengine computation (using psi4).

I found it's possible to do that in psi4 using something like:

cube = psi4.core.CubeProperties(wfn)
cube.compute_properties()

but I don't know how to reconstruct the wfn object from the qcengine results result.wavefunction.

Also the psi4 snippet creates a file on disk, that would be nice to be able to extract the density in a python object (so letting the user the freedom to save it elsewhere).

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