CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◌ Quantum Computing Mar 25, 2026

In Stim, how to convert a measurement record relative offset to its absolute offset?

Quantum Computing SE Archived Mar 25, 2026 ✓ Full text saved

Referring to this stackoverflow question , it appears very useful, when using a TableauSimulator in multiple passes, to derive the absolute offset of a measurement record of a detector target, e.g.: k = len(measurement_record) + t.value Indeed, this allows the developer to understand, for each detector target, what its value is after simulation. Unfortunately, it seems to me that this line is susceptible to errors, at least in the following context: let's assume I do multiple decoding rounds, an

Full text archived locally
✦ AI Summary · Claude Sonnet


    In Stim, how to convert a measurement record relative offset to its absolute offset? Ask Question Asked today Modified today Viewed 2 times 0 Referring to this stackoverflow question, it appears very useful, when using a TableauSimulator in multiple passes, to derive the absolute offset of a measurement record of a detector target, e.g.: k = len(measurement_record) + t.value Indeed, this allows the developer to understand, for each detector target, what its value is after simulation. Unfortunately, it seems to me that this line is susceptible to errors, at least in the following context: let's assume I do multiple decoding rounds, and only use the TableauSimulator after N rounds. The t.value component of the detector targets is relative to when the measurement instruction has been first scheduled. Multiple rounds will have the same t.value components, even if they refer to distinct measurements in time. This is due to the fact that we only have relative offsets. It seems to me that there is no easy bijection between the measurement record and the entries of the current_measurement_record() output. Is there any official way, in Stim, to derive this correspondence between a given Detector Target and its absolute offset in the current_measurement_record() output array? I understand that it may be "easy to derive by hand", but, to avoid programming mistakes and because of its usefulness, I wonder whether the Stim API actually supports this and I may have missed it. stim Share Improve this question Follow asked 1 hour ago Marco Venere 1 New contributor Add a comment Know someone who can answer? Share a link to this question via email, Twitter, or Facebook. 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 stim See similar questions with these tags. The Overflow Blog Multi-stage attacks are the Final Fantasy bosses of security Linked 1 Sample detection events with TableauSimulator Related 2 How to convert tableau representation of random clifford gate into its matrix representation using stim? 0 Stim : How to use gates multiplied by a constant or how to convert between Y and XZ 2 How to convert Tableau to Circuit in stim 0 Convert cirq circuit to stim cirq in a compact style 1 Modelling correlated measurement errors in Stim 1 How to convert stim encoder circuit to a parity check matrix? 0 Understanding how Stim stores measurement records (to be used in detectors) 4 How to convert stim circuit to a detector check matrix and a logical observable matrix? 2 Stim: How do you model a “delayed-erasure” event whose exact spacetime position is uncertain? 3 Trouble understanding injection and cultivation stim circuits at low distance (d1=3) Hot Network Questions Whisper tones tend to break rules of flute acoustics. Why? Can non-matter, non-spell effects pass through a box-shaped Forcecage? Surreal Veblen hierarchy Does Luke 21:38 Imply the Jews Generally Accepted Jesus? Why didn't they take Rocky's ship when "fishing" for predators? 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
    💬 Team Notes
    Article Info
    Source
    Quantum Computing SE
    Category
    ◌ Quantum Computing
    Published
    Mar 25, 2026
    Archived
    Mar 25, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗