-
Notifications
You must be signed in to change notification settings - Fork 116
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
QCQMC part 3: Add Hamiltonian #345
Conversation
@mpharrigan / @wjhuggins PTAL, the diff should be a lot more digestible now! The only change over the private repo is to use attrs instead of dataclasses. |
Also this doesn't depend on quaff yet, so I didn't touch the CI. |
@dstrain115 / @mpharrigan PTAL |
recirq/qcqmc/hamiltonian.py
Outdated
import openfermion as of | ||
from fqe.hamiltonians.restricted_hamiltonian import RestrictedHamiltonian | ||
from fqe.openfermion_utils import integrals_to_fqe_restricted | ||
from openfermionpyscf._run_pyscf import compute_integrals # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we importing from a private module? This is generally not advisable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the function didn't get lifted to a public module in openfermionpyscf. I can reproduce a simplified version of the function here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied the openfermion function into hamiltonian.py, WDYT?
@dstrain115 PTAL |
@mpharrigan / @dstrain115 could you merge I don't have permission |
Adds hamiltonian module for specifying a second quantized hamiltonian used for optimizing a trial wavefunction.
Depends on #342 and #343.
cc @mpharrigan