Skip to content

Commit e695d6d

Browse files
authored
Merge pull request zxcalc#108 from CQCL/phase_poly_routing
Add routing methods for phase polynomials
2 parents d1c1555 + c3ea117 commit e695d6d

24 files changed

+1803
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[0], q[4];
7+
cx q[1], q[0];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[1], q[0];
7+
cx q[4], q[1];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[4], q[3];
7+
cx q[3], q[2];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[3], q[4];
7+
cx q[3], q[4];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[4], q[3];
7+
cx q[2], q[0];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[1], q[0];
7+
cx q[3], q[2];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[0], q[1];
7+
cx q[1], q[3];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[2], q[3];
7+
cx q[0], q[3];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[1], q[3];
7+
cx q[3], q[0];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Initial wiring: [0, 1, 2, 3, 4]
2+
// Resulting wiring: [0, 1, 2, 3, 4]
3+
OPENQASM 2.0;
4+
include "qelib1.inc";
5+
qreg q[5];
6+
cx q[4], q[2];
7+
cx q[0], q[3];

0 commit comments

Comments
 (0)