-
Notifications
You must be signed in to change notification settings - Fork 60
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
Bugfix vanishing instances after elimination #158
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…k the rqaoa cycle and solve for a the smallest non-vanishing instance.
Codecov Report
@@ Coverage Diff @@
## dev #158 +/- ##
==========================================
+ Coverage 81.70% 81.98% +0.28%
==========================================
Files 95 95
Lines 11794 11994 +200
==========================================
+ Hits 9636 9833 +197
- Misses 2158 2161 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
"Spiders are the only web developers that enjoy finding bugs." + Kristina ;) :D |
kidiki
changed the title
checking if the new problem is an empty dictionary and if it is, brea…
Bugfix vanishing instances after elimination
Dec 27, 2022
Note that this bug occurs for 27 out of 1100 random instances for unweighted graphs with p=0.7 probability for an edge. |
Q-lds
reviewed
Dec 28, 2022
…hole problem fails
… problem but instead produce all bitstrings where spins are fixed arbitratily if None in the spin map or according to the correlations
Q-lds
reviewed
Jan 17, 2023
vishal-ph
approved these changes
Jan 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Summary: Solving and RQAOA bug when vanishing problems.
Context: unweighted graphs have a lot of edge cases when reduced during the RQAOA algorithm.
Bug description:
Approach to fixing: check if the new problem is an empty dictionary, which would mean that a total elimination happened. If so, set the new problem to the old one and break the optimization cycle. Hence, solving for the smallest non-vanishing instance or equivalently, increasing the cutoff.
Note: this might cause a potential problem if the smallest non-vanishing instance is too big to be solved classically. TODO
Checklist
Type of change
Please delete options that are not relevant.
How Has This Been Tested?