-
Notifications
You must be signed in to change notification settings - Fork 23
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
Testing the code in the paper #12
Conversation
|
The same issue happens in CPU-only as evidenced by the GitHub workflow logs:
|
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.
LGTM modulo the removal of assertion in qokit/labs.py
@@ -579,6 +601,4 @@ def get_gate_optimized_terms_greedy(N: int, number_of_gate_zones: int = 4, seed: | |||
j += 1 | |||
k += swapped | |||
|
|||
assert set(circuit) == set(get_terms(N)) |
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.
Any reason to drop this check? Now that get_terms
returns weights well, should this become assert set(circuit) == set(get_term_indices(N))
or something like that?
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.
This is already checked with tests, so runinng get_terms
seemed redundant. We can keep the assert but then the tests are a bit silly:)
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.
Ah, right! Thanks for catching
Adding the tests for snippets in the upcoming paper "Fast Simulation of High-Depth QAOA Circuits" describing QOKit.