-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
add47f7
commit 50b1982
Showing
6 changed files
with
138 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extract config --optimize-level 0 | ||
qcir read benchmark/SABRE/large/cm82a_208.qasm | ||
convert qcir zx | ||
zx optimize | ||
convert zx qcir | ||
qcir optimize | ||
qcir print | ||
convert qcir zx | ||
zx adjoint | ||
zx list | ||
zx compose 0 | ||
zx optimize | ||
zx test --identity | ||
quit -f |
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,14 @@ | ||
extract config --optimize-level 1 | ||
qcir read benchmark/SABRE/large/cm82a_208.qasm | ||
convert qcir zx | ||
zx optimize | ||
convert zx qcir | ||
qcir optimize | ||
qcir print | ||
convert qcir zx | ||
zx adjoint | ||
zx list | ||
zx compose 0 | ||
zx optimize | ||
zx test --identity | ||
quit -f |
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,14 @@ | ||
extract config --optimize-level 2 | ||
qcir read benchmark/SABRE/large/cm82a_208.qasm | ||
convert qcir zx | ||
zx optimize | ||
convert zx qcir | ||
qcir optimize | ||
qcir print | ||
convert qcir zx | ||
zx adjoint | ||
zx list | ||
zx compose 0 | ||
zx optimize | ||
zx test --identity | ||
quit -f |
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 @@ | ||
qsyn> extract config --optimize-level 0 | ||
|
||
qsyn> qcir read benchmark/SABRE/large/cm82a_208.qasm | ||
|
||
qsyn> convert qcir zx | ||
|
||
qsyn> zx optimize | ||
|
||
qsyn> convert zx qcir | ||
|
||
qsyn> qcir optimize | ||
|
||
qsyn> qcir print | ||
QCir (16 qubits, 404 gates, 231 2-qubits gates, 122 T-gates, 516 depths) | ||
|
||
qsyn> convert qcir zx | ||
|
||
qsyn> zx adjoint | ||
|
||
qsyn> zx list | ||
0 cm82a_208 QC2ZX ➔ FR | ||
★ 2 cm82a_208 QC2ZX ➔ FR ➔ ZX2QC ➔ Optimize ➔ QC2ZX | ||
|
||
qsyn> zx compose 0 | ||
|
||
qsyn> zx optimize | ||
|
||
qsyn> zx test --identity | ||
The graph is an identity! | ||
|
||
qsyn> quit -f | ||
|
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 @@ | ||
qsyn> extract config --optimize-level 1 | ||
|
||
qsyn> qcir read benchmark/SABRE/large/cm82a_208.qasm | ||
|
||
qsyn> convert qcir zx | ||
|
||
qsyn> zx optimize | ||
|
||
qsyn> convert zx qcir | ||
|
||
qsyn> qcir optimize | ||
|
||
qsyn> qcir print | ||
QCir (16 qubits, 403 gates, 227 2-qubits gates, 122 T-gates, 509 depths) | ||
|
||
qsyn> convert qcir zx | ||
|
||
qsyn> zx adjoint | ||
|
||
qsyn> zx list | ||
0 cm82a_208 QC2ZX ➔ FR | ||
★ 2 cm82a_208 QC2ZX ➔ FR ➔ ZX2QC ➔ Optimize ➔ QC2ZX | ||
|
||
qsyn> zx compose 0 | ||
|
||
qsyn> zx optimize | ||
|
||
qsyn> zx test --identity | ||
The graph is an identity! | ||
|
||
qsyn> quit -f | ||
|
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 @@ | ||
qsyn> extract config --optimize-level 2 | ||
|
||
qsyn> qcir read benchmark/SABRE/large/cm82a_208.qasm | ||
|
||
qsyn> convert qcir zx | ||
|
||
qsyn> zx optimize | ||
|
||
qsyn> convert zx qcir | ||
|
||
qsyn> qcir optimize | ||
|
||
qsyn> qcir print | ||
QCir (16 qubits, 384 gates, 217 2-qubits gates, 122 T-gates, 477 depths) | ||
|
||
qsyn> convert qcir zx | ||
|
||
qsyn> zx adjoint | ||
|
||
qsyn> zx list | ||
0 cm82a_208 QC2ZX ➔ FR | ||
★ 2 cm82a_208 QC2ZX ➔ FR ➔ ZX2QC ➔ Optimize ➔ QC2ZX | ||
|
||
qsyn> zx compose 0 | ||
|
||
qsyn> zx optimize | ||
|
||
qsyn> zx test --identity | ||
The graph is an identity! | ||
|
||
qsyn> quit -f | ||
|