From 17fcd520df958aa570031261b04405e79e8da05b Mon Sep 17 00:00:00 2001 From: kogeletey Date: Mon, 24 Jul 2023 15:58:18 +0300 Subject: [PATCH] feat: adding output of qasm in varios libs --- qasm/deutch-cirq-output.qasm | 12 +++++++++ qasm/deutch-qiskit-output.qasm | 26 ++++++++++++++++++++ qasm/grover-cirq-output.qasm | 45 ++++++++++++++++++++++++++++++++++ qasm/grover-qiskit-output.qasm | 36 +++++++++++++++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 qasm/deutch-cirq-output.qasm create mode 100644 qasm/deutch-qiskit-output.qasm create mode 100644 qasm/grover-cirq-output.qasm create mode 100644 qasm/grover-qiskit-output.qasm diff --git a/qasm/deutch-cirq-output.qasm b/qasm/deutch-cirq-output.qasm new file mode 100644 index 0000000..4ba58c0 --- /dev/null +++ b/qasm/deutch-cirq-output.qasm @@ -0,0 +1,12 @@ +OPENQASM 2.0; +include "qelib1.inc"; + +qreg q[7]; + +creg m0[1]; + + +rz(1.5707963267948966) q[1]; +sx q[1]; +rz(-1.5707963267948966) q[1]; +measure q[0] -> m0[0]; diff --git a/qasm/deutch-qiskit-output.qasm b/qasm/deutch-qiskit-output.qasm new file mode 100644 index 0000000..82a94d5 --- /dev/null +++ b/qasm/deutch-qiskit-output.qasm @@ -0,0 +1,26 @@ +OPENQASM 2.0; +include "qelib1.inc"; + +qreg q[5]; + +creg c0[1]; + + +rz(1.5707963267948966) q[1]; +sx q[1]; +rz(-1.5707963267948966) q[1]; +barrier q[0], q[1]; +rz(1.5707963267948966) q[0]; +sx q[0]; +rz(1.5707963267948966) q[0]; +rz(1.5707963267948966) q[1]; +sx q[1]; +rz(1.5707963267948966) q[1]; +barrier q[0], q[1]; +cx q[0], q[1]; +barrier q[0], q[1]; +rz(1.5707963267948966) q[0]; +sx q[0]; +rz(1.5707963267948966) q[0]; +barrier q[0], q[1]; +measure q[0] -> c0[0]; diff --git a/qasm/grover-cirq-output.qasm b/qasm/grover-cirq-output.qasm new file mode 100644 index 0000000..8cf0dac --- /dev/null +++ b/qasm/grover-cirq-output.qasm @@ -0,0 +1,45 @@ +OPENQASM 2.0; +include "qelib1.inc"; + +qreg q[7]; + +creg m_result[2]; + + +x q[1]; +rz(-1.5707963267948968) q[2]; +sx q[2]; +rz(1.5707963267948966) q[2]; +rz(1.5707963267948966) q[3]; +sx q[3]; +rz(1.5707963267948966) q[3]; +cx q[3], q[1]; +rz(-0.7853981633974483) q[1]; +cx q[2], q[1]; +rz(0.7853981633974483) q[1]; +cx q[3], q[1]; +rz(-0.7853981633974483) q[1]; +cx q[2], q[1]; +rz(2.356194490192345) q[1]; +sx q[1]; +rz(1.5707963267948966) q[1]; +rz(0.7853981633974483) q[3]; +cx q[3], q[1]; +cx q[1], q[3]; +cx q[3], q[1]; +cx q[2], q[1]; +rz(-0.7853981633974483) q[1]; +rz(0.7853981633974483) q[2]; +cx q[2], q[1]; +rz(-3.141592653589793) q[1]; +rz(-1.5707963267948966) q[2]; +sx q[2]; +rz(-1.5707963267948966) q[2]; +cx q[2], q[1]; +rz(-3.141592653589793) q[1]; +rz(1.5707963267948966) q[2]; +sx q[2]; +rz(-1.5707963267948966) q[2]; +barrier q[2], q[1], q[3]; +measure q[2] -> m_result[0]; +measure q[1] -> m_result[1]; diff --git a/qasm/grover-qiskit-output.qasm b/qasm/grover-qiskit-output.qasm new file mode 100644 index 0000000..605d948 --- /dev/null +++ b/qasm/grover-qiskit-output.qasm @@ -0,0 +1,36 @@ +OPENQASM 2.0; +include "qelib1.inc"; + +qreg q[7]; + +creg meas[2]; + + +rz(1.5707963267948966) q[0]; +sx q[0]; +rz(1.5707963267948966) q[0]; +rz(1.5707963267948966) q[1]; +sx q[1]; +rz(1.5707963267948966) q[1]; +barrier q[0], q[1]; +rz(1.5707963267948966) q[1]; +sx q[1]; +rz(1.5707963267948966) q[1]; +cx q[0], q[1]; +rz(1.5707963267948966) q[1]; +sx q[1]; +rz(1.5707963267948966) q[1]; +barrier q[0], q[1]; +rz(-1.5707963267948968) q[0]; +sx q[0]; +rz(1.5707963267948966) q[0]; +rz(-3.141592653589793) q[1]; +cx q[0], q[1]; +rz(1.5707963267948966) q[0]; +sx q[0]; +rz(-1.5707963267948966) q[0]; +rz(-3.141592653589793) q[1]; +barrier q[0], q[1]; +barrier q[0], q[1]; +measure q[0] -> meas[0]; +measure q[1] -> meas[1];