Abstract Quantum error correction is crucial for protecting quantum information against decoherence. Traditional codes like the surface code require substantial overhead, making them impractical for near-term, early fault-tolerant devices. We propose a novel objective function for tailoring error correction codes to specific noise structures by maximizing the distinguishability between quantum states after a noise channel, ensuring efficient recovery operations. We formalize this concept with the distinguishability loss function, serving as a machine learning objective to discover resource-efficient encoding circuits optimized for given noise characteristics. We implement this methodology using variational techniques, termed variational quantum error correction. Our approach yields codes with desirable theoretical and practical properties and surpasses standard codes of comparable size under structured noise. We also provide proof-of-concept demonstrations on IBM and IQM hardware devices, highlighting the practical relevance of our procedure.
Abstract Quantum error correction is crucial for protecting quantum information against decoherence. Traditional codes like the surface code require substantial overhead, making them impractical for near-term, early fault-tolerant devices. We propose a novel objective function for tailoring error correction codes to specific noise structures by maximizing the distinguishability between quantum states after a noise channel, ensuring efficient recovery operations. We formalize this concept with the distinguishability loss function, serving as a machine learning objective to discover resource-efficient encoding circuits optimized for given noise characteristics. We implement this methodology using variational techniques, termed variational quantum error correction. Our approach yields codes with desirable theoretical and practical properties and surpasses standard codes of comparable size under structured noise. We also provide proof-of-concept demonstrations on IBM and IQM hardware devices, highlighting the practical relevance of our procedure.
Quantum error correction is critical for protecting quantum computations from noise, yet standard protocols demand significant qubit overhead. To address this, we introduce a learning-based approach that allows tailoring encodings to specific noise channels. This approach is based on a novel loss function that maximizes the distinguishability of noisy quantum states. We thereby realize a variational quantum algorithm that discovers new resource-efficient codes, which empirically outperform standard quantum error correction schemes on various noise structures. We furthermore derive promising theoretical properties of these variational quantum error correction (VarQEC) codes and perform proof-of-concept experiments on quantum hardware.
Current approaches to fault-tolerant quantum computation will not enable useful quantum computation on near-term devices of 50 to 100 qubits. Leading proposals, such as the color code and surface code schemes, must devote a large fraction of their physical quantum bits to quantum error correction. Building from recent quantum machine learning techniques, we propose an alternative approach to quantum error correction aimed at reducing this overhead, which can be implemented in existing quantum hardware and on a myriad of quantum computing architectures. This method aims to optimize the average fidelity of encoding and recovery circuits with respect to the actual noise in the device, as opposed to that of an artificial or approximate noise model. The quantum variational error corrector (QVECTOR) algorithm employs a quantum circuit with parameters that are variationally-optimized according to processed data originating from quantum sampling of the device, so as to learn encoding and error-recovery gate sequences. We develop this approach for the task of preserving quantum memory and analyze its performance with simulations. We find that, subject to phase damping noise, the simulated QVECTOR algorithm learns a three-qubit encoding and recovery which extend the effective T2 of a quantum memory six-fold. Subject to a continuous-time amplitude- plus phase-damping noise model on five qubits, the simulated QVECTOR algorithm learns encoding and decoding circuits which exploit the coherence among Pauli errors in the noise model to outperform the five-qubit stabilizer code and any other scheme that does not leverage such coherence. Both of these schemes can be implemented with existing hardware.
Quantum error correction is believed to be a necessity for large-scale fault-tolerant quantum computation. In the past two decades, various constructions of quantum error-correcting codes (QECCs) have been developed, leading to many good code families. However, the majority of these codes are not suitable for near-term quantum devices. Here we present VarQEC, a noise-resilient variational quantum algorithm to search for quantum codes with a hardware-efficient encoding circuit. The cost functions are inspired by the most general and fundamental requirements of a QECC, the Knill-Laflamme conditions. Given the target noise channel (or the target code parameters) and the hardware connectivity graph, we optimize a shallow variational quantum circuit to prepare the basis states of an eligible code. In principle, VarQEC can find quantum codes for any error model, whether additive or non-additive, degenerate or non-degenerate, pure or impure. We have verified its effectiveness by (re)discovering some symmetric and asymmetric codes, e.g., ((n,2n−6,3))2 for n from 7 to 14. We also found new ((6,2,3))2 and ((7,2,3))2 codes that are not equivalent to any stabilizer code, and extensive numerical evidence with VarQEC suggests that a ((7,3,3))2 code does not exist. Furthermore, we found many new channel-adaptive codes for error models involving nearest-neighbor correlated errors. Our work sheds new light on the understanding of QECC in general, which may also help to enhance near-term device performance with channel-adaptive error-correcting codes.
Noisy Intermediate-Scale Quantum (NISQ) devices represent current quantum computing technology with 50-1000 qubits operating without comprehensive fault-tolerant error correction. The fundamental challenge lies in balancing error correction necessity against prohibitive resource overhead. Conventional quantum error correction codes require 10:1 to 1000:1 qubit ratios and syndrome extraction circuits exceeding 50 gates, consuming entire NISQ capacities. This work presents a comprehensive low-overhead quantum error correction framework specifically designed for NISQ constraints. Our approach combines three elements: optimised stabiliser codes which get qubit ratios of 3:1 to 10:1, adaptive syndrome extraction which works with circuits with less than 20 gates and machine learning-enhanced decoding which is specific to the noise profiles of the hardware. Experimental validation on IBM Quantum (127- qubit Eagle), IonQ trapped-ion systems, and Google Sycamore simulation demonstrates successful quantum state protection achieving 2.7× error suppression with 60% overhead reduction versus conventional surface codes. The proposed code achieves logical error rates of 0.0065 using only 10 physical qubits compared to 25 qubits for equivalent surface codes. Machine learning decoder attains 94.3% accuracy with 12-microsecond inference latency, enabling real-time error correction. Break-even performance achieved at 0.8% physical error rates establishes practical pathways for near-term quantum advantage in variational algorithms and quantum simulation applications.
Noisy Intermediate-Scale Quantum (NISQ) devices represent current quantum computing technology with 50-1000 qubits operating without comprehensive fault-tolerant error correction. The fundamental challenge lies in balancing error correction necessity against prohibitive resource overhead. Conventional quantum error correction codes require 10:1 to 1000:1 qubit ratios and syndrome extraction circuits exceeding 50 gates, consuming entire NISQ capacities. This work presents a comprehensive low-overhead quantum error correction framework specifically designed for NISQ constraints. Our approach combines three elements: optimised stabiliser codes which get qubit ratios of 3:1 to 10:1, adaptive syndrome extraction which works with circuits with less than 20 gates and machine learning-enhanced decoding which is specific to the noise profiles of the hardware. Experimental validation on IBM Quantum (127- qubit Eagle), IonQ trapped-ion systems, and Google Sycamore simulation demonstrates successful quantum state protection achieving 2.7× error suppression with 60% overhead reduction versus conventional surface codes. The proposed code achieves logical error rates of 0.0065 using only 10 physical qubits compared to 25 qubits for equivalent surface codes. Machine learning decoder attains 94.3% accuracy with 12-microsecond inference latency, enabling real-time error correction. Break-even performance achieved at 0.8% physical error rates establishes practical pathways for near-term quantum advantage in variational algorithms and quantum simulation applications.
Quantum error correction is essential for achieving fault-tolerant quantum computation. However, most typical quantum error-correcting codes are designed for generic noise models, which may fail to accurately capture the intricate noise characteristics of real quantum devices, limiting their practical performance. This work introduces Variational Graphical Quantum Error Correction (VGQEC), a learning-based framework that enhances standard quantum codes by embedding tunable parameters into their associated Quon graphs. Consequently, VGQEC codes can adapt to device-specific noise models and interpolate between different code families, effectively integrating their respective strengths. As an application, we fine-tune the three-qubit repetition code and discover a compact code for amplitude damping noise. Furthermore, within a thermal relaxation model guided by experimental data, we refine the five-qubit [[5,1,3]] code, achieving near-optimal numerical performance. Finally, we experimentally demonstrate the effectiveness of the three-qubit VGQEC code in low-to-medium noise regime with a photonic system, highlighting its potential for real-world applications. Quantum error correction is essential for reliable quantum computing, but standard codes are usually designed for generic noise and may perform poorly on real devices. Here, the authors introduce a variational graphical framework that tunes known codes to device-specific noise, improving performance in simulations and photonic experiments.