Active readout-error mitigation