Quantum self healing