-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiltered
28 lines (28 loc) · 1.25 KB
/
filtered
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
OPENQASM 2.0;
include "qelib1.inc";
gate cDiagonal q0,q1,q2 { p(pi/8) q0; p(pi/8) q1; cx q0,q1; u(0,0,-pi/8) q1; cx q0,q1; u(0,0,0) q1; ccx q0,q2,q1; p(0.39262777) q0; p(0.39262777) q1; cx q0,q1; u(0,0,-0.39262777) q1; cx q0,q1; u(0,0,0) q1; ccx q0,q2,q1; p(-1.1780259) q0; p(-1.1780259) q2; cx q0,q2; u(0,0,1.1780259) q2; cx q0,q2; u(0,0,0) q2; p(9*pi/2) q0; }
gate c_Diagonal q0,q1,q2 { cDiagonal q0,q1,q2; }
gate gate__QFT__dagger__dg q0,q1 { h q0; cp(-pi/2) q0,q1; h q1; }
gate c_Diagonal__1 q0,q1,q2 { c_Diagonal q0,q1,q2; }
gate gate__QFT__dagger__dg_140249322111760 q0 { h q0; }
creg result[1];
qreg qregless_0[7];
x qregless_0[1];
x qregless_0[2];
x qregless_0[0];
x qregless_0[3];
h qregless_0[4];
h qregless_0[5];
cp(-0.691386) qregless_0[1],qregless_0[5];
cp(-1.382772) qregless_0[1],qregless_0[4];
cp(-0.345693) qregless_0[2],qregless_0[5];
cp(-2.2823671) qregless_0[0],qregless_0[5];
cp(1.974491) qregless_0[3],qregless_0[5];
cp(-0.691386) qregless_0[2],qregless_0[4];
cp(-4.5647341) qregless_0[0],qregless_0[4];
cp(3.948982) qregless_0[3],qregless_0[4];
gate__QFT__dagger__dg qregless_0[4],qregless_0[5];
h qregless_0[6];
c_Diagonal__1 qregless_0[6],qregless_0[4],qregless_0[5];
gate__QFT__dagger__dg_140249322111760 qregless_0[6];
measure qregless_0[6] -> result[0];