Skip to content

Commit 739ff8a

Browse files
Remove negative subscript
1 parent d762e16 commit 739ff8a

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
@@ -774,7 +774,7 @@
774774
" )\n",
775775
" if_(\n",
776776
" condition=qbv.len > 2,\n",
777-
" then=lambda: RZZ(weights[-1], qbv[0:2]),\n",
777+
" then=lambda: RZZ(weights[weights.len - 1], qbv[0:2]),\n",
778778
" else_=lambda: IDENTITY(qbv[0]),\n",
779779
" )\n",
780780
"\n",

0 commit comments

Comments
 (0)