How can one do an error correction simulation after a state injection? I understand that we can keep the subspace with the syndrome measurements, but how can a logical error be verified, if the X and Z are no more stabilizers of the system and should give random results? Can it be done numerically?
For example, how can one compute the threshold and logical error rate for state injection and distillation, especially under a complex circuit-based noise which makes analytical analysis hard?