We are trying to simulate the erasure channel in stim, but it is a biased erasure - meaning that the replaced qubit doesn't have a depolarizing channel but a biased channel. We saw that there is a function in stim "HERALDED_ERASE" channel, but here the replaced qubit has a depolarizing channel. Can we use it to have another error channel on the replaced qubit?
Also, when we use MWPM to decode, is the weight of the edge (in the matching graph) associated with the erased qubit updated appropriately?
Thank you!
HERALDED_PAULI_CHANNEL_1
that approximates it. The nature of the actual erasure will depend on the hardware; e.g. when a photon is erased it's not in the |0> state it's escaped. – Craig Gidney Oct 22 '23 at 16:20