We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f8389 commit a97a82fCopy full SHA for a97a82f
src/PySA.jl
@@ -57,9 +57,7 @@ function QUBODrivers.sample(sampler::Optimizer{T}) where {T}
57
# Since PySA adopts the s = 1 - 2x instead of the s = 2x - 1
58
# convention, the sign of 'h' has to be inverted, as well as
59
# the value for each state variable in 'ψ' below
60
- h = -h
61
-
62
- problem = np.array(Symmetric(J + diagm(h)))
+ problem = np.array(Symmetric(J - diagm(h)))
63
64
solver = pysa_sa.Solver(
65
problem = problem,
0 commit comments