dwavesystems / dwave-samplers

Classical algorithms for solving binary quadratic models
Apache License 2.0
11 stars 15 forks source link

Adding planar-graph sampler #34

Closed mdcoury closed 2 years ago

mdcoury commented 2 years 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 2 years ago

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

codecov-commenter commented 2 years 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 2 years ago

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