Skip to content

Commit

Permalink
fix bug in max-cut solver (issue #611)
Browse files Browse the repository at this point in the history
  • Loading branch information
TolisChal committed Oct 8, 2024
1 parent 807d481 commit 26d6694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_optimization/applications/max_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def parse_gset_format(filename: str) -> np.ndarray:
s__, t__, _ = v
s__ -= 1 # adjust 1-index
t__ -= 1 # ditto
w[s__, t__] = t__
w[s__, t__] = _
count += 1
assert m == count
w += w.T
Expand Down

0 comments on commit 26d6694

Please sign in to comment.