forked from poig/2023_IonQ_Remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quantum_classifier.qasm
5 lines (5 loc) · 1.87 KB
/
quantum_classifier.qasm
1
2
3
4
5
OPENQASM 2.0;
include "qelib1.inc";
gate gate_RealAmplitudes(param0,param1,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14,param15,param16,param17,param18,param19,param20,param21,param22,param23,param24,param25,param26,param27,param28,param29) q0,q1,q2,q3,q4,q5,q6,q7,q8,q9 { ry(0.166885338964307) q0; ry(-0.562428401027246) q1; ry(0.48893589557941) q2; ry(1.0000212324066) q3; ry(0.997292670049591) q4; ry(0.516642028823444) q5; ry(-0.52976583280007) q6; ry(0.44621090925359) q7; ry(-0.812837886101786) q8; ry(0.00690999905273608) q9; cx q8,q9; cx q7,q8; cx q6,q7; cx q5,q6; cx q4,q5; cx q3,q4; cx q2,q3; cx q1,q2; cx q0,q1; ry(0.732554878640012) q0; ry(1.09250685549609) q1; ry(0.946119425708376) q2; ry(1.22520608932305) q3; ry(-0.256892484303682) q4; ry(0.849713315449811) q5; ry(-0.172935171560596) q6; ry(-0.792282689543016) q7; ry(0.105879168563046) q8; ry(0.451929686680044) q9; cx q8,q9; cx q7,q8; cx q6,q7; cx q5,q6; cx q4,q5; cx q3,q4; cx q2,q3; cx q1,q2; cx q0,q1; ry(-0.717816606765696) q0; ry(-0.406893365206504) q1; ry(0.786417140426462) q2; ry(0.715868574401998) q3; ry(1.68834007060239) q4; ry(0.16240900497929) q5; ry(0.021691745395356) q6; ry(-0.45492053378632) q7; ry(1.68422609585115) q8; ry(0.668468430274114) q9; }
qreg q[10];
gate_RealAmplitudes(0.166885338964307,-0.562428401027246,0.48893589557941,1.0000212324066,0.997292670049591,0.516642028823444,-0.52976583280007,0.44621090925359,-0.812837886101786,0.00690999905273608,0.732554878640012,1.09250685549609,0.946119425708376,1.22520608932305,-0.256892484303682,0.849713315449811,-0.172935171560596,-0.792282689543016,0.105879168563046,0.451929686680044,-0.717816606765696,-0.406893365206504,0.786417140426462,0.715868574401998,1.68834007060239,0.16240900497929,0.021691745395356,-0.45492053378632,1.68422609585115,0.668468430274114) q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9];