Skip to content

Commit

Permalink
Merge pull request #262 from contra-bit/fix/notebooks
Browse files Browse the repository at this point in the history
correct path for pyzx import and correct fraction for z_spider for demos/ZXW_demo.ipynb
  • Loading branch information
jvdwetering authored Jul 23, 2024
2 parents d81356b + abef647 commit 0e40c60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demos/ZXW_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"metadata": {},
"outputs": [],
"source": [
"import sys; sys.path.append('..')\n",
"import pyzx as zx"
]
},
Expand Down Expand Up @@ -2140,7 +2141,7 @@
],
"source": [
"# the z spider is a special case of the z box and it can be converted using the z to zbox method\n",
"z_spider = zx.generate.spider(\"Z\", 4, 5, 1/2)\n",
"z_spider = zx.generate.spider(\"Z\", 4, 5, 1//2)\n",
"zx.draw(z_spider)\n",
"zx.rules.z_to_z_box(z_spider, zx.rules.match_z_to_z_box(z_spider))\n",
"zx.draw(z_spider)"
Expand Down

0 comments on commit 0e40c60

Please sign in to comment.