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

Add helper function for downloading Fermi-Hubbard publication data #117

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

rmlarose
Copy link
Contributor

Fixes #108.

@@ -209,3 +213,50 @@ def rainbow23_layouts(sites_count: int = 8) -> Tuple[ZigZagLayout]:
for flip in (False, True)
for exchange in (False, True)
for reverse in (False, True))


def fetch_publication_data(
Copy link
Collaborator

Choose a reason for hiding this comment

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

The other function is in recirq.documentation_utils. I don't know if that's the exact correct place to put it, but I think there's some value to having all the example-dataset functionality outside of the projects so you can find all of them more easily in one place. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess there are two options which make sense:

  1. Put download functions in the same place (documentation_utils.get_qaoa_data and documentation_utils.get_fermi_hubbard_data).
  2. Put download functions in respective modules (qaoa.get_publication_data and recirq.get_publication_data).

I'm not too partial to either so I'm good to go with your intuition here. Maybe (2) is slightly more natural to me since I would probably look there before documentation_utils if I were guessing. This could be improved by renaming documentation_utils or putting both functions in a new module though.

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.

No sense letting the discussion hold this up

@mpharrigan mpharrigan merged commit 3b811c2 into quantumlib:master Jan 13, 2021
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.

Helper function for downloading fermi hubbard experimental data
2 participants