How to get Stim Dem for non-deterministic detectors/observables?
Quantum Computing SEArchived Apr 15, 2026✓ Full text saved
I have this unphysical circuit circuit = stim.Circuit(''' Y_ERROR(.1) 0 MPP X0 MPP Z0 DETECTOR rec[-2] DETECTOR rec[-1] OBSERVABLE_INCLUDE(0) rec[-2] ''') I wish to get stim.DetectorErrorModel(''' error(.1) D0 D1 L0 ''') I know stim.Circuit.detector_error_model forbid such non-deterministic detectors/observables, but stim.FlipSimulator can sample the flips of them. How can I construct a Dem for them, e.g., by doing the following with existing stim utilities? Enumerate all the error mechanisms Ca
Full text archived locally
✦ AI Summary· Claude Sonnet
How to get Stim Dem for non-deterministic detectors/observables?
Ask Question
Asked today
Modified today
Viewed 6 times
0
I have this unphysical circuit
circuit = stim.Circuit('''
Y_ERROR(.1) 0
MPP X0
MPP Z0
DETECTOR rec[-2]
DETECTOR rec[-1]
OBSERVABLE_INCLUDE(0) rec[-2]
''')
I wish to get
stim.DetectorErrorModel('''
error(.1) D0 D1 L0
''')
I know stim.Circuit.detector_error_model forbid such non-deterministic detectors/observables, but stim.FlipSimulator can sample the flips of them. How can I construct a Dem for them, e.g., by doing the following with existing stim utilities?
Enumerate all the error mechanisms
Calculate the flip of detectors/observables by each mechanism
Merge mechanisms with identical flips and merge their probabilities
error-correctionstim
Share
Improve this question
Follow
edited 2 hours ago
asked 2 hours ago
Rui Chao
1
New contributor
Add a comment
1 Answer
Sorted by:
Highest score (default)
Date modified (newest first)
Date created (oldest first)
0
Use stim.Circuit.detector_error_model(allow_gauge_detectors=True) to allow non-deterministic detectors while producing a dem. It will insert 50% probability error mechanisms to represent the gauges.
Beware that most of stim does not support gauges. Basically the only place it works is the conversion into a detector error model.
Share
Improve this answer
Follow
answered 15 mins ago
Craig Gidney
51.4k1
1 gold badge
53
53 silver badges
133
133 bronze badges
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-correctionstim
See similar questions with these tags.
The Overflow Blog
Who needs VCs when you have friends like these?
Related
3
How can I decide ahead of time whether a Stim detector will be deterministic?
1
Issues measuring x-stabilizers in the first round of a z focused stim surface code
1
Motivation for simulating multiround syndrome extraction circuits for quantum error correction code
0
Calculating the weights of error mechanisms in stim
1
How does OBSERVABLE_INCLUDE work?
1
Forward propagate an error in Stim
3
Understanding the relationship between detectors and the observables after backwards propagation
1
Calculation of error probability in detector error model
2
Detector error model for a circuit with post selections
Hot Network Questions
Which tuning system did Mozart assume when composing his recitatives?
What is the problem due to Dan Anderson and reportedly settled by AI?
Confused about the Logical Validity of the "Horse Trainer" Analogy in Plato’s Apology (25b-c)
Can you still receive trading cards for a game if you unmark it as private?
Manhua set in the future, where the female lead is a secret food blogger and her fiancé cheats on her with her younger half-sister
Solving cyclic overlap of occlusion for triangles
What's the best tool for testing cables with an open circuit core?
Output a Sturmian sequence
Finding a PCB connector for this OLED display FPC interface
How can I write a function to remove FrameLabel and FrameTicks of a ListPlot?
Modelling/aligning tubular parts
Can we classify all "teetotal" topoi?
hex viewer output
"A'c and G'c"- Sequences (Keep them simple and positive)
How can democracies build resilience when letting hard left/hard right regimes assume power?
How must a 19th Century hotel be redesigned to use gas elevators instead of electric elevators?
Does God breathing the “breath of life” into Adam (Genesis 2:7) foreshadow resurrection and restored immortality?
Password checker
Should this cement crack along the inside wall of my garage be filled?
Is there a camera plugin for macOS to appear to be looking straight at the camera?
Copyright for posthumously published books
more hot questions
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