Skip to content

Commit

Permalink
remove [:]
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jul 9, 2024
1 parent db87d5e commit 5c1b08f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tket2-py/examples/1-Getting-Started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@
"\n",
"# Each operation returns the new wires it creates.\n",
"q0 = builder.add(H(q0))[0]\n",
"q0, q1 = builder.add(CX(q0, q1))[:]\n",
"q0, q1 = builder.add(CX(q0, q1))[0, 1]\n",
"\n",
"# Some operations may have different numbers of inputs and outputs.\n",
"[q0, b0] = builder.add(Measure(q0))[:]\n",
"[q1, b1] = builder.add(Measure(q1))[:]\n",
"[q0, b0] = builder.add(Measure(q0))[0, 1]\n",
"[q1, b1] = builder.add(Measure(q1))[0, 1]\n",
"\n",
"# And some may have no outputs at all.\n",
"builder.add(QFree(q0))\n",
Expand Down

0 comments on commit 5c1b08f

Please sign in to comment.