Quantum error-correcting codes are fundamental to fault-tolerant quantum computing. These codes are designed to detect and correct errors in quantum states. Popular examples include the Shor code and the Steane code. These codes work by encoding a logical qubit into multiple physical qubits in such a way that errors can be identified and corrected without measuring the quantum data directly, preserving the quantum superposition.