Skip to content

Commit

Permalink
resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TolisChal committed Oct 16, 2024
1 parent b159a7f commit c15fe75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_optimization/applications/max_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ def parse_gset_format(filename: str) -> np.ndarray:
w = np.zeros((n, n))
header = False
else:
s__, t__, _ = v
s__, t__, w__ = v
s__ -= 1 # adjust 1-index
t__ -= 1 # ditto
w[s__, t__] = _
w[s__, t__] = w__
count += 1
assert m == count
w += w.T
Expand Down

0 comments on commit c15fe75

Please sign in to comment.