Skip to content

Commit cd1135d

Browse files
ravidclassiqOriRothClassiq
authored andcommitted
Remove negative subscript
1 parent d912099 commit cd1135d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/qml/qgan/qgan_bars_and_strips.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@
831831
" )\n",
832832
" if_(\n",
833833
" condition=qbv.len > 2,\n",
834-
" then=lambda: RZZ(weights[-1], qbv[0:2]),\n",
834+
" then=lambda: RZZ(weights[weights.len - 1], qbv[0:2]),\n",
835835
" else_=lambda: IDENTITY(qbv[0]),\n",
836836
" )\n",
837837
"\n",

0 commit comments

Comments
 (0)