Leading quantum computer error correction techniques such as the Surface Code are not compatible with a complete set of quantum gates. The missing Toffoli or π/8 phase gate is achieved by injecting a specially prepared qubit in the required ‘magic state’ into the system.