Is the error correction of Steane code with PyMatching meaningful?
Quantum Computing SEArchived Mar 16, 2026✓ Full text saved
I am interested in QEC in quantum computer. By using Stim, I tried to correct errors in Steane code. Steane code is equivalent to the Color code in case, num_data_qubits = 7. There is an example code of the Color code in Stim/doc/getting-started.ipynb. Here is an example, ''' import stim import numpy as np import pymatching # ... circuit = stim.Circuit.generated( "color_code:memory_xyz", rounds=5, distance=3, before_round_data_depolarization=0.03, before_measure_flip_probability=0.01) detector_e
Full text archived locally
✦ AI Summary· Claude Sonnet
Is the error correction of Steane code with PyMatching meaningful?
Ask Question
Asked 7 days ago
Modified 7 days ago
Viewed 78 times
1
I am interested in QEC in quantum computer. By using Stim, I tried to correct errors in Steane code. Steane code is equivalent to the Color code in case, num_data_qubits = 7. There is an example code of the Color code in Stim/doc/getting-started.ipynb. Here is an example,
'''
import stim
import numpy as np
import pymatching
# ...
circuit = stim.Circuit.generated(
"color_code:memory_xyz",
rounds=5,
distance=3,
before_round_data_depolarization=0.03,
before_measure_flip_probability=0.01)
detector_error_model = circuit.detector_error_model(decompose_errors=True)
display(detector_error_model.diagram("matchgraph-svg"))
# ...
'''
This runs well without error messages. In that example, after matching procedure, the weighted edges graph has a closed triangle edges to specify a single qubit error. It is not an edge which comes from a pair wise nodes. Therefore if the PyMatching is limited to pair wise nodes, I wonder if the outcome of this example is meaningful?
error-correctionstimpymatching
Share
Improve this question
Follow
edited Mar 9 at 5:49
Mert Gökduman
3942
2 silver badges
18
18 bronze badges
asked Mar 9 at 2:51
Naohito Nakazawa
133
3 bronze badges
@Mert Gökduman, thank you for your review. –
Naohito Nakazawa
Commented
Mar 9 at 5:57
Add a comment
1 Answer
Sorted by:
Highest score (default)
Date modified (newest first)
Date created (oldest first)
1
No, pymatching is not handling this case correctly.
This is one of the problems with pymatching (in my opinion). When it sees an error mechanism it doesn't understand, it simply ignores that error. The data error on the central qubit, that has three detection events associated, is simply being ignored. It's failing silently instead of loudly.
Share
Improve this answer
Follow
answered Mar 9 at 19:46
Craig Gidney
51.2k1
1 gold badge
53
53 silver badges
133
133 bronze badges
Thank you for your reply, @CraigGidney. –
Naohito Nakazawa
Commented
Mar 9 at 20:30
Add a comment
Your Answer
Sign up or log in
Sign up using Google
Sign up using Email and Password
Post as a guest
Name
Email
Required, but never shown
Post Your Answer
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Ask question
Explore related questions
error-correctionstimpymatching
See similar questions with these tags.
The Overflow Blog
Open source for awkward robots
Domain expertise still wanted: the latest trends in AI-assisted knowledge for...
Featured on Meta
Logo updates to Stack Overflow's visual identity
Related
2
How does Steane code use the classical Hamming code for error correction?
3
In error correction code why don't we imitate the Hamming code instead of the complicated Steane code?
1
Using PyMatching for CSS code with more than two Stabilizers per qubit
1
Using Deterministic Errors in Stim Detector Circuit and decoding with Pymatching: X_ERROR(1) failing in PyMatching
0
`predictions` and `fault_ids` in Stim and PyMatching for surface code decoding
1
PyMatching in presence of qubit error for the repetition code
3
pymatching for rotated surface code
1
Get a correction (
e
𝑒
) that satisfies
H.e=s
𝐻
.
𝑒
=
𝑠
from pymatching
Hot Network Questions
Mirror stopped working
Cockroach carrying a spy video camera in a movie?
AI overview in normal Firefox window but not in Private Window
What knowledge to take from this major upgrade (Debian 12 to 13) where I've faced some troubles?
Why is there a dash before "tu" in "Quel quartier préfères‑tu ?"
Space Knights, radiation treatment that froze their growth cells
Which Elder Scrolls location is this?
How do I set a static IP on startup?
How can I diff two huge (250MB+) XML files with only minor changes?
how to re-enable an ejected thumbdrive
Would the federal government receiving money from brokering a business takeover be a breach of the Hatch Act?
Best way to control a voltage divider using GPIO
What happens when a defendant pleads neither innocent nor guilty?
Vertical asymptote
Arbitrary precision calculator for π in Python using only integer arithmetic
Wrap bracelets around a cube
Is there a real function whose graph intersects every circle, no matter how big or small?
Pi Day: estimating pi using probability
What does "Probability content" of an interval mean?
About the Dwarapalakas of other deities
How do I solve the Alignment Control Centre puzzle?
Negative form of imperative nasai form
LTSpice model of IRF520 body diode
Physics behind pyrite's metallic shine?
Question feed
By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. By exiting this window, default cookies will be accepted. To reject cookies, select an option from below.
Customize settings
Cookie Consent Preference Center
When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Cookie Policy
Accept all cookies
Manage Consent Preferences
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Targeting Cookies
Targeting Cookies
These cookies are used to make advertising messages more relevant to you and may be set through our site by us or by our advertising partners. They may be used to build a profile of your interests and show you relevant advertising on our site or on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device.
Performance Cookies
Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Functional Cookies
Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Cookie List
Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label
Necessary cookies only Confirm My Choices