WIP: FT State Preparation Through Code Symmetries#377
Draft
WIP: FT State Preparation Through Code Symmetries#377
Conversation
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
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 <48921674+inctechs@users.noreply.github.com>
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.
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
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: