As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

0 votes

Inverted memory X and memory Z logical error rates for unrotated surface code in Stim?

I don't know what's causing that inversion but... The two extra hadamards for X-type stabilisers mean a higher depth circuit with more chance for an error, causing a higher logical error rate in a ...
Craig Gidney's user avatar
  • 30.3k
0 votes

Handling lots of data points in Sinter Graphing

You can use the plot_args_func argument of sinter.plot_error_rate to customize how the lines look. It should return a dictionary ...
Craig Gidney's user avatar
  • 30.3k
1 vote
Accepted

Sinter: save detection counts

No, there's no support for this in sinter. That said, it's relatively easy for you to just sample the detection counts on your own: ...
Craig Gidney's user avatar
  • 30.3k
2 votes
Accepted

What's hook error in surface code?

A hook error is an error that occurs in the middle of a stabilizer measurement cycle, producing symptoms that would require multiple data errors when not in the middle of the cycle. For example, one ...
Craig Gidney's user avatar
  • 30.3k
1 vote

How to resolve ValueError: The circuit contains non-deterministic observables

Having non-deterministic observables or detectors is one of the most common and difficult errors you will encounter when using Stim. I call it difficult because it's a mistake in your circuit but ...
Craig Gidney's user avatar
  • 30.3k
2 votes
Accepted

Are there qiskit or stim examples of how to decode a subsystem code

The main concept you need to know, to encode a subsystem code into Stim, is that Stim circuits have no concept of a "code". But Stim circuits understand producing detection events by xoring ...
Craig Gidney's user avatar
  • 30.3k
0 votes

Differences in Simulating Syndrome Measurement Circuits with Prepared States : $|0_L \rangle$ vs $|0\rangle^{\otimes n}$

All qubits starts in the $|0\rangle$ state at the start of the circuit, so operations that noiselessly measure Z observables or stabilizers at the beginning are effectively no-ops. Operations like <...
Craig Gidney's user avatar
  • 30.3k
0 votes

Modelling correlated measurement errors in Stim

Currently, the only way to have a correlated measurement error is to insert CORRELATED_ERROR on the qubits just before measuring. If you are always reset-ing the ...
Craig Gidney's user avatar
  • 30.3k
0 votes

Understanding Error Propagation in Stim's Circuits

In circuit 1, qubit 17 is being used to measure the stabilizer Z0*Z1*Z5*Z6. It commutes with all the X stabilizers you measured earlier, and the circuit started ...
Craig Gidney's user avatar
  • 30.3k
0 votes

Two-qubit depolarizing error convention in Stim

If you want to use a depolarizing probability $p$ that includes $II$, multiply $p$ by 15/16 before giving it to stim's DEPOLARIZE2 instruction. (By 3/4 for ...
Craig Gidney's user avatar
  • 30.3k
1 vote
Accepted

Simulating multiple logical qubits with stim

How would the detector annotations work? I understand how they work for a single logical qubit, but when the circuit has multiple logical qubits, would it be enough to just specify sets of ...
Craig Gidney's user avatar
  • 30.3k
1 vote

Using Deterministic Errors in Stim Detector Circuit and decoding with Pymatching: X_ERROR(1) failing in PyMatching

If you're trying to enumerate how errors are corrected, you shouldn't be telling pymatching which errors you are inserting. It will just end up correcting them perfectly (once this probability 1 ...
Craig Gidney's user avatar
  • 30.3k

Top 50 recent answers are included