-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support all structured samplers in SubproblemCliqueEmbedder #271
Conversation
Codecov Report
@@ Coverage Diff @@
## master #271 +/- ##
==========================================
+ Coverage 92.46% 92.53% +0.06%
==========================================
Files 17 17
Lines 2071 2063 -8
==========================================
- Hits 1915 1909 -6
+ Misses 156 154 -2
Continue to review full report at Codecov.
|
tests/test_samplers.py
Outdated
@@ -109,12 +112,12 @@ def test_external_embedding_sampler(self): | |||
# verify mock sampler received custom kwargs | |||
self.assertEqual(res.subsamples.first.energy, -1) | |||
|
|||
def test_clique_embedder(self): | |||
@parameterized.expand([['chimera', 2], ['pegasus', 1]]) |
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.
Can you add a test for Zephyr as well?
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.
Now I see your comment above. You can up the lower bound in tests/requirements.txt
only.
@@ -1,3 +1,4 @@ | |||
coverage | |||
codecov | |||
parameterized | |||
dwave-system>=1.13.0 |
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 see this creates a conflict with main requirements file. We'll have to update it there instead.
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.
When I tested locally, I ran pip install -r requirements.txt
and pip install -r test/requirements.txt
sequentially. And that worked. I see that CircleCI (.circleci/config.yml
) is doing pip install -r requirements.txt -r test/requirements.txt
in one command. So, alternatively, I suppose we could change .circleci/config.yml
to run those commands sequentially. Should I try 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.
Sure, that should work!
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.
✔️
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
Fixes --- - Support all structured samplers in SubproblemCliqueEmbedder (dwavesystems#271)
Fixes #264
To be clear, all structured samplers with topologies that are supported by
minorminer.busclique
are supported inSubproblemCliqueEmbedder
with this change.Both chimera- and pegasus-structured (mock) samplers are explicitly tested in composition with
SubproblemCliqueEmbedder
in unit tests with this change. Support for zephyr-structured samplers has been confirmed with manual testing.Not adding a unit test for Zephyr at this time - we will have to changerequirements.txt
to depend on a newer [1]dwave-system
for that.[1] Not sure what is the exact minimum version that we would need for this, but it is no less than1.13.0
as we need dwavesystems/dwave-system@79fcf55Edit: Added a unit test for Zephyr also.