-
Notifications
You must be signed in to change notification settings - Fork 47
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
beginning of biased pauli noise for PF sim #295
beginning of biased pauli noise for PF sim #295
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #295 +/- ##
==========================================
- Coverage 83.01% 82.24% -0.77%
==========================================
Files 61 61
Lines 4033 4067 +34
==========================================
- Hits 3348 3345 -3
- Misses 685 722 +37 ☔ View full report in Codecov by Sentry. |
yeah, tests fail, so I have definitely done something silly. Should have waited for tests to pass before pinging you |
it is fixed now |
What error did the change to Real cause? |
marking this as a draft just to make my review queue a bit more manageable. Mark it as finished when ready for review. |
Float is a Real so when you do A cleaner solution than both what I have written and what you have written is to specify the type for the constructor:
Or even better, something that does not hardcode Float64
So the cleanest solution should be something along the lines of
|
Ah, I see! I'll try to fix this later today, using what you suggested, thanks! |
Your code worked as provided! Thanks! With that, I think everything works. I checked for a few codes that doing PauliError(qubit, p) after decoding results in the same logical vs physical error rate plots as PauliError(qubit, p/3, p/3, p/3). For some CSS codes, I also checked that the X and Z logical error corresponding to those simulations also matches doing PauliError(qubit, p*2/3, 0, 0) and PauliError(qubit, 0, 0, p*2/3) correspondingly (and the other X/Z logical error is 0). Similarly, PauliError(qubit, 0, p*2/3, 0) gives the same performance as PauliError(qubit, p). |
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.
could you also update the changelog
Co-authored-by: Stefan Krastanov <github.acc@krastanov.org>
Co-authored-by: Stefan Krastanov <github.acc@krastanov.org>
Co-authored-by: Stefan Krastanov <github.acc@krastanov.org> Co-authored-by: Stefan Krastanov <stefan@krastanov.org>
This is the code that was mentioned in our Zulip messages. One note, it seemed to be that line 41 in the noise.jl,
n = nqubits(s)
wasn't doing anything, so I went ahead and deleted that in addition to the functions I added.As mentioned over Zulip, because of the error, this code is untested, aside from being able to generate the object from the Julia REPL.