CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◌ Quantum Computing Jul 24, 2024

Open-source code for Lattice Surgery in STIM

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

I'm looking for open-source code that implements lattice surgery merging and splitting between two rotated surface code logical qubits in STIM (for d=3 or above). Whilst there are some excellent explanations on this site (thank you users Craig Gidney and "control freak"), I'm struggling to correctly implement lattice surgery in STIM. Mostly, this is because of the complexity and finickiness of implementing the merge and split operations and ensuring I introduce/remove detectors appropriately. It

Full text archived locally
✦ AI Summary · Claude Sonnet


    Open-source code for Lattice Surgery in STIM Ask Question Asked 1 year, 9 months ago Modified today Viewed 2k times 2 I'm looking for open-source code that implements lattice surgery merging and splitting between two rotated surface code logical qubits in STIM (for d=3 or above). Whilst there are some excellent explanations on this site (thank you users Craig Gidney and "control freak"), I'm struggling to correctly implement lattice surgery in STIM. Mostly, this is because of the complexity and finickiness of implementing the merge and split operations and ensuring I introduce/remove detectors appropriately. It does not help that I am new to QEC either. What I'm looking for seems to be a fairly textbook situation - which is why I hope there's open source code out there (or perhaps a very detailed step-by-step explanation). Ideally, I'd like to use code to modify the error rates of seam operations to understand how that affects (for example) logical qubit teleportation using lattice surgery. Thank you. stimlattice-surgery Share Improve this question Follow edited Jul 24, 2024 at 22:54 asked Jul 24, 2024 at 22:49 ebit157 656 6 bronze badges Add a comment 2 Answers Sorted by: Highest score (default) Date modified (newest first) Date created (oldest first) 3 One the example circuits in crumble is a surface code lattice surgery circuit. You can get the stim circuit by opening that example and hitting "Show Import/Export". Share Improve this answer Follow answered Jul 25, 2024 at 0:46 Craig Gidney 51.5k1 1 gold badge 53 53 silver badges 134 134 bronze badges Add a comment -1 thanks for the d=3 lattice surgery circuit. does anyone happen to have/know of higher distance lattice surgery circuits in stim Share Improve this answer Follow answered 3 hours ago Ojas Sandeep Joshi 1 New contributor 1 Don't post a "thank you" or a new question in the place for posting answers. If you have a new question, post it as a question using the "Ask Question" button on the main page. –  hft Commented 2 hours ago 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 stimlattice-surgery See similar questions with these tags. The Overflow Blog Lights, camera, open source! Black box AI drift: AI tools are making design decisions nobody asked for Related 6 Measuring entanglement entropy using a stabilizer circuit simulator 2 Stim: Peek (or Extract) Circuit Pauli Frame 2 Lattice Surgery: how does lattice merging act on the physical qubits? 2 High logical error rates when implementing Lattice Surgery with Stim 1 For lattice-surgery. How to move a logical qubit back to its original position after applying a logical H gate 4 Why are there different Implementations of the CX Gate through Lattice-Surgery? 2 Why are the thresholds for the rotated surface code vs. lattice surgery different? 1 Surface Code Lattice Surgery CNOT Logical Gate Hot Network Questions Does the AIM-120 have IFF? European Computer Modern-like font that allows for bold italic smallcaps (textsc)? What can be done Backwash Water Contamination Issue, and how long could it last? What story about a basketball is Jack McDevitt referring to in his introduction to the collection "Cryptic"? Can Geometry Nodes instances be applied without Realize Instances or losing instancing? Switching a relay from an ESP32 Why does Lean4 use intensional Type Theory when its definitional equality is undecidable anyways? What kind of word is "genie"? Security of ECDSA with external message hashing Songbook with chords Different usages of the term 'closed' Is \textit now long, instead of short? Can I effectively fix a stiff faucet handle without replacing the entire cartridge? Faraday's Ice Pail Experiment with Large Hole Any way to retrieve StoryMill articles and convert to anything else? Use a magnetic field to insolate spacecraft from heat of the reentry plasma Asymptotic behaviour of difference set of smooth numbers How does the Catholic Church handle verses that imply there is no one like God? What is the title of this movie? (Song "Il Faut Toujours Un Perdant" by the famous singer Julio Iglesias) Why are gallons and cubic inches both used to measure liquid volume? What is the historical origin of this redundancy? If a shell runs "exec" to start my graphical session, why do I still see that shell in the process list? The emacs-28.2 equivalent of "iso-acc.el", specifically regarding the "nonascii-insert-offset" variable? split data in different units for GNN Are there alternatives to GPG for creating GPG-compatible keys and signing stuff? 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
    Jul 24, 2024
    Archived
    Apr 25, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗