-
Notifications
You must be signed in to change notification settings - Fork 4
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
Problem In CheckMatrix #1
Comments
Thanks for flagging this. Of course this issue will only arise for a code/circuit with distance at most 2 by definition, but it would still be good to handle it correctly. I could imagine two similarly valid approaches:
I would like to have both as options, and am leaning towards having (2) as the default (with an option like |
Thanks for the reply! As stim already merges errors if they flip the same detectors and observables in the dem, why is there a need to remerge the errors? (at least to implement solution 2.) |
Hi @oscarhiggott,
First thank you for putting this useful library on github! I think I found a bug, here is a minimal working example:
I have a dem that looks like this
If D0 is triggered, we would expect the decoder to always choose error(0.01) D0 and to not predict that L0 was triggered. However, when running the code, the observable is always predicted as True.
I dug a bit into the source code, and I think the reason for this is that in decoder._matrices.check_matrix, the two error mechanism are merged, with a prior probability which is the sum of the two. And in it the same in decoder._matrices.observables_matrix.
Thank you
The text was updated successfully, but these errors were encountered: