-
Notifications
You must be signed in to change notification settings - Fork 49
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
adding iscss for issue #222 #241
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #241 +/- ##
==========================================
+ Coverage 82.60% 88.02% +5.41%
==========================================
Files 56 42 -14
Lines 3749 3324 -425
==========================================
- Hits 3097 2926 -171
+ Misses 652 398 -254 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for starting this! Please read a bit more on multiple dispatch and methods in julia and restructure appropriately (see related comments)
And this probably needs some tests. E.g. for each code check what |
I thought this was not needed because the stabilizer has the knowledge as you said. Only, tests are to be remaining so, now I need to use an algorithm that check whether H matrix is in CSS form? Can the stabilizer knowledge can be used here or it's an expensive method, I need to look for a general algorithm in literature? |
The point of tests is to check whether such assumptions or internal constants are correct. It is not something that runs when the user is using the library, rather it is for the developers to check whether they have made an error (e.g. like setting |
It is a simple check, not something that you need to look up in the literature. For each row of a parity check tableau check whether it contains a mix of X and Z. As long as they do not, it is a CSS code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is getting pretty close. I left a few comments.
I also see you are making a ton of small commits just as you are working through things. It helps to do the following:
|
Co-authored-by: Stefan Krastanov <[email protected]>
do not worry about the buildkite failure -- it will work again after a few new version registrations get propagated through the ecosystem |
Thanks for your comments. I will keep this in mind All the requested changes are done. |
There are two rather minor issues, but they are also issues that are simply due to inattentiveness, not to some big conceptual problem. Please make sure you reread your code closely before submitting for reviews -- It is important to build up the habit to detect this type of minor issues on your own. |
Minor issues are dealth with |
I made a minor rephrasing in the changelog. I will wait for the tests and then merge. Thank you, having this done is very helpful! |
Be more careful with title and references. This closes issue 222, not issue 212. A bit too late to change the commit message now, so we can just close it manually. |
Thank you as well! |
Given the stabilizer has the knowledge, the
isscss
function is implemented.