-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into encoding-circuits
- Loading branch information
Showing
157 changed files
with
6,282 additions
and
486 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 |
---|---|---|
|
@@ -60,7 +60,7 @@ jobs: | |
path: dist | ||
merge-multiple: true | ||
- name: Generate artifact attestation for sdist and wheel(s) | ||
uses: actions/[email protected].3 | ||
uses: actions/[email protected].4 | ||
with: | ||
subject-path: "dist/*" | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
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
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
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,11 @@ | ||
If you want to run evaluations on the example circuits in this directory, do the following. | ||
|
||
To estimate the logical error rate for a physical error rate p_err, run | ||
|
||
`python estimate_logical_error_rate CODE -p p_err` | ||
|
||
The script prints 4 numbers: logical error rate per qubit, acceptance rate (if using post-selection), number of logical errors, total number of shots | ||
|
||
The python script has further options with which you can select which circuits to construct, how many logical errors should occur before stopping and more. | ||
|
||
To generate these values for a circuit for a range between p_err = 0.5 and p_err = 0.00005, the script `run_eval_on_code FILENAME ARGS` can be used. It runs multiple instances of `estimate_logical_error_rate` in parallel (using GNU Parallel) and stores the results in `FILENAME.csv`. |
55 changes: 55 additions & 0 deletions
55
scripts/ft_stateprep/eval/circuits/carbon/zero_ft_heuristic_heuristic.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,55 @@ | ||
OPENQASM 2.0; | ||
include "qelib1.inc"; | ||
qreg q[12]; | ||
qreg z_anc[2]; | ||
qreg x_anc[1]; | ||
qreg a47[1]; | ||
creg z_c[2]; | ||
creg x_c[1]; | ||
creg c47[1]; | ||
h q[0]; | ||
h q[1]; | ||
h q[2]; | ||
h q[4]; | ||
h q[7]; | ||
cx q[7],q[11]; | ||
cx q[1],q[5]; | ||
cx q[7],q[9]; | ||
cx q[4],q[10]; | ||
cx q[2],q[8]; | ||
cx q[1],q[3]; | ||
cx q[0],q[6]; | ||
cx q[10],q[9]; | ||
cx q[8],q[7]; | ||
cx q[6],q[11]; | ||
cx q[4],q[3]; | ||
cx q[2],q[1]; | ||
cx q[0],q[5]; | ||
cx q[11],q[10]; | ||
cx q[9],q[8]; | ||
cx q[7],q[6]; | ||
cx q[5],q[4]; | ||
cx q[3],q[2]; | ||
cx q[1],q[0]; | ||
cx q[1],z_anc[0]; | ||
cx q[4],z_anc[0]; | ||
cx q[7],z_anc[0]; | ||
cx q[10],z_anc[0]; | ||
cx q[1],z_anc[1]; | ||
cx q[2],z_anc[1]; | ||
cx q[7],z_anc[1]; | ||
cx q[8],z_anc[1]; | ||
measure z_anc[0] -> z_c[0]; | ||
measure z_anc[1] -> z_c[1]; | ||
h x_anc[0]; | ||
cx x_anc[0],q[0]; | ||
cx x_anc[0],a47[0]; | ||
cx x_anc[0],q[2]; | ||
cx x_anc[0],q[4]; | ||
cx x_anc[0],q[6]; | ||
cx x_anc[0],q[8]; | ||
cx x_anc[0],a47[0]; | ||
measure a47[0] -> c47[0]; | ||
cx x_anc[0],q[10]; | ||
h x_anc[0]; | ||
measure x_anc[0] -> x_c[0]; |
Oops, something went wrong.