Perturbative stability and error correction thresholds of quantum codes | Synapse