Questions tagged [stim]

For questions about Stim, the open source tool for high-performance simulation of quantum stabilizer circuits.

References:

314 questions
7
votes
1 answer

'Best practices' for making Stim run as fast as possible?

I'm currently testing out an error-correction surface code circuit in Stim. I've tried a 19x19 surface code over 10k rounds of syndrome extraction sampled 256 times, and this takes about 165 seconds. This comes out to roughly ~100s of nanoseconds…
squiggles
  • 1,200
  • 5
  • 11
6
votes
2 answers

Simulating flag qubits and conditional branches using Stim

In a quantum error correcting code using flag qubits, it's common to have flag measurements that tell you it's necessary to do some extra measurements for safety. So, for example, I want to say: if measurement_result_was_true: …
Craig Gidney
  • 44,299
  • 1
  • 41
  • 116
5
votes
1 answer

What are dynamical quantum error correction code?

My understanding of dynamical codes is that they are codes whose logical qubits are generated through a particular sequence of measurements. Are Spacetime codes or the walking codes mentioned in the paper "Relaxing Hardware Requirements for Surface…
rexyquantum
  • 113
  • 4
5
votes
3 answers

Simulating stabilizer groups

Can any existing software be used (either directly or with a bit of persuading) to work with general stabilizer groups? From what I can see, tableau-based options like Stim and Qiskit can be used to work with stabilizer groups over $n$ qubits with…
5
votes
1 answer

How does Stim's detector sampler work?

I'm just getting started with Stim (and hence working through its Getting Started Notebook) and am wondering how the detector sampler actually works. The notebook states A detector doesn't say whether the parity should be even or should be odd,…
drumadoir
  • 301
  • 1
  • 7
5
votes
2 answers

How can I visualize a stim circuit?

Is there any function I can call to visualize a stim circuit?
Inm
  • 535
  • 3
  • 9
5
votes
1 answer

Incorporating idling errors while using stim

Is there a smart way to incorporate idling errors for a quantum error correction code using the open-source tool stim (preferably using the tableau simulator)? I have perused the code repository, as well as the associated paper on the topic, but to…
MatthewS1990
  • 244
  • 3
  • 9
5
votes
2 answers

Measuring entanglement entropy using a stabilizer circuit simulator

I'm trying to simulate stabilizer circuits using the Clifford tableau formalism that lets you scale up to hundreds of qubits. What I want to do is find the entanglement entropy on by splitting my quantum state (defined as a line of $N$ qubits) at…
Germ
  • 315
  • 1
  • 9
4
votes
1 answer

Given a stabilizer state, check if all k qubit subsets are maximally mixed

Problem I’m checking if all k-qubit subsets of a n-qubit stabilizer state are maximally mixed. Approach that works, but is slow The following approach works. But it's numerically painful, so I'm looking stim tricks or some lin alg result that may…
big_qubit
  • 65
  • 5
4
votes
1 answer

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

Background This question was triggered when I wanted to learn about stim and how to use it to run simulations for error correction. The resources I used for learning about stim were basically Craig Gidney's YouTube videos and his getting…
Vincent
  • 331
  • 1
  • 5
4
votes
1 answer

Bug in stim HERALDED_PAULI_CHANNEL_1?

Tried this simple example where initializing two qubits in $|0\rangle$ state, performing biased bit flip erasure on qubit 1 using HERALDED_PAULI_CHANNEL_1 while measuring qubit 0: import stim import numpy as np circuit = stim.Circuit() …
Xiao Xiao
  • 43
  • 2
4
votes
1 answer

Computing amplitude of a Clifford circuit in stim

Using Stim, is there an efficient way to evaluate a particular amplitude, i.e. $\langle 0|U|0\rangle$ (including the phase), where U is a circuit of Clifford gates?
Bryan
  • 41
  • 1
4
votes
1 answer

How to simulate rectangular surface code with stim?

The Stim package is a tool for simulation and analysis of quantum stabilizer circuits. Stim's built-in surface code circuit generation, stim.Circuit.generated, can run different code tasks (rotated and unrotated surface codes for X and Z error…
francois-marie
  • 351
  • 2
  • 11
4
votes
3 answers

How do I perform an erasure error in stim?

An erasure error is a heralded error that completely destroys a qubit (e.g. resets it or maximally mixes it). The qubit is gone but you are told it's gone. How do I simulate this kind of error using stim?
Craig Gidney
  • 44,299
  • 1
  • 41
  • 116
4
votes
1 answer

compatibility of stim's error model with conventional decoding schemes

I am working with stim's excellent code generator together with pymatching, using stim's generated error model and the glue code in the tutorial here. I am trying to understand better what the output of the decoder means. Specifically, is it correct…
Lior
  • 1,270
  • 4
  • 17
1
2 3
20 21