Correcting detection errors in quantum state engineering through data processing | Synapse