I am testing a fault tolerant error correction scheme for a quantum error correcting code in the following way:
- Construct my circuit (data and ancilla qubits)
- Perform a round of error correction (set of projective measurements onto the ancilla qubits)
- Apply corrections based on the extracted syndromes
- Detect a logical error (by extracting the Pauli Frame and checking if the Pauli String anti-commutes with my logical operators)
I am having trouble with step 4 since I am not sure if stim allows you to extract the final Pauli Frame (as mentioned here: extracting the Pauli error on the data qubits at the end of circuit in stim).
Now, the reason I am asking this question is because the tagged answer is old(er), and also since (looking at other answers here) it seems there might be many ways of doing what I'm trying to do e.g. Tableau Simulation, using a Detector Error Model, etc.
I am trying to build a mental model of using stim properly/trying to find a de-facto way of running experiments like these where I want to use stim ONLY as a PF/circuit simulation tool where I can sample the Pauli Frame i.e. (X,Z) tuples for each data qubit where X(or Z)=1 means qubit has an X error w.r.t. an initial reference state.