Skip to content

Commit

Permalink
Added some convenience methods and updated some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdwetering committed Sep 10, 2018
1 parent 9d6b5f9 commit a6f4322
Show file tree
Hide file tree
Showing 8 changed files with 3,548 additions and 19,953 deletions.
69 changes: 69 additions & 0 deletions circuits/Other/nth_prime6.tfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# (c) Copyright 2018 Xiaoxiao Wang <[email protected]>
# Distributing this file without an express written permission or erasing this note is prohibited.
.v a,b,c,d,e,f
.i a,b,c,d,e,f
.o a,b,c,d,e,f
BEGIN
t3 c,e,d
t2 c,e
t2 d,f
t1 a
t2 f,e
t3 e,f,d
t4 c,d,f,e
t1 d
t3 d,e,f
t3 e,f,d
t2 c,e
t3 a,f,c
t2 e,c
t3 a,c,b
t4 b,d,f,c
t2 a,b
t4 a,b,f,c
t1 b
t5 a,b,d,e,f
t1 b
t2 c,a
t3 c,d,b
t4 b,c,d,a
t3 c,d,b
t3 c,f,a
t3 c,f,b
t3 b,f,c
t4 a,b,f,c
t2 f,b
t2 d,f
t2 f,d
t1 a
t5 a,b,c,d,e
t1 a
t3 d,e,f
t3 b,c,d
t2 d,f
t3 d,e,f
t4 a,c,f,b
t5 a,b,c,e,f
t1 b
t5 b,c,e,f,a
t1 b
t3 b,d,a
t2 e,c
t5 b,c,d,f,a
t2 e,c
t4 b,c,e,f
t2 b,c
t3 a,d,c
t2 d,f
t6 a,b,c,d,e,f
t3 b,f,a
t3 a,b,c
t3 b,f,c
t2 d,a
t3 d,e,f
t3 b,d,a
t6 a,b,d,e,f,c
t1 b
t1 f
END
# gate=57 cost=485
19,649 changes: 0 additions & 19,649 deletions notebooks/Benchmark.ipynb

Large diffs are not rendered by default.

18 changes: 5 additions & 13 deletions notebooks/Circuits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,17 @@
"cells": [
{
"cell_type": "code",
"execution_count": 69,
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The autoreload extension is already loaded. To reload it, use:\n",
" %reload_ext autoreload\n"
]
}
],
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2"
]
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -30,7 +21,8 @@
"from pyzx.circuit import Circuit, CNOT, S, XPhase, QASMParser\n",
"import random\n",
"from fractions import Fraction\n",
"%config InlineBackend.figure_format = 'svg'"
"%config InlineBackend.figure_format = 'svg'\n",
"zx.quantomatic.quantomatic_location = r'C:\\Users\\John\\Desktop\\scala.jar'"
]
},
{
Expand Down
Loading

0 comments on commit a6f4322

Please sign in to comment.