Skip to content

how to pass HF result to SecondQuantizedMolecule? #372

Answered by alexfleury-sb
jmaguiar asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @jmaguiar, here is a script that should work to retrieve the psi4 wavefunction and parse it into a custom integral solver. You should replace the first call to SecondQuantizedMolecule with your code to get the wavefunction. This was just to get a wavefunction object on my end.

In summary, we are defining a new IntegralSolver class that takes an existing psi4 wavefunction, and get the required molecular orbital coefficients and integrals from the wavefunction object.

This is not an ideal solution, and the code could be cleaned (there are redundant objects). A better option that we thought of in the past is to come up with an interface to FCIDUMP files, as psi4 can output integrals to…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@alexfleury-sb
Comment options

@jmaguiar
Comment options

@alexfleury-sb
Comment options

@ValentinS4t1qbit
Comment options

@jmaguiar
Comment options

Answer selected by jmaguiar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants