Skip to content

Commit

Permalink
Update dwave-preprocessing from 0.1.2 to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Heidi Tong committed Jun 18, 2021
1 parent 5681da5 commit 91765bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'dwave-inspector==0.2.5',
'dwave-neal==0.5.7',
'dwave-networkx==0.8.8',
'dwave-preprocessing==0.1.2',
'dwave-preprocessing==0.2.0',
'dwave-qbsolv==0.3.2',
'dwave-system==1.5.0',
'dwave-tabu==0.3.1',
Expand Down
5 changes: 3 additions & 2 deletions tests/test_individually.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ def test_preprocessing(self):
from dwave.preprocessing.composites import ScaleComposite

bqm = dimod.BinaryQuadraticModel.from_ising({'a': 10}, {'ab': -1, 'bc': 1})
result = roof_duality(bqm)
self.assertFalse(bqm.variables - result)
lb, fixed = roof_duality(bqm)
self.assertFalse(bqm.variables - fixed)
self.assertEqual(lb, -12.0)

sampler = ScaleComposite(dimod.ExactSolver())
result = sampler.sample(bqm, scalar=0.5)
Expand Down

0 comments on commit 91765bd

Please sign in to comment.