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

Specialized dwave samplers #317

Merged
merged 11 commits into from
Sep 22, 2020

Conversation

randomir
Copy link
Member

@randomir randomir commented Jul 24, 2020

Closes #288.
Closes #335.

(A) and (B) have been implemented, (C) has been dropped for now.

The idea is to have DWaveSampler/DWaveCliqueSampler and LeapHybridSampler auto-select QPU and Hybrid solvers, but allow for user override from a configuration file/environment via solver parameter.

@randomir randomir mentioned this pull request Jul 24, 2020
@randomir randomir force-pushed the specialized-dwave-samplers branch from bbe5e23 to 17c125e Compare August 28, 2020 00:54
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2020

Codecov Report

Merging #317 into master will decrease coverage by 1.32%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #317      +/-   ##
==========================================
- Coverage   92.48%   91.16%   -1.33%     
==========================================
  Files          22       22              
  Lines        1184     1188       +4     
==========================================
- Hits         1095     1083      -12     
- Misses         89      105      +16     
Impacted Files Coverage Δ
dwave/system/utilities.py 100.00% <ø> (ø)
dwave/system/samplers/dwave_sampler.py 78.39% <77.77%> (-8.40%) ⬇️
dwave/system/samplers/clique.py 84.93% <100.00%> (ø)
dwave/system/samplers/leap_hybrid_sampler.py 73.91% <100.00%> (+0.38%) ⬆️
dwave/system/composites/embedding.py 95.85% <0.00%> (-1.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd1d593...0bd039d. Read the comment docs.

@randomir randomir force-pushed the specialized-dwave-samplers branch from d1732c9 to 337d80a Compare September 22, 2020 20:50
@randomir randomir marked this pull request as ready for review September 22, 2020 21:11
Copy link
Member

@arcondello arcondello left a comment

Choose a reason for hiding this comment

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

LGTM!

import time
import functools
Copy link
Member

Choose a reason for hiding this comment

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

I do alphabetical, you do by size 😆

Copy link
Member Author

Choose a reason for hiding this comment

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

Not true at all.

image

@randomir randomir merged commit a04c59e into dwavesystems:master Sep 22, 2020
@randomir randomir deleted the specialized-dwave-samplers branch September 22, 2020 22:03
randomir added a commit to randomir/dwave-system that referenced this pull request Sep 7, 2021
Constrain client type to hybrid, but propagate user-specified solver
definition (from config file/env/kwargs).

This is a hybrid analogue of dwavesystems#317
(where we applied the same fix to QPU samplers).

Note: partial user-supplied solver definition (patch) is not possible.
User-supplied solver mapping will not be updated to fix accepted
problems types (bqm/dqm) or version preference.

Fixes dwavesystems#363.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants