Test generality with Shor [[9, 1, 3]]#2928
Open
lillian542 wants to merge 161 commits into
Open
Conversation
Co-authored-by: Joey Carter <joey.snarrcarter@gmail.com>
Contributor
|
Hello. You may have forgotten to update the changelog!
|
(Probably from an unresolved merge conflict...)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2928 +/- ##
==========================================
+ Coverage 96.97% 96.99% +0.02%
==========================================
Files 166 166
Lines 19209 19248 +39
Branches 1788 1799 +11
==========================================
+ Hits 18628 18670 +42
+ Misses 429 427 -2
+ Partials 152 151 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- Update known limitations - Update old transversal-gate def usage
Contributor
|
@lillian542 It turned out that some fairly large changes were required to support the Shor code in the QEC pipeline. Below is a quick summary to help navigate the three main changes I've made:
|
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.
Context:
The initial implementation is limited to CSS codes with k=1 (but written with extensibility to k>1 in mind). However, in-depth testing has focused on the Steane code, since we can define a complete Clifford+T gate set for this code, and it is small enough to run on
lightning.qubitwith noise and validate that everything is working.Because of this, there is a risk that we've made assumptions that are specific to the Steane code. To identify these, we would like to test with another small k=1 CSS code.
The LUT decoder is hardcoded to [7, 1, 3] right now, so we can't validate executing a circuit now - that will come later. This PR focuses on validating that compilation works as expected.
Description of the Change:
We define Shor's 9-qubit repetition code in the
QecCoderegistry, and test that compiling with it behaves as expected.This identified two places where we've made incorrect assumptions:
QecCodedefinition, the format for defining the unitary encoder is not flexible enough; it currently assumes every enocder will consist of Hadamards followed by CNOTs, rather than allowing these gates to be interspersed (or allowing additional gates)These assumptions are corrected in this PR.
Benefits:
The generality of our implementation for k=1 CSS codes is tested to some extent.
Possible Drawbacks:
Here we balance a desire for additional validation with time constraints.
[sc-119895]