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

Added coupler and qubits parameters to MockDWaveSampler #438

Closed jackraymond closed 2 years ago

jackraymond commented 2 years ago

qubits and couplers properties are present in DWaveSampler but absent in the MockDWaveSampler. These properties have been added to MockDWaveSampler

codecov-commenter commented 2 years ago

Codecov Report

Merging #438 (5dd8e75) into master (15f1328) will decrease coverage by 2.89%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
- Coverage   90.54%   87.65%   -2.90%     
==========================================
  Files          22       22              
  Lines        1513     1515       +2     
==========================================
- Hits         1370     1328      -42     
- Misses        143      187      +44     
Impacted Files Coverage Δ
dwave/system/testing.py 94.91% <100.00%> (+0.08%) :arrow_up:
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.56% <0.00%> (-3.09%) :arrow_down:
dwave/system/composites/embedding.py 96.00% <0.00%> (-1.15%) :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 15f1328...5dd8e75. Read the comment docs.