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

[PBC Resources Estimates 2/4] Add Integral Factorization Helpers #822

Merged
merged 28 commits into from
Aug 15, 2023

Conversation

fdmalone
Copy link
Collaborator

Part 2 of #821. Here we add utility classes to store the factorized integrals for later consumption by pyscf coupled cluster classes and / or resource estimation.

@fdmalone fdmalone changed the title [PBC Resources Estimates 1/4] Add Integral Factorization Helpers [PBC Resources Estimates 2/4] Add Integral Factorization Helpers Jun 20, 2023
@fdmalone fdmalone force-pushed the pbc_resource_factorizations branch from 37c468e to a88d414 Compare July 23, 2023 05:22
@fdmalone
Copy link
Collaborator Author

@mpharrigan ptal when you get a chance

Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookin good

src/openfermion/resource_estimates/pbc/df/__init__.py Outdated Show resolved Hide resolved
src/openfermion/resource_estimates/pbc/df/df_integrals.py Outdated Show resolved Hide resolved
src/openfermion/resource_estimates/pbc/df/df_integrals.py Outdated Show resolved Hide resolved
@@ -63,23 +63,23 @@ def load_thc_factors(chkfile_name: str) -> KPointTHC:
xi = None
with h5py.File(chkfile_name, "r") as fh5:
chi = fh5["chi"][:]
G_mapping = fh5["G_mapping"][:]
num_kpts = G_mapping.shape[0]
g_mapping = fh5["g_mapping"][:]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how was this ever working?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was some merge issue where I lowercased everything which was previously uppercase.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the lowercase hdf5 string is correct? it would be nice if this sort of thing was covered by a test

@fdmalone fdmalone merged commit 1700e24 into quantumlib:master Aug 15, 2023
11 checks passed
@fdmalone fdmalone deleted the pbc_resource_factorizations branch August 15, 2023 19:15
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

Successfully merging this pull request may close these issues.

2 participants