generated from evmckinney9/python-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hardcoded qasm circuits to no-mqt branch (#20)
* add: preloaded portfolioqaoa qasm file * add: twolocal qiskit circuits * fix: ecp as gate not operator, feat: hardcoded qasm files to skip mqt loading
- Loading branch information
1 parent
d72287e
commit 7fe4ecd
Showing
15 changed files
with
2,280 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[4]; | ||
creg c[4]; | ||
u(pi,0,pi) q[0]; | ||
u(0,0,pi/4) q[0]; | ||
u(pi,0,pi) q[1]; | ||
u(0,0,pi/4) q[1]; | ||
cx q[0],q[1]; | ||
u(pi/2,0,pi) q[3]; | ||
cx q[2],q[3]; | ||
u(0,0,pi/4) q[2]; | ||
u(0,0,-pi/4) q[3]; | ||
cx q[2],q[3]; | ||
cx q[1],q[2]; | ||
cx q[3],q[0]; | ||
cx q[0],q[1]; | ||
u(0,0,-pi/4) q[0]; | ||
u(0,0,-pi/4) q[1]; | ||
cx q[0],q[1]; | ||
cx q[2],q[3]; | ||
u(0,0,-pi/4) q[2]; | ||
u(0,0,pi/4) q[3]; | ||
cx q[2],q[3]; | ||
u(0,0,pi/2) q[3]; | ||
cx q[3],q[0]; | ||
u(pi/2,0,pi) q[3]; | ||
measure q[0] -> c[0]; | ||
measure q[1] -> c[1]; | ||
measure q[2] -> c[2]; | ||
measure q[3] -> c[3]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg eval[7]; | ||
qreg q[1]; | ||
creg meas[8]; | ||
u(pi/2,0,pi) eval[0]; | ||
u(0,0,0) eval[0]; | ||
u(pi/2,0,pi) eval[1]; | ||
u(0,0,0) eval[1]; | ||
u(pi/2,0,pi) eval[2]; | ||
u(0,0,0) eval[2]; | ||
u(pi/2,0,pi) eval[3]; | ||
u(0,0,0) eval[3]; | ||
u(pi/2,0,pi) eval[4]; | ||
u(0,0,0) eval[4]; | ||
u(pi/2,0,pi) eval[5]; | ||
u(0,0,0) eval[5]; | ||
u(pi/2,0,pi) eval[6]; | ||
u(0,0,0) eval[6]; | ||
u(0.9272952180016122,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
cx eval[0],q[0]; | ||
u(-0.9272952180016122,0,0) q[0]; | ||
cx eval[0],q[0]; | ||
u(0.9272952180016122,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
u(0,0,-pi/128) eval[0]; | ||
cx eval[1],q[0]; | ||
u(-1.8545904360032244,0,0) q[0]; | ||
cx eval[1],q[0]; | ||
u(1.8545904360032244,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
u(0,0,-pi/64) eval[1]; | ||
cx eval[2],q[0]; | ||
u(-3.7091808720064487,0,0) q[0]; | ||
cx eval[2],q[0]; | ||
u(3.7091808720064487,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
u(0,0,-pi/32) eval[2]; | ||
cx eval[3],q[0]; | ||
u(-7.4183617440128975,0,0) q[0]; | ||
cx eval[3],q[0]; | ||
u(7.4183617440128975,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
u(0,0,-pi/16) eval[3]; | ||
cx eval[4],q[0]; | ||
u(-14.836723488025795,0,0) q[0]; | ||
cx eval[4],q[0]; | ||
u(14.836723488025795,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
u(0,0,-pi/8) eval[4]; | ||
cx eval[5],q[0]; | ||
u(-29.67344697605159,0,0) q[0]; | ||
cx eval[5],q[0]; | ||
u(29.67344697605159,0,0) q[0]; | ||
u(0,0,0) q[0]; | ||
u(0,0,-pi/4) eval[5]; | ||
cx eval[6],q[0]; | ||
u(-59.34689395210318,0,0) q[0]; | ||
cx eval[6],q[0]; | ||
u(59.34689395210318,0,0) q[0]; | ||
u(pi/2,0,pi) eval[6]; | ||
cx eval[5],eval[6]; | ||
u(0,0,pi/4) eval[6]; | ||
cx eval[5],eval[6]; | ||
u(pi/2,0,pi) eval[5]; | ||
u(0,0,-pi/4) eval[6]; | ||
cx eval[4],eval[6]; | ||
u(0,0,pi/8) eval[6]; | ||
cx eval[4],eval[6]; | ||
u(0,0,-pi/4) eval[4]; | ||
cx eval[4],eval[5]; | ||
u(0,0,pi/4) eval[5]; | ||
cx eval[4],eval[5]; | ||
u(pi/2,0,pi) eval[4]; | ||
u(0,0,-pi/4) eval[5]; | ||
u(0,0,-pi/8) eval[6]; | ||
cx eval[3],eval[6]; | ||
u(0,0,pi/16) eval[6]; | ||
cx eval[3],eval[6]; | ||
u(0,0,-pi/8) eval[3]; | ||
cx eval[3],eval[5]; | ||
u(0,0,pi/8) eval[5]; | ||
cx eval[3],eval[5]; | ||
u(0,0,-pi/4) eval[3]; | ||
cx eval[3],eval[4]; | ||
u(0,0,pi/4) eval[4]; | ||
cx eval[3],eval[4]; | ||
u(pi/2,0,pi) eval[3]; | ||
u(0,0,-pi/4) eval[4]; | ||
u(0,0,-pi/8) eval[5]; | ||
u(0,0,-pi/16) eval[6]; | ||
cx eval[2],eval[6]; | ||
u(0,0,pi/32) eval[6]; | ||
cx eval[2],eval[6]; | ||
u(0,0,-pi/16) eval[2]; | ||
cx eval[2],eval[5]; | ||
u(0,0,pi/16) eval[5]; | ||
cx eval[2],eval[5]; | ||
u(0,0,-pi/8) eval[2]; | ||
cx eval[2],eval[4]; | ||
u(0,0,pi/8) eval[4]; | ||
cx eval[2],eval[4]; | ||
u(0,0,-pi/4) eval[2]; | ||
cx eval[2],eval[3]; | ||
u(0,0,pi/4) eval[3]; | ||
cx eval[2],eval[3]; | ||
u(pi/2,0,pi) eval[2]; | ||
u(0,0,-pi/4) eval[3]; | ||
u(0,0,-pi/8) eval[4]; | ||
u(0,0,-pi/16) eval[5]; | ||
u(0,0,-pi/32) eval[6]; | ||
cx eval[1],eval[6]; | ||
u(0,0,pi/64) eval[6]; | ||
cx eval[1],eval[6]; | ||
u(0,0,-pi/32) eval[1]; | ||
cx eval[1],eval[5]; | ||
u(0,0,pi/32) eval[5]; | ||
cx eval[1],eval[5]; | ||
u(0,0,-pi/16) eval[1]; | ||
cx eval[1],eval[4]; | ||
u(0,0,pi/16) eval[4]; | ||
cx eval[1],eval[4]; | ||
u(0,0,-pi/8) eval[1]; | ||
cx eval[1],eval[3]; | ||
u(0,0,pi/8) eval[3]; | ||
cx eval[1],eval[3]; | ||
u(0,0,-pi/4) eval[1]; | ||
cx eval[1],eval[2]; | ||
u(0,0,pi/4) eval[2]; | ||
cx eval[1],eval[2]; | ||
u(pi/2,0,pi) eval[1]; | ||
u(0,0,-pi/4) eval[2]; | ||
u(0,0,-pi/8) eval[3]; | ||
u(0,0,-pi/16) eval[4]; | ||
u(0,0,-pi/32) eval[5]; | ||
u(0,0,-pi/64) eval[6]; | ||
cx eval[0],eval[6]; | ||
u(0,0,pi/128) eval[6]; | ||
cx eval[0],eval[6]; | ||
u(0,0,-pi/64) eval[0]; | ||
cx eval[0],eval[5]; | ||
u(0,0,pi/64) eval[5]; | ||
cx eval[0],eval[5]; | ||
u(0,0,-pi/32) eval[0]; | ||
cx eval[0],eval[4]; | ||
u(0,0,pi/32) eval[4]; | ||
cx eval[0],eval[4]; | ||
u(0,0,-pi/16) eval[0]; | ||
cx eval[0],eval[3]; | ||
u(0,0,pi/16) eval[3]; | ||
cx eval[0],eval[3]; | ||
u(0,0,-pi/8) eval[0]; | ||
cx eval[0],eval[2]; | ||
u(0,0,pi/8) eval[2]; | ||
cx eval[0],eval[2]; | ||
u(0,0,-pi/4) eval[0]; | ||
cx eval[0],eval[1]; | ||
u(0,0,pi/4) eval[1]; | ||
cx eval[0],eval[1]; | ||
u(pi/2,0,pi) eval[0]; | ||
u(0,0,-pi/4) eval[1]; | ||
u(0,0,-pi/8) eval[2]; | ||
u(0,0,-pi/16) eval[3]; | ||
u(0,0,-pi/32) eval[4]; | ||
u(0,0,-pi/64) eval[5]; | ||
u(0,0,-pi/128) eval[6]; | ||
barrier eval[0],eval[1],eval[2],eval[3],eval[4],eval[5],eval[6],q[0]; | ||
measure eval[0] -> meas[0]; | ||
measure eval[1] -> meas[1]; | ||
measure eval[2] -> meas[2]; | ||
measure eval[3] -> meas[3]; | ||
measure eval[4] -> meas[4]; | ||
measure eval[5] -> meas[5]; | ||
measure eval[6] -> meas[6]; | ||
measure q[0] -> meas[7]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[8]; | ||
creg c[7]; | ||
u(pi/2,0,pi) q[0]; | ||
u(pi,0,pi) q[0]; | ||
u(pi/2,0,pi) q[1]; | ||
u(pi,0,pi) q[1]; | ||
u(pi/2,0,pi) q[2]; | ||
u(pi/2,0,pi) q[3]; | ||
u(pi,0,pi) q[3]; | ||
u(pi/2,0,pi) q[4]; | ||
u(pi/2,0,pi) q[5]; | ||
u(pi,0,pi) q[5]; | ||
u(pi/2,0,pi) q[6]; | ||
u(pi,0,pi) q[6]; | ||
u(pi,0,pi) q[7]; | ||
u(pi/2,0,pi) q[7]; | ||
cx q[0],q[7]; | ||
u(pi,0,pi) q[0]; | ||
u(pi/2,0,pi) q[0]; | ||
cx q[1],q[7]; | ||
u(pi,0,pi) q[1]; | ||
u(pi/2,0,pi) q[1]; | ||
cx q[2],q[7]; | ||
u(pi/2,0,pi) q[2]; | ||
cx q[3],q[7]; | ||
u(pi,0,pi) q[3]; | ||
u(pi/2,0,pi) q[3]; | ||
cx q[4],q[7]; | ||
u(pi/2,0,pi) q[4]; | ||
cx q[5],q[7]; | ||
u(pi,0,pi) q[5]; | ||
u(pi/2,0,pi) q[5]; | ||
cx q[6],q[7]; | ||
u(pi,0,pi) q[6]; | ||
u(pi/2,0,pi) q[6]; | ||
barrier q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7]; | ||
measure q[0] -> c[0]; | ||
measure q[1] -> c[1]; | ||
measure q[2] -> c[2]; | ||
measure q[3] -> c[3]; | ||
measure q[4] -> c[4]; | ||
measure q[5] -> c[5]; | ||
measure q[6] -> c[6]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[3]; | ||
creg c[3]; | ||
u(pi,0,pi) q[0]; | ||
u(pi,0,pi) q[1]; | ||
cx q[2],q[1]; | ||
cx q[0],q[1]; | ||
u(0,0,pi/4) q[0]; | ||
u(0,0,-pi/4) q[1]; | ||
u(pi/2,0,pi) q[2]; | ||
u(0,0,pi/4) q[2]; | ||
cx q[2],q[1]; | ||
cx q[0],q[2]; | ||
u(0,0,pi/4) q[1]; | ||
cx q[0],q[1]; | ||
u(0,0,-pi/4) q[1]; | ||
u(0,0,-pi/4) q[2]; | ||
cx q[0],q[2]; | ||
cx q[2],q[1]; | ||
u(0,0,pi/4) q[1]; | ||
u(pi/2,0,pi) q[2]; | ||
cx q[2],q[1]; | ||
measure q[0] -> c[0]; | ||
measure q[1] -> c[1]; | ||
measure q[2] -> c[2]; |
Oops, something went wrong.