-
Notifications
You must be signed in to change notification settings - Fork 0
/
conv.qasm
45 lines (44 loc) · 981 Bytes
/
conv.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
//A generation of the convolution layer in qasm in the first epoch
//Replace to add inputs
OPENQASM 3.0;
include "stdgates.inc";
qubit[4] q;
rz(-pi/2) q[1];
cx q[1], q[0];
rz(8.022465705871582) q[0];
ry(5.3386993408203125) q[1];
cx q[0], q[1];
rz(72.59041595458984) q[0];
ry(46.43528366088867) q[1];
cx q[1], q[0];
rz(pi/2) q[0];
barrier q[0], q[1], q[2], q[3];
rz(-pi/2) q[3];
cx q[3], q[2];
rz(26.811859130859375) q[2];
ry(15.774764060974121) q[3];
cx q[2], q[3];
rz(62.210853576660156) q[2];
ry(33.89036178588867) q[3];
cx q[3], q[2];
rz(pi/2) q[2];
barrier q[0], q[1], q[2], q[3];
rz(-pi/2) q[2];
cx q[2], q[1];
rz(26.695165634155273) q[1];
ry(0) q[2];
cx q[1], q[2];
rz(45.4260368347168) q[1];
ry(23.226646423339844) q[2];
cx q[2], q[1];
rz(pi/2) q[2];
barrier q[0], q[1], q[2], q[3];
rz(-pi/2) q[3];
cx q[3], q[0];
rz(18.049678802490234) q[0];
ry(28.853687286376953) q[3];
cx q[0], q[3];
rz(72.33779907226562) q[0];
ry(16.70090103149414) q[3];
cx q[3], q[0];
rz(pi/2) q[0];