dwavesystems / dwave-samplers

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

PlanarGraphSolver().sample has zero for energy fields #41

Closed jackraymond closed 1 year ago

jackraymond commented 1 year ago

Energy is zero in samplesets returned by the solver:

from dwave.samplers.planar import PlanarGraphSolver
ss = PlanarGraphSolver().sample_ising({},{(0,1): 1,(1,2) : 1})
print(ss.first)
Sample(sample={0: 1, 1: -1, 2: 1}, energy=0, num_occurrences=1)

Expected -2