dwavesystems / dwave-samplers

Classical algorithms for solving binary quadratic models
Apache License 2.0
8 stars 12 forks source link

Adding planar-graph sampler #34

Closed mdcoury closed 1 year ago

mdcoury commented 1 year ago

This adds the planar-graph sampler to the dwave-samplers project. The new classes are available at dwave/samplers/planar and the new PlanarGraphSampler is from dwave.samplers.planar.sampler.

mdcoury commented 1 year ago

Note that I still have to refine the version requirements for scipy and networkx

codecov-commenter commented 1 year ago

Codecov Report

Merging #34 (4ee4780) into main (75b0984) will increase coverage by 0.36%. The diff coverage is n/a.

:exclamation: Current head 4ee4780 differs from pull request most recent head e0db751. Consider uploading reports for the commit e0db751 to get more accurate results

@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
+ Coverage   97.28%   97.65%   +0.36%     
==========================================
  Files          11       16       +5     
  Lines        1143     1447     +304     
==========================================
+ Hits         1112     1413     +301     
- Misses         31       34       +3     
Impacted Files Coverage Δ
data/__init__.py 75.00% <0.00%> (ø)
test_planar_kasteleyn.py 100.00% <0.00%> (ø)
test_planar_util.py 100.00% <0.00%> (ø)
test_planar_planar.py 100.00% <0.00%> (ø)
test_planar_sampler.py 100.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

arcondello commented 1 year ago

Should add from dwave.samplers.planar import * to dwave/samplers/__init__.py