-
Notifications
You must be signed in to change notification settings - Fork 28
WIP: FT State Preparation Through Code Symmetries #377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
inctechs
wants to merge
186
commits into
main
Choose a base branch
from
ft-stateprep-qubit-perm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
186 commits
Select commit
Hold shift + click to select a range
26abfcd
create permutation file
inctechs 2b74027
add function to create steane state prep circuit
inctechs 010df06
add function preparing Steane code CSS object
inctechs 714e8f7
Correct wrong stabilizer generators
inctechs af56986
add option to check for logical 0
inctechs a8b5e47
add set up for Simulation circuit
inctechs 112c777
disable print statement removement
inctechs 15ef182
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs 4d49bef
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs e832caf
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs 28de0e3
add utility function to get automorphism subgroup from generators
inctechs 0bed263
add function to evaluate fault set overlap based on permutations
inctechs 3e249b8
mandatory format changes (return -> Return)
inctechs 2cb6521
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs 27569f1
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs 1d64f19
🎨 pre-commit fixes
pre-commit-ci[bot] acbabdb
guide heuristic gauss based on penalty columns/ CNOTs
inctechs 1359027
move overlap search out and turn it into a standalone function
inctechs 3d7529a
update heuristic SPC function to allow guiding information
inctechs 9bac3af
🎨 pre-commit fixes
pre-commit-ci[bot] a15c6e1
add method to permute qubits of StatePreparationCircuit
inctechs 3beda63
Ignore missing library stubs sympy.
pehamTom 2481cbb
add method that checks overlap of fault sets to SPC class
inctechs 79c60e3
add function to check mutual disjunctness
inctechs 924b1d2
add automorphism as optional property to CSSCode class
inctechs 277d946
Merge branch 'main' into ft-stateprep-qubit-perm
pehamTom 92143b3
Simulation steane ftsp (#383)
pehamTom 1e97ab1
Allow steane-type FTSP with only two circuits.
pehamTom c18c07e
Synthesis of state prep circuits in standard form.
pehamTom ef66114
Checks in simulation dependent on state.
pehamTom a09f00f
Merge branch 'ft-stateprep-qubit-perm' into standard-form-commutations
pehamTom 52d2095
remove debug prints
inctechs 288132c
Merge branch 'ft-stateprep-qubit-perm' of https://github.com/cda-tum/…
inctechs 1d6e0dd
set up eval directory structure
inctechs 705876b
add z_observable flag for z errors
inctechs fff679e
🎨 pre-commit fixes
pre-commit-ci[bot] a04dd7c
missing comma
inctechs ae7a1dd
Merge remote-tracking branch 'refs/remotes/origin/ft-stateprep-qubit-…
inctechs 31cc107
Revert "add z_observable flag for z errors"
inctechs e08521d
Canonical form circuits for Steane-type FTSP.
pehamTom d9f72f4
add binomial error calulation for SteaneNDFTStatePrepSimulator
inctechs 03bba84
prepare simulation
inctechs 48e484d
update cc_4_8_8 circuits
inctechs 1094955
change cc_6_6_6 from qasm3 to qasm2
inctechs a5e4877
Bugged implementation.
pehamTom e05ba10
add new headers for binomial errors in csv
inctechs a8ae963
remove falsly tracked files
inctechs 0450ed5
Second attempt.
pehamTom f97238b
Fix bug in Steane Type measurement regarding measurement order.
pehamTom c27efc5
Merge remote-tracking branch 'origin/ft-stateprep-qubit-perm' into ft…
pehamTom 7d61efc
Random CNOT Permutation.
pehamTom 5de6e3c
add circuits for cc_488 of distance 7
inctechs c57903a
update sim file to include distance 7 cc488
inctechs 65679e9
Merge branch 'ft-stateprep-qubit-perm' of https://github.com/cda-tum/…
inctechs 9c6587f
correct crucial typo
inctechs e0aa0be
Speed up LUT creation.
pehamTom eda6704
Merge remote-tracking branch 'origin/ft-stateprep-qubit-perm' into ft…
pehamTom 52f6b09
Remove old function.
pehamTom b4e07ec
Remove another old function.
pehamTom 5e7f906
Merge branch 'ft-stateprep-qubit-perm' into standard-form-commutations
pehamTom b6ec765
Fix index error in permutation generation.
pehamTom fef08e7
Steane-type check for Z errors.
pehamTom 6540dc2
Remove pheno noise.
pehamTom 663c7a4
Merge branch 'ft-stateprep-qubit-perm' into standard-form-commutations
pehamTom 5c70209
Noise on ancilla.
pehamTom 78e8594
Eval scripts for canonical Steane State Prep.
pehamTom 1ac2a39
edit heuristic_gauss
inctechs d8cb475
add function to find next error
inctechs e34ae29
change check mutual disjunctness function
inctechs 0d86484
change distance based fault set calculation
inctechs 9471f0d
change build funciton for cnot circuit
inctechs 017a640
Merge remote-tracking branch 'origin/ft-stateprep-qubit-perm' into ft…
inctechs 90357d6
reference based heuristic changed to reference fault sets and speed ups
inctechs 06ed523
define default for faulst set overlap check
inctechs 77b4155
Fix canonical permutation.
pehamTom 4a4688d
Merge remote-tracking branch 'origin/ft-stateprep-qubit-perm' into ft…
pehamTom 33970ba
Removed old variable.
pehamTom 945449a
Improve memory usage.
pehamTom 4f1dba3
Remove unnecessary stabilizer measurements in simulation.
pehamTom 599d0af
Indent
pehamTom 925ea2e
Merge branch 'standard-form-commutations' into ft-stateprep-qubit-perm
pehamTom f18def0
🎨 pre-commit fixes
pre-commit-ci[bot] ff4ac1d
update octagon distance 7 simulation circuits
inctechs f67bdb4
add scripts for distance 7 and private mac simulation
inctechs 3a4f838
new circuit folder structure and add hexagonal d7 circuits
inctechs 210ed96
correct simulation script and expand it to include hexagonal d7 circuits
inctechs d2901f4
change C3 and C4 of hexd7 code to be reproduceable
inctechs 18b6805
heuristic indep of SPC (only code) add 2 error check
inctechs c817945
clean up StatePreparationCircuit Class add variables to heuristic
inctechs 461ea1b
add variable descriptions
inctechs e3bb849
add fs overlap check to circuit and add Z logical to equivalence check
inctechs a8be98c
improve CNOT count of C4 for the distance 7 octagon code
inctechs 168fb96
remove unwanted csv files and change propabilities
inctechs 7d18b2f
add functionality to start z error sim
inctechs a1ceeb7
remove print statements when constructing heuristic circuit
inctechs 6e95f6c
Fix bug in simulator circuit construction.
pehamTom 588316a
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
pehamTom 6d28a6b
reinstate gaussian elimination, copy advanced logic
inctechs f07d5f4
clean up unused files and functions
inctechs 95b3ffa
set up GaussianElimination Class
inctechs cd8ab5e
Merge remote-tracking branch 'origin' into ft-stateprep-qubit-perm
inctechs 9c12af1
refactor heuristic elimination
inctechs 8d04cdf
add test file for gaussian elimination and first test
inctechs 5841154
🎨 pre-commit fixes
pre-commit-ci[bot] cf67d3d
remove Sympy from synthesis utils
inctechs 73c97bd
Merge remote-tracking branch 'origin' into ft-stateprep-qubit-perm
inctechs 0d97505
Merge branch 'ft-stateprep-qubit-perm' of https://github.com/cda-tum/…
inctechs ca943c4
solving mypy issues with sympy
inctechs ecfaa36
solve issue with qsample and pytest
inctechs de0580a
add integration test for basic elimination
inctechs 89022a9
fix typo
inctechs 3ea4ccb
add more tests
inctechs 93d78a7
add docstrings and typehints
inctechs fbab28e
fix first mypy issues
inctechs ab0172f
add to API functions for both reference based and regular SP
inctechs f2c06e1
🎨 pre-commit fixes
pre-commit-ci[bot] 0b84a10
Merge remote-tracking branch 'origin' into ft-stateprep-qubit-perm
inctechs cc68d86
Merge branch 'ft-stateprep-qubit-perm' of https://github.com/cda-tum/…
inctechs 8e2a37e
solve more mypy issues
inctechs 3262db8
fix final mypy issues in synthesis utils
inctechs c01e2a1
remove old legacy function after refactoring
inctechs 5427d4c
change name of penalty columns to penalty cnots
inctechs 31d37c7
change name from penalty cols to penalty cnots on state_prep.py
inctechs 0c9a4b6
remove mypy issues in synthesis_utils.py
inctechs bd463a9
remove legacy entry points to legacy function
inctechs 8c0e481
remove legacy function form encoding.py and swap it with class structure
inctechs 321d687
add pytest.ini to git ignore to keep locally neotest working
inctechs d7a5206
add required positional argument 'code' to GaussianElimination
inctechs 5d84f7a
Some minor refactoring.
pehamTom e05bf34
Removed unused method.
pehamTom 6f63f96
Merge branch 'main' into ft-stateprep-qubit-perm
pehamTom 70f5316
Add ideal qubits to noise model.
pehamTom fec9f2b
Added method to get unmeasured qubits of stim circuit.
pehamTom 0764a88
Start refactoring noisy simulation.
pehamTom 7734528
remove linter flag T201 for avoiding print removal
inctechs 597e51e
remove automorphism functionality from CSSCode class
inctechs c2efbd9
remove sympy dependency from pyproject.toml
inctechs 31a9c8d
delete stateprep docs (previously removed on the master)
inctechs 971c6ff
Refactor Simulation functionality.
pehamTom c15ddc7
Merge branch 'ft-stateprep-qubit-perm' of https://github.com/cda-tum/…
inctechs 3478a68
remove commented out code
inctechs 8cf2622
rename EliminationCNOTSynthesizer and API functions
inctechs 693867f
improve docstring of EliminationCNOTSynthesizer class
inctechs d699a12
rename _handle_stagnation to _reset_if_stuck
inctechs 2966b4c
update docstring of _is_reduced() method
inctechs 95de5b1
fix logical error in validate_inputs() method
inctechs f219dd2
fix type cast
inctechs 3ec3bf7
remove _modify_matrix_structure() method
inctechs 9e5d02a
separate greedy initialisation from fault set guided init
inctechs 41a6a23
Merge branch 'main' into ft-stateprep-qubit-perm
inctechs 6a9ed32
Merge branch 'main' into ft-stateprep-qubit-perm
inctechs 0f1ad6f
🎨 pre-commit fixes
pre-commit-ci[bot] 0b4696a
clean up repository and add personal playground directory
inctechs 1b6df83
correct false initialization of fault set arrays
inctechs 902d76c
TEMPORARILY remove standard form features to pass CI
inctechs c95e30f
fix double initialisation due to wrong order
inctechs 871655e
temp add unused code instance to pass test
inctechs 690dde1
adapt fault set handling to new PureFaultSet class structure
inctechs 82edb70
adapt method to new indexing of fault sets
inctechs e9b1a1a
Merge branch 'main' into ft-stateprep-qubit-perm
inctechs ea8382f
Delete ecc_qiskit_wrapper.py
inctechs f2714cf
fix mypy issues
inctechs 0f92bb8
add .qasm postfix to all circuit files to pass license hook
inctechs 0fa238d
allow pickle despite security warnings
inctechs 6ec2d45
temporarily allow testing of private methods
inctechs 35679d9
Merge branch 'ft-stateprep-qubit-perm' of https://github.com/cda-tum/…
inctechs 5d1ca34
fix error using variable prior to initialization
inctechs 873d805
remove commented out code
inctechs 59743f6
fix edge case of wrong error type parsed
inctechs 6fefe7a
fix bug that propagation matrix does not get updated
inctechs 81ff592
add plus state simulation capability
inctechs 6520ef2
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs d677437
prepare simulations
inctechs c1fafa2
change probabilities
inctechs 74a524f
add simulation results for 20,2,6 and rot surface code d5
inctechs 983903b
Merge remote-tracking branch 'origin' into ft-stateprep-qubit-perm
inctechs cfe031a
change simulation propability
inctechs df89fbf
Merge branch 'main' of https://github.com/munich-quantum-toolkit/qecc…
inctechs c1d78ae
add (repaired) stim circuit and check matrices of QECCs
inctechs 8d6746c
prepare simulation files for flag at origin sims
inctechs bf08cc3
update mac bash script for 0.001 sims
inctechs ea8ac5e
add 0.001 results for square octagon distance 7 code
inctechs 139cb75
Merge remote-tracking branch 'origin/main' into ft-stateprep-qubit-perm
inctechs d001d50
rename circuit and check matrix files for consitency
inctechs 3013bff
update fao simulation scripts to do remap of qubits
inctechs 5020d48
fix CSV files (comma was missing)
inctechs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
82 changes: 82 additions & 0 deletions
82
scripts/ft_stateprep/canonical_steane/estimate_canonical.py
This file contains hidden or 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,82 @@ | ||
| # Copyright (c) 2023 - 2025 Chair for Design Automation, TUM | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # Licensed under the MIT License | ||
|
|
||
| """Estimate logical error rate for CSS state preparation circuits for a given code and physical error rate.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import argparse | ||
|
|
||
| from mqt.qecc import CSSCode | ||
| from mqt.qecc.circuit_synthesis import SteaneNDFTStatePrepSimulator, heuristic_prep_circuit | ||
| from mqt.qecc.circuit_synthesis.state_prep import canonical_steane_type_prep_circuits, random_steane_type_prep_circuits | ||
| from mqt.qecc.codes import HexagonalColorCode, SquareOctagonColorCode | ||
|
|
||
| codes = {"golay": CSSCode.from_code_name("golay"), "hex": HexagonalColorCode(7), "sqoct": SquareOctagonColorCode(7)} | ||
|
|
||
|
|
||
| def main() -> None: | ||
| """Run the logical error rate estimation for a given code and physical error rate.""" | ||
| parser = argparse.ArgumentParser(description="Estimate logical error rate for CSS state preparation circuits") | ||
| parser.add_argument( | ||
| "code", | ||
| type=str, | ||
| help="Code for which to estimate logical error rate. Available codes: " + ", ".join(codes), | ||
| ) | ||
| parser.add_argument("-p", "--p_error", type=float, help="Physical error rate") | ||
| parser.add_argument("-n", "--n_errors", type=int, default=500, help="Number of errors to sample") | ||
| parser.add_argument( | ||
| "--perm", | ||
| type=str, | ||
| default="canonical", | ||
| help="Permutation for state preparation. Can be 'canonical' or 'random'", | ||
| ) | ||
| parser.add_argument( | ||
| "-e", "--error_type", type=str, default="X", help="Type of error to use for simulation. Can be 'X' or 'Z'." | ||
| ) | ||
|
|
||
| args = parser.parse_args() | ||
| code_name = args.code | ||
| if code_name in codes: | ||
| code = codes[code_name] | ||
| else: | ||
| raise ValueError("Code " + code_name + " not available. Available codes: " + ", ".join(codes)) | ||
|
|
||
| if args.perm == "canonical": | ||
| qc1, qc2, qc3, qc4 = canonical_steane_type_prep_circuits(code) | ||
| perm = "canonical" | ||
| elif args.perm == "random": | ||
| qc1, qc2, qc3, qc4, perm = random_steane_type_prep_circuits(code) | ||
| else: | ||
| raise ValueError("Permutation " + args.perm + " not available. Available permutations: 'canonical, random'") | ||
|
|
||
| sim = SteaneNDFTStatePrepSimulator( | ||
| qc1, qc2, code, qc3, qc4, check_circuit=heuristic_prep_circuit(code, zero_state=False).circ | ||
| ) | ||
| sim.set_p(args.p_error, args.p_error * 0.01) | ||
|
|
||
| if args.error_type == "X": | ||
| p_l, r_a, num_logical_errors, total_shots, p_l_error, r_a_error = sim.logical_error_rate( | ||
| min_errors=args.n_errors | ||
| ) | ||
| elif args.error_type == "Z": | ||
| p_l, r_a, num_logical_errors, total_shots, p_l_error, r_a_error = sim.secondary_logical_error_rate( | ||
| min_errors=args.n_errors | ||
| ) | ||
| else: | ||
| msg = "Error type should be either X or Z." | ||
| raise ValueError(msg) | ||
|
|
||
| print( | ||
| ";".join([ | ||
| str(x) for x in [args.p_error, p_l, r_a, num_logical_errors, total_shots, p_l_error, r_a_error, perm] | ||
|
||
| ]) | ||
| ) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() | ||
This file contains hidden or 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,21 @@ | ||
| #!/bin/bash | ||
| # Copyright (c) 2023 - 2025 Chair for Design Automation, TUM | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # Licensed under the MIT License | ||
|
|
||
| declare -a p=("0.001" "0.0015" "0.002" "0.0025" "0.003" "0.0035" "0.004" "0.0045" "0.005" "0.0055" "0.006" "0.0065" "0.007" "0.0075" "0.008" "0.0085" "0.009" "0.0095" "0.01") | ||
|
|
||
| echo "p;p_l;r_a;num_logical_errors;total_shots;p_l_error;r_a_error" > "$1.csv" | ||
|
|
||
| run_and_write() { | ||
| local res=$(python estimate_canonical.py ${@:2:$#-2} "-p" "${@: -1}") | ||
| local line="${@: -1};${res}" | ||
| (flock -e 200 echo $line >> "$1.csv") 200>lock | ||
| } | ||
|
|
||
| export -f run_and_write | ||
|
|
||
| parallel --load 16 --link run_and_write $@ ::: ${p[@]} |
This file contains hidden or 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 hidden or 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
18 changes: 18 additions & 0 deletions
18
scripts/ft_stateprep/eval_circ_mod/check_matrix/eve_20_2_6.txt
This file contains hidden or 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,18 @@ | ||
| XIIIIIIIIXIXXIXXXXII | ||
| IXIIIIIIIXIIXXIIXXXX | ||
| IIXIIIIIIIXXIXXIXXXI | ||
| IIIXIIIIIIXIXXXXIXIX | ||
| IIIIXIIIIXXIXIIIXXXX | ||
| IIIIIXIIIXIXIIXXXXIX | ||
| IIIIIIXIIIXXIXIXXXXI | ||
| IIIIIIIXIXIXIIIIIIXI | ||
| IIIIIIIIXIXIXXXXXIIX | ||
| ZIIIIIIIIZIZZIZZZZII | ||
| IZIIIIIIIZIIZZIIZZZZ | ||
| IIZIIIIIIIZZIZZIZZZI | ||
| IIIZIIIIIIZIZZZZIZIZ | ||
| IIIIZIIIIZZIZIIIZZZZ | ||
| IIIIIZIIIZIZIIZZZZIZ | ||
| IIIIIIZIIIZZIZIZZZZI | ||
| IIIIIIIZIZIZIIIIIIZI | ||
| IIIIIIIIZIZIZZZZZIIZ |
16 changes: 16 additions & 0 deletions
16
scripts/ft_stateprep/eval_circ_mod/check_matrix/flag_at_origin/cc_17_1_5.txt
This file contains hidden or 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 @@ | ||
| ZZZZIIIIIIIIIIIII | ||
| IZIZIIZZIIIIIIIII | ||
| IIIIZIIIZIIIZZIII | ||
| IIIIZZIIZZIIIIIII | ||
| IIZZIZZIIZZIIIZZI | ||
| IIIIIIZZIIZZIIIII | ||
| IIIIIIIIZZIIIZZII | ||
| IIIIIIIIIIZZIIIZZ | ||
| XXXXIIIIIIIIIIIII | ||
| IXIXIIXXIIIIIIIII | ||
| IIIIXIIIXIIIXXIII | ||
| IIIIXXIIXXIIIIIII | ||
| IIXXIXXIIXXIIIXXI | ||
| IIIIIIXXIIXXIIIII | ||
| IIIIIIIIXXIIIXXII | ||
| IIIIIIIIIIXXIIIXX |
18 changes: 18 additions & 0 deletions
18
scripts/ft_stateprep/eval_circ_mod/check_matrix/flag_at_origin/cc_20_2_6.txt
This file contains hidden or 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,18 @@ | ||
| ZZZZIIIIIIIIIIIIIIII | ||
| IIIIZZZZIIIIIIIIIIII | ||
| IIIIIIIIZZZZIIIIIIII | ||
| IIIIIIIIIIIIZZZZIIII | ||
| IIIIIIIIIIIIIIIIZZZZ | ||
| ZIIZIIZZIIZZZIIZIIII | ||
| IIIIZIIZIIZZIIZZZIIZ | ||
| ZIIZIIIIZIIZIIZZIIZZ | ||
| IIZZZIIZIIIIZIIZIIZZ | ||
| XXXXIIIIIIIIIIIIIIII | ||
| IIIIXXXXIIIIIIIIIIII | ||
| IIIIIIIIXXXXIIIIIIII | ||
| IIIIIIIIIIIIXXXXIIII | ||
| IIIIIIIIIIIIIIIIXXXX | ||
| XIIXIIXXIIXXXIIXIIII | ||
| IIIIXIIXIIXXIIXXXIIX | ||
| XIIXIIIIXIIXIIXXIIXX | ||
| IIXXXIIXIIIIXIIXIIXX |
24 changes: 24 additions & 0 deletions
24
scripts/ft_stateprep/eval_circ_mod/check_matrix/flag_at_origin/cc_25_1_5.txt
This file contains hidden or 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,24 @@ | ||
| IIIIZIIIIZIIIIIIIIIIIIIII | ||
| IIIIIIIIIIIIIIZIIIIZIIIII | ||
| IIIIIIIIZZIIIZZIIIIIIIIII | ||
| IIIIIIIIIIIIIIIIIIZZIIIZZ | ||
| IIZZIIIZZIIIIIIIIIIIIIIII | ||
| IIIIIIIIIIIIZZIIIZZIIIIII | ||
| IIIIIIZZIIIZZIIIIIIIIIIII | ||
| IIIIIIIIIIIIIIIIZZIIIZZII | ||
| ZZIIIZZIIIIIIIIIIIIIIIIII | ||
| IIIIIIIIIIZZIIIZZIIIIIIII | ||
| IIIIIZIIIIZIIIIIIIIIIIIII | ||
| IIIIIIIIIIIIIIIZIIIIZIIII | ||
| XXIIIIIIIIIIIIIIIIIIIIIII | ||
| IIXXIIIIIIIIIIIIIIIIIIIII | ||
| IXXIIIXXIIIIIIIIIIIIIIIII | ||
| IIIXXIIIXXIIIIIIIIIIIIIII | ||
| IIIIIXXIIIXXIIIIIIIIIIIII | ||
| IIIIIIIXXIIIXXIIIIIIIIIII | ||
| IIIIIIIIIIIXXIIIXXIIIIIII | ||
| IIIIIIIIIIIIIXXIIIXXIIIII | ||
| IIIIIIIIIIIIIIIXXIIIXXIII | ||
| IIIIIIIIIIIIIIIIIXXIIIXXI | ||
| IIIIIIIIIIIIIIIIIIIIIXXII | ||
| IIIIIIIIIIIIIIIIIIIIIIIXX |
30 changes: 30 additions & 0 deletions
30
scripts/ft_stateprep/eval_circ_mod/check_matrix/flag_at_origin/cc_31_1_7.txt
This file contains hidden or 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,30 @@ | ||
| ZIZIZZIIIIIIIIIIIIIIIIIIIIIIIII | ||
| ZZZZIIIIIIIIIIIIIIIIIIIIIIIIIII | ||
| IIIIZZIIZZIIIIIIIIIIIIIIIIIIIII | ||
| IIZZIZZIIZZIIIZZIIIIIIIIIIIIIII | ||
| IIIIIIZZIIZZIIIIIIIIIIIIIIIIIII | ||
| IIIIIIIZIIIZIIIIZZIIIIIIIIIIIII | ||
| IIIIIIIIIIIIZIIIIIZIIIIIZZIIIII | ||
| IIIIIIIIIIIIZZIIIIZZIIIIIIIIIII | ||
| IIIIIIIIZZIIIZZIIIIZZIIIIIZZIII | ||
| IIIIIIIIIIIIIIZZIIIIZZIIIIIIIII | ||
| IIIIIIIIIIZZIIIZZIIIIZZIIIIIZZI | ||
| IIIIIIIIIIIIIIIIZZIIIIZZIIIIIII | ||
| IIIIIIIIIIIIIIIIIIZZIIIIIZZIIII | ||
| IIIIIIIIIIIIIIIIIIIIZZIIIIIZZII | ||
| IIIIIIIIIIIIIIIIIIIIIIZZIIIIIZZ | ||
| XIXIXXIIIIIIIIIIIIIIIIIIIIIIIII | ||
| XXXXIIIIIIIIIIIIIIIIIIIIIIIIIII | ||
| IIIIXXIIXXIIIIIIIIIIIIIIIIIIIII | ||
| IIXXIXXIIXXIIIXXIIIIIIIIIIIIIII | ||
| IIIIIIXXIIXXIIIIIIIIIIIIIIIIIII | ||
| IIIIIIIXIIIXIIIIXXIIIIIIIIIIIII | ||
| IIIIIIIIIIIIXIIIIIXIIIIIXXIIIII | ||
| IIIIIIIIIIIIXXIIIIXXIIIIIIIIIII | ||
| IIIIIIIIXXIIIXXIIIIXXIIIIIXXIII | ||
| IIIIIIIIIIIIIIXXIIIIXXIIIIIIIII | ||
| IIIIIIIIIIXXIIIXXIIIIXXIIIIIXXI | ||
| IIIIIIIIIIIIIIIIXXIIIIXXIIIIIII | ||
| IIIIIIIIIIIIIIIIIIXXIIIIIXXIIII | ||
| IIIIIIIIIIIIIIIIIIIIXXIIIIIXXII | ||
| IIIIIIIIIIIIIIIIIIIIIIXXIIIIIXX |
34 changes: 34 additions & 0 deletions
34
scripts/ft_stateprep/eval_circ_mod/circuits/cc_4_8_8_d5/cc_4_8_8_d5_heuristic_0.qasm
This file contains hidden or 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,34 @@ | ||
| OPENQASM 2.0; | ||
| include "qelib1.inc"; | ||
| qreg q[17]; | ||
| h q[0]; | ||
| h q[1]; | ||
| h q[2]; | ||
| h q[3]; | ||
| h q[4]; | ||
| h q[5]; | ||
| h q[9]; | ||
| h q[10]; | ||
| cx q[4],q[8]; | ||
| cx q[10],q[15]; | ||
| cx q[4],q[6]; | ||
| cx q[9],q[15]; | ||
| cx q[5],q[12]; | ||
| cx q[4],q[7]; | ||
| cx q[3],q[14]; | ||
| cx q[2],q[6]; | ||
| cx q[14],q[16]; | ||
| cx q[10],q[13]; | ||
| cx q[9],q[11]; | ||
| cx q[8],q[5]; | ||
| cx q[3],q[7]; | ||
| cx q[1],q[4]; | ||
| cx q[0],q[2]; | ||
| cx q[12],q[9]; | ||
| cx q[1],q[13]; | ||
| cx q[0],q[3]; | ||
| cx q[15],q[8]; | ||
| cx q[6],q[16]; | ||
| cx q[5],q[11]; | ||
| cx q[4],q[10]; | ||
| cx q[2],q[14]; |
34 changes: 34 additions & 0 deletions
34
scripts/ft_stateprep/eval_circ_mod/circuits/cc_4_8_8_d5/cc_4_8_8_d5_heuristic_1.qasm
This file contains hidden or 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,34 @@ | ||
| OPENQASM 2.0; | ||
| include "qelib1.inc"; | ||
| qreg q[17]; | ||
| h q[0]; | ||
| h q[1]; | ||
| h q[2]; | ||
| h q[3]; | ||
| cx q[1],q[4]; | ||
| cx q[3],q[7]; | ||
| h q[8]; | ||
| cx q[8],q[5]; | ||
| cx q[8],q[7]; | ||
| cx q[5],q[11]; | ||
| cx q[11],q[4]; | ||
| h q[12]; | ||
| h q[13]; | ||
| cx q[13],q[10]; | ||
| cx q[4],q[10]; | ||
| cx q[3],q[14]; | ||
| h q[15]; | ||
| cx q[15],q[9]; | ||
| cx q[12],q[9]; | ||
| cx q[13],q[15]; | ||
| cx q[1],q[13]; | ||
| cx q[15],q[8]; | ||
| cx q[9],q[11]; | ||
| cx q[2],q[16]; | ||
| cx q[2],q[6]; | ||
| cx q[0],q[2]; | ||
| cx q[0],q[3]; | ||
| cx q[2],q[14]; | ||
| cx q[5],q[6]; | ||
| cx q[12],q[5]; | ||
| cx q[7],q[16]; |
34 changes: 34 additions & 0 deletions
34
scripts/ft_stateprep/eval_circ_mod/circuits/cc_4_8_8_d5/cc_4_8_8_d5_heuristic_2.qasm
This file contains hidden or 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,34 @@ | ||
| OPENQASM 2.0; | ||
| include "qelib1.inc"; | ||
| qreg q[17]; | ||
| h q[0]; | ||
| h q[1]; | ||
| h q[2]; | ||
| h q[3]; | ||
| h q[4]; | ||
| h q[5]; | ||
| h q[9]; | ||
| h q[10]; | ||
| cx q[4],q[8]; | ||
| cx q[10],q[15]; | ||
| cx q[4],q[6]; | ||
| cx q[9],q[15]; | ||
| cx q[5],q[12]; | ||
| cx q[4],q[7]; | ||
| cx q[3],q[14]; | ||
| cx q[2],q[6]; | ||
| cx q[14],q[16]; | ||
| cx q[10],q[13]; | ||
| cx q[9],q[11]; | ||
| cx q[8],q[5]; | ||
| cx q[3],q[7]; | ||
| cx q[1],q[4]; | ||
| cx q[0],q[2]; | ||
| cx q[12],q[9]; | ||
| cx q[1],q[13]; | ||
| cx q[0],q[3]; | ||
| cx q[15],q[8]; | ||
| cx q[6],q[16]; | ||
| cx q[5],q[11]; | ||
| cx q[4],q[10]; | ||
| cx q[2],q[14]; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.