-
Notifications
You must be signed in to change notification settings - Fork 27
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
185
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.
Conversation
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
instead of just checking all flag qubits to be 0, one can also check if the resulting measurement correspond to the logical 0 state
Print statements are automatically removed by the formatter. Temporarily disable this for debugging purpose.
this utility function returns the whole automorphism subgroup of the symmetric group based on the given generators of the automorphism group
This function as of now goes through all permutations and checks how many faults overlap in the corresponding fault sets for each permutation.
given a list of qubit indices, add a penalty to each corresponding col of the cost matrix such that those CNOTs are applied later
long-term: reconsider if the EliminationCNOTSynthesizer class needs the code instance. There might be situations where it is not necessary and hence should be avoided to require the code at initialization.
this might need bigger rethinking, so far I am handling the fault sets as initially only as numpy arrays should that stay like this or change?
there is no zero fault set anymore. the 0 fault set element is now the single error fault sets which was before the '1' element in the list
Signed-off-by: Erik Weilandt <[email protected]>
Deleted as requested by comment in code review.
only self created files are used here
this should be discussed again, if we want to keep the tests or only test api functions here. further changes: allow for scenario parameter as this help readability and add module docstring.
…mqt-qecc into ft-stateprep-qubit-perm
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
add circuits for rotated surface code d=5 and [[20,2,6]] code
…into ft-stateprep-qubit-perm
Those are circuits from the Flag at Origin work that we compare against.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
We are trying to improve the fault-tolerant state preparation circuits by using code symmetries and/ or restructuring of circuits.
Checklist: