Pymatching Decoding with Detection events #57
Unanswered
apassenger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am running distance 3 surface code with 3 rounds:
Here is the parity check matrix of X stabilizers for distance three surface code:
My syndrome measurements are as follows:
So the detection events at the end of the third round is:
detection_events = [0,0,1,1,0,0]
(because at the end of the all rounds, syndrome 1,2,5 and 6 stayed same so they did not get affected by errors so detection is 0. However, syndrome3 and 4 changed) Now in Pymatching: I can simply say:m3x = Matching(H_d3x)
But then, for decoding errors, should I say
xdecode = list(reversed(m3x.decode(detection_events)))
? or Should I give the syndrome measurements instead of detection event?If I say
xdecode = list(reversed(m3x.decode(detection_events)))
, then when I printxdecode
, I get this result: x decoded: [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0]. Is this result corresponds to the correction?Thanks in advance,
Bests
Beta Was this translation helpful? Give feedback.
All reactions