diff --git a/qiskit_optimization/applications/max_cut.py b/qiskit_optimization/applications/max_cut.py index 9d9bc5371..e7a9e79e0 100644 --- a/qiskit_optimization/applications/max_cut.py +++ b/qiskit_optimization/applications/max_cut.py @@ -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