dwavesystems / dwave-system

An API for easily incorporating the D-Wave system as a sampler, either directly or through Leap's cloud-based hybrid samplers
https://docs.ocean.dwavesys.com/
Apache License 2.0
87 stars 62 forks source link

Feature/zephyr #432

Closed jackraymond closed 2 years ago

jackraymond commented 2 years ago

Added Zephyr topology support to DWaveMockSampler which can be the basis for further development of code supporting forthcoming Zephyr features.

jackraymond commented 2 years ago

AttributeError: module 'dwave_networkx' has no attribute 'zephyr_graph' is the cause of test failures. I think this is an issue with the required version for the repository.

randomir commented 2 years ago

@jackraymond, be sure to also update requirements in setup.py#L30 to dwave-networkx>=0.8.10, and in requirements.txt#L5 to dwave-networkx==0.8.10.

codecov-commenter commented 2 years ago

Codecov Report

Merging #432 (c506d05) into master (ddb219f) will decrease coverage by 3.03%. The diff coverage is 73.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #432      +/-   ##
==========================================
- Coverage   90.54%   87.51%   -3.04%     
==========================================
  Files          22       22              
  Lines        1492     1498       +6     
==========================================
- Hits         1351     1311      -40     
- Misses        141      187      +46     
Impacted Files Coverage Δ
dwave/system/testing.py 94.82% <73.68%> (-1.54%) :arrow_down:
dwave/system/samplers/leap_hybrid_sampler.py 61.72% <0.00%> (-13.88%) :arrow_down:
dwave/system/samplers/clique.py 77.35% <0.00%> (-5.04%) :arrow_down:
dwave/system/samplers/dwave_sampler.py 84.47% <0.00%> (-3.11%) :arrow_down:
dwave/system/composites/embedding.py 95.85% <0.00%> (-1.19%) :arrow_down:

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 ddb219f...c506d05. Read the comment docs.