-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further encoding circuis and tweak to encoder synthesis.
- Loading branch information
Showing
8 changed files
with
227 additions
and
2 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
31 changes: 31 additions & 0 deletions
31
src/mqt/qecc/circuit_synthesis/encoding_circuits/carbon.qasm
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 @@ | ||
# Encoding Qubits: 0,4 | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[12]; | ||
h q[5]; | ||
h q[8]; | ||
h q[9]; | ||
h q[10]; | ||
h q[11]; | ||
cx q[9],q[2]; | ||
cx q[5],q[2]; | ||
cx q[11],q[1]; | ||
cx q[8],q[7]; | ||
cx q[5],q[4]; | ||
cx q[10],q[3]; | ||
cx q[9],q[1]; | ||
cx q[2],q[0]; | ||
cx q[11],q[7]; | ||
cx q[0],q[6]; | ||
cx q[1],q[4]; | ||
cx q[8],q[3]; | ||
cx q[4],q[7]; | ||
cx q[10],q[6]; | ||
cx q[3],q[2]; | ||
cx q[1],q[0]; | ||
cx q[6],q[11]; | ||
cx q[5],q[10]; | ||
cx q[7],q[9]; | ||
cx q[0],q[8]; | ||
cx q[2],q[1]; | ||
cx q[4],q[3]; |
43 changes: 43 additions & 0 deletions
43
src/mqt/qecc/circuit_synthesis/encoding_circuits/hamming.qasm
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,43 @@ | ||
# Encoding Qubits: 0,1,2,3,4,6,12 | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[15]; | ||
h q[7]; | ||
h q[10]; | ||
h q[11]; | ||
h q[13]; | ||
cx q[13],q[8]; | ||
cx q[7],q[1]; | ||
cx q[7],q[8]; | ||
cx q[1],q[6]; | ||
cx q[13],q[9]; | ||
cx q[6],q[8]; | ||
cx q[8],q[12]; | ||
cx q[2],q[9]; | ||
cx q[1],q[9]; | ||
cx q[12],q[5]; | ||
cx q[11],q[4]; | ||
cx q[10],q[5]; | ||
cx q[8],q[4]; | ||
cx q[9],q[0]; | ||
cx q[11],q[14]; | ||
cx q[2],q[10]; | ||
cx q[5],q[4]; | ||
cx q[1],q[3]; | ||
cx q[7],q[0]; | ||
cx q[6],q[14]; | ||
cx q[10],q[13]; | ||
cx q[4],q[12]; | ||
cx q[3],q[11]; | ||
cx q[0],q[5]; | ||
cx q[13],q[14]; | ||
cx q[6],q[10]; | ||
cx q[11],q[8]; | ||
cx q[5],q[3]; | ||
cx q[4],q[2]; | ||
cx q[12],q[11]; | ||
cx q[9],q[7]; | ||
cx q[5],q[2]; | ||
cx q[8],q[0]; | ||
cx q[4],q[6]; | ||
cx q[14],q[10]; |
15 changes: 15 additions & 0 deletions
15
src/mqt/qecc/circuit_synthesis/encoding_circuits/shor.qasm
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,15 @@ | ||
# Encoding Qubits: 2 | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[9]; | ||
h q[0]; | ||
h q[6]; | ||
cx q[6],q[2]; | ||
cx q[0],q[3]; | ||
cx q[6],q[8]; | ||
cx q[3],q[4]; | ||
cx q[2],q[0]; | ||
cx q[6],q[7]; | ||
cx q[4],q[5]; | ||
cx q[3],q[2]; | ||
cx q[0],q[1]; |
16 changes: 16 additions & 0 deletions
16
src/mqt/qecc/circuit_synthesis/encoding_circuits/steane.qasm
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,16 @@ | ||
# Encoding Qubits: 2 | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[7]; | ||
h q[4]; | ||
h q[5]; | ||
h q[6]; | ||
cx q[5],q[1]; | ||
cx q[1],q[2]; | ||
cx q[4],q[0]; | ||
cx q[6],q[4]; | ||
cx q[5],q[3]; | ||
cx q[2],q[0]; | ||
cx q[6],q[3]; | ||
cx q[4],q[5]; | ||
cx q[0],q[1]; |
17 changes: 17 additions & 0 deletions
17
src/mqt/qecc/circuit_synthesis/encoding_circuits/surface.qasm
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,17 @@ | ||
# Encoding Qubits: 0 | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[9]; | ||
h q[3]; | ||
h q[5]; | ||
h q[6]; | ||
h q[7]; | ||
cx q[7],q[4]; | ||
cx q[3],q[0]; | ||
cx q[3],q[4]; | ||
cx q[5],q[2]; | ||
cx q[0],q[1]; | ||
cx q[7],q[8]; | ||
cx q[4],q[5]; | ||
cx q[1],q[2]; | ||
cx q[6],q[3]; |
32 changes: 32 additions & 0 deletions
32
src/mqt/qecc/circuit_synthesis/encoding_circuits/tetrahedral.qasm
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,32 @@ | ||
# Encoding Qubits: 8 | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[15]; | ||
h q[0]; | ||
h q[1]; | ||
h q[2]; | ||
h q[14]; | ||
cx q[8],q[10]; | ||
cx q[2],q[9]; | ||
cx q[1],q[12]; | ||
cx q[0],q[7]; | ||
cx q[14],q[7]; | ||
cx q[12],q[8]; | ||
cx q[10],q[0]; | ||
cx q[9],q[11]; | ||
cx q[2],q[5]; | ||
cx q[1],q[4]; | ||
cx q[14],q[12]; | ||
cx q[11],q[13]; | ||
cx q[9],q[10]; | ||
cx q[5],q[6]; | ||
cx q[2],q[3]; | ||
cx q[7],q[4]; | ||
cx q[0],q[1]; | ||
cx q[14],q[13]; | ||
cx q[12],q[11]; | ||
cx q[8],q[9]; | ||
cx q[7],q[6]; | ||
cx q[0],q[3]; | ||
cx q[4],q[5]; | ||
cx q[1],q[2]; |
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