-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathout.qasm
84 lines (84 loc) · 1.2 KB
/
out.qasm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
OPENQASM 2.0;
include "qelib1.inc";
qreg q[6];
creg c0[1];
creg c1[1];
creg c2[1];
creg c3[1];
creg c4[1];
creg c5[1];
creg c6[1];
h q[0];
h q[1];
h q[3];
h q[4];
cz q[0], q[1];
cz q[0], q[2];
cz q[3], q[1];
cz q[3], q[4];
cz q[3], q[5];
h q[0];
measure q[0] -> c0[0];
reset q[0];
h q[2];
measure q[2] -> c5[0];
reset q[2];
h q[3];
measure q[3] -> c1[0];
reset q[3];
h q[5];
measure q[5] -> c6[0];
reset q[5];
h q[5];
cz q[1], q[5];
if (c1 == 1) x q[4];
if (c6 == 1) z q[4];
if (c0 == 1) x q[4];
if (c6 == 1) z q[1];
if (c0 == 1) x q[1];
if (c5 == 1) z q[1];
t q[1];
h q[1];
measure q[1] -> c2[0];
reset q[1];
h q[5];
if (c2 == 1) z q[5];
if (c0 == 1) x q[5];
swap q[5], q[2];
swap q[4], q[5];
h q[0];
h q[1];
h q[3];
h q[4];
cz q[0], q[1];
cz q[0], q[2];
cz q[3], q[1];
cz q[3], q[4];
cz q[3], q[5];
h q[0];
measure q[0] -> c0[0];
reset q[0];
h q[2];
measure q[2] -> c5[0];
reset q[2];
h q[3];
measure q[3] -> c1[0];
reset q[3];
h q[5];
measure q[5] -> c6[0];
reset q[5];
h q[5];
cz q[1], q[5];
if (c0 == 1) x q[1];
if (c5 == 1) z q[1];
rz(0.3) q[1];
h q[1];
measure q[1] -> c2[0];
reset q[1];
if (c1 == 1) x q[4];
if (c6 == 1) z q[4];
if (c0 == 1) x q[4];
h q[5];
if (c2 == 1) z q[5];
if (c6 == 1) z q[5];
if (c0 == 1) x q[5];