New answers tagged

1 vote
Accepted

Implementing large-area correlated errors in Stim

You should use stim.FlipSimulator or stim.TableauSimulator for error models with huge numbers of terms. The circuits explicitly ...
Craig Gidney's user avatar
  • 34.9k
1 vote

Measuring observables in the $[\![5,3,1]\!]$ code with stim

There are two problems you're running into: initialization and hook errors. These are common problems to run into when considering full circuit noise. Hook Errors Suppose an X error occurs on the ...
Craig Gidney's user avatar
  • 34.9k
0 votes
Accepted

Why logical X_L measurements for planar code seems to be non-deterministic in stim

It's hard to answer your question without the entire circuit. The logical X observable is only deterministic if you are in the logical plus or logical minus state. My best guess at what is happening (...
Peter-Jan's user avatar
  • 1,294
2 votes
Accepted

What is the best way to parallelise processes across multiple cores when computing logical error rates with Stim and PyMatching?

(Sounds like you want sinter. In particular you should check out sinter.collect. It's for exactly this task, but supports additional features such as the ability to ...
Craig Gidney's user avatar
  • 34.9k
1 vote
Accepted

How to track back which error occurred during DEPOLARIZE mechanism in a stim circuit

There's an open issue to add this to Stim, so no it doesn't exist. At the moment, the closest you can get is to sample the detector error model using ...
Craig Gidney's user avatar
  • 34.9k
1 vote

Sequential circuit sampling with properties of previous circuit round fixed

Stim's samplers have no notion of making or restoring checkpoints halfway through a circuit. Typically you just take shots from the entire circuit, and analyze it as a whole. If you need more ...
Craig Gidney's user avatar
  • 34.9k
1 vote
Accepted

How can I use surface code measurement data produced with Qiskit to run matching algorithms (e.g. PyMatching)?

If you can build your noiseless circuit as a stabilizer circuit, specifically as a stim circuit with DETECTOR and ...
Craig Gidney's user avatar
  • 34.9k
0 votes

Simulating any stabilizer code

To supplement @Craig Gidney's answer, the TQEC project is under development for the purpose of assisting researchers who build error-correcting circuits. This project takes Stim as a dependency in ...
Sam Burdick's user avatar
2 votes

Simulating any stabilizer code

Yes, Stim needs you to explain your code as a circuit, so you end up needing things like encoders. However, nothing stops you from making the encoding circuit just a series of ...
Craig Gidney's user avatar
  • 34.9k
1 vote
Accepted

Correlated errors in Stim

Stim doesn't have good facilities for time-correlated errors. For your case you can use an ancilla qubit as a hacky error storage bit: ...
Craig Gidney's user avatar
  • 34.9k

Top 50 recent answers are included