Distinguishability loss function optimizes quantum encoding circuits

Researchers at Fraunhofer IIS and Friedrich-Alexander-University Erlangen-Nuremberg have detailed a new approach to quantum error correction that prioritizes maximizing the distinguishability between quantum states after experiencing noise. Published on September 2, 2026, their work addresses a key limitation of traditional methods like the surface code, which require substantial overhead and are impractical for early fault-tolerant devices.

The team formalizes this concept with machine learning to discover encoding circuits optimized for specific noise characteristics and demonstrating the procedure on IBM and IQM hardware. This variational quantum error correction methodology yields codes with properties surpassing standard designs of comparable size under structured noise.

Distinguishability Loss Function for Tailored Error Correction

A newly formalized loss function directly optimizes quantum encoding circuits for resilience against specific noise, moving beyond the limitations of standard error correction approaches. This is the objective for a machine learning process designed to create resource-efficient codes tailored to anticipated error profiles. The methodology, termed variational quantum error correction, uses variational techniques to discover encoding circuits that maximize the ability to differentiate between quantum states even after experiencing noise from a communication channel.

The core of this advancement lies in defining a loss function based on the trace distance between quantum states, a metric quantifying how distinguishable two quantum states remain following the application of a noise channel. Researchers realized this method as a variational quantum algorithm, enabling the optimization of encoding operations to minimize information loss during transmission.

Analysis of the resulting codes reveals properties exceeding those of similarly sized standard codes when subjected to structured noise, a common challenge in real-world quantum systems. Demonstrations on IBM and IQM hardware devices further validate the practical relevance of this procedure, suggesting a pathway toward more robust quantum computation. Empirical results confirm the creation of a ((5,2)) VarQEC code, with further details in supplementary appendix B.3.

The learned codes demonstrate practically exact error correction under depolarizing noise, performing on par with optimal classical codes in the same setup. The researchers also define a denoted d*ε, which assesses code performance based on the distinguishability loss satisfying a specific condition for small positive values of ε and all Pauli noise channels. This approach, the authors note, is agnostic to the specific optimization method employed, potentially integrating with reinforcement learning or evolutionary algorithms for further refinement.

Variational Quantum Error Correction Algorithm Implementation

Minimizing the distance between quantum states after experiencing noise directly improves error correction performance, according to a newly formalized relationship between a loss function and fidelity after recovery. The team integrated this approach into a variational quantum algorithm, which they term variational quantum error correction, or VarQEC, and further incorporated elements from the QVECTOR approach used for learning recovery operations. This implementation prioritizes reproducibility, offering a complete end-to-end system designed to encourage further development and exploration of the methodology.

Extensive empirical evaluations across various noise models and system sizes confirm the efficiency and effectiveness of VarQEC, analyzing the stability and resilience of the resulting codes against errors. Evaluations reveal that the VarQEC procedure achieves lower information loss and higher recovery fidelity than traditional small stabilizer codes when subjected to structured noise, while maintaining comparable performance in the absence of such patterns.

“One could, for instance, employ the distinguishability loss as a reward function in a RL framework that incrementally constructs the encoding circuit,” the paper explains, highlighting the flexibility of the underlying concept. Supplementary details regarding the implementation are available in appendices B and C.

Theoretical Link Between Loss and Recovery Fidelity

The research establishes a quantifiable relationship between a ‘distinguishability loss’ function and the fidelity achieved after recovery from noise, demonstrating that reducing loss translates to enhanced correction capabilities. This connection builds on the quantum relative entropy, a measure of informational divergence, but circumvents its limitations as a practical loss function due to its unbounded nature and computational complexity. The team formalized this link with mathematical bounds, informally stating that worst-case fidelity loss after recovery is upper-bounded by the distinguishability loss incurred during encoding.

These theoretical guarantees, fully detailed in appendix B.2, provide assurance that optimizing for state distinguishability will yield successful recovery operations. This approach differs from simply maximizing fidelity between states, as it focuses on maintaining discernibility after the introduction of noise, a critical distinction for practical quantum computing.

The work also integrates elements from the QVECTOR approach, which focuses on learning recovery operations, further refining the error correction process. Empirical results support this theoretical framework; evaluations using both symmetric and asymmetric depolarizing noise models show a clear relationship between lower distinguishability loss and higher fidelity after recovery. For instance, with symmetric depolarizing noise at a level of D = 0.133, a fidelity of F = 0.067 was achieved, while a distinguishability loss of 0.133 was observed.

With asymmetric depolarizing noise at D = 0.185, a distinguishability loss of 0.137 correlated with a fidelity of 0.093. These findings, presented alongside data for the ((5,2)) code, demonstrate that the proposed method consistently achieves improved performance compared to baseline approaches.

VarQEC Performance Under Structured Noise

The team assessed code stability and resilience under various noise conditions to validate this connection, moving beyond simple fidelity maximization. The experimental setup and employed circuit designs are fully documented in appendix D for reproducibility.

The QVECTOR approach, which utilizes the same circuit designs as VarQEC, showed inferior performance on more complex noise channels like thermal relaxation, despite achieving comparable results for bit-flip and amplitude damping noise. “We again want to emphasize that the QVECTOR approach employs the same circuit ansätze as the VarQEC codes,” the researchers state, highlighting a key distinction in effectiveness despite shared architectural elements. Extended evaluations, including analyses with multiple logical qubits and restricted connectivity, are detailed in appendix E, further supporting the efficacy of maximizing state distinguishability as a central objective in variational quantum error correction.

Empirical Evaluation of Code Stability & Resilience

These findings support the potential for improved error mitigation in near-term quantum devices. Further analysis of code stability and resilience explored the adaptability of the procedure across varying asymmetry levels in noise. From scenarios dominated by phase-flips to those with combined bit- and phase-flips, all tested codes exhibited a distinguishability loss exceeding that of unencoded baselines. A static version of the ((5,2)) VarQEC code, trained on symmetric depolarizing noise, outperformed a perfect quantum error correction code specifically in setups with high asymmetries, suggesting a robustness to non-uniform error distributions.

Improvements were predictably greater when VarQEC codes were trained explicitly on the specific noise structure present, highlighting the benefit of tailored error correction strategies. Data points representing worst-case distinguishability loss demonstrate this trend, with the ((5,2)) VarQEC code consistently showing lower loss values than baseline approaches. Appendix E details extended empirical results, including performance under additional noise channels, scalability to multiple logical qubits, and resilience under restricted connectivity conditions, further substantiating these initial findings. These evaluations provide a comprehensive assessment of the VarQEC method’s capabilities and limitations.

IBM and IQM Hardware Deployment of VarQEC Codes

Deploying trained VarQEC encodings on actual quantum hardware confirms their fault-resilience properties, as demonstrated by recent experiments on IBM and IQM systems. Researchers accessed a 20-qubit IQM Garnet device with a crystal topology through IQM Resonance services to test the codes, achieving median coherence times of T1 = 48~μs and T2 = 20~μs. To accommodate these limited coherence times, idling time during training was reduced to 2.0~μs and further decreased to 1.0~μs.

The experiments involved training codes using between three and five physical qubits before deploying them on quantum hardware, a process detailed in section 6 of the research. High-resolution imaging of reconstructed distinguishability loss for eight patches of the experiment, conducted on the ibm_marrakesh device using the ((4,2)) VarQEC code, revealed performance characteristics.

Losses were estimated with mitigated state tomography utilizing 1000 shots per circuit execution, with error bars representing the 5th and 95th percentile ranges estimated by cluster re-sampling. These results indicate the codes outperform the encoding of a perfect code, though the latter gradually improves due to its shallower circuit depth. Simulating two-qubit errors during the training phase and dynamically tailoring the codes further enhanced the outcomes, suggesting the procedure’s adaptability.

Analysis conducted under the assumption of restricted connectivity, presented in appendix E.4, further strengthens the case for utilizing VarQEC encodings. The successful deployment on both IBM and IQM hardware underlines the practical relevance of the procedure, moving beyond theoretical simulations to demonstrate real-world applicability. These findings build on the theoretical properties of the learned codes formally introduced in section 4 and the empirical results demonstrating effectiveness compared to standard QEC codes, detailed in section 5.

Addressing Resource Overhead in Early Fault-Tolerant QC

This approach directly addresses a critical limitation hindering the development of near-term, early fault-tolerant quantum computers, where resource constraints are paramount and error rates remain high. Existing codes, like the surface code, while theoretically sound, present a significant barrier to practical implementation due to their extensive resource requirements and complex recovery operations. The proposed method uses a variational framework centered on a metric quantifying how easily quantum states can be differentiated after experiencing noise.

By optimizing codes to maximize this distinguishability, the system ensures efficient recovery operations, effectively mitigating errors without the prohibitive overhead of conventional approaches. This contrasts with earlier work focused primarily on machine learning-based decoders for error correction, instead concentrating on designing better quantum codes and encoding strategies from the outset.

The team’s work builds on a growing body of research integrating artificial intelligence techniques into quantum computing and quantum error correction, offering a flexible framework adaptable to specific hardware constraints. This technique is particularly well-suited for the emerging era of eFTQC, where resource efficiency and adaptability are not merely desirable but essential. “Leveraging the distinguishability loss within a variational framework, we reduce the overhead associated with traditional QEC codes,” the paper explains, outlining the core principle behind the advancement.

The researchers note that the method can be incorporated into a range of AI-based techniques, including reinforcement learning and evolutionary procedures, suggesting a pathway for further refinement and optimization. This focus on tailoring codes to specific noise structures represents a departure from the approach of many existing error correction strategies, promising a more pragmatic path toward fault-tolerant quantum computation.

AI Integration for Designing Quantum Codes

VarQEC codes, developed through a training procedure resembling a variational quantum algorithm, require between 12 and 72 minutes of quantum processing unit time depending on code size, with experiments utilizing the IBM Quantum premium plan. The team trained and deployed codes using between three and five physical qubits, a scale chosen to balance computational cost with demonstrable error mitigation capabilities.

Circuit designs within the VarQEC framework employ CZ gates for two-qubit operations and parameterized single-qubit rotations defined as Rzxz(θ,φ,ξ) = Rz(ξ)Rx(φ)Rz(θ), aligning with the native gate set of the utilized quantum hardware. A key element of this approach is the definition of a potential approximate code distance, denoted dε*, which quantifies a code’s ability to withstand errors across various noise strengths and Pauli noise channels.

This metric, formalized in Definition 2, assesses distinguishability loss, essentially, how easily quantum states remain separable after experiencing noise, and establishes a threshold for reliable error correction. The researchers specifically aim to minimize this distinguishability loss, effectively creating codes that maintain clear signal even in noisy environments. This focus on maximizing state separation after noise application represents a departure from traditional methods that prioritize encoding and decoding fidelity in ideal conditions. Experiments comparing unencoded baselines to the ((4,2)) VarQEC codes with differing layout alignments reveal the impact of code structure on noise mitigation.

While the VarQEC procedure does not explicitly enforce recovery under specific error terms, the team’s methodology establishes a relaxed approximate code distance, offering a practical approach for building hardware-adapted error correction blocks for early fault-tolerant quantum computing. “Our goal is therefore not to compete with surface or qLDPC codes in the asymptotic, large-distance regime, but to provide complementary, hardware-adapted building blocks for eFTQC,” the researchers state, highlighting the intended role of VarQEC as a component within broader quantum computing architectures.

Trace Distance Maximization for State Distinguishability

Minimizing lost trace distance between quantum states after noise application enables more effective encoding operations, according to a new approach detailed in the work. The team defines this loss, the difference between the baseline trace distance and that of disturbed states following a noise channel, as Δ_T(ρ,σ;N;Θ), a metric crucial for preserving information during subsequent recovery. This focus on maintaining distinguishability, rather than solely correcting errors, offers a distinct strategy for near-term quantum devices.

Evaluating worst-case distinguishability loss presents a computational challenge, requiring a maximization over an infinite set of state pairs; however, the researchers address this by minimizing the measure over all possible state pairs or combinations within a spherical two-design. This optimization is achieved through a variational quantum algorithm employing gradient-based techniques, allowing for efficient exploration of encoding circuit parameters.

The resulting objective function aims to find an encoding operation that minimizes the loss of distinguishability, ensuring effective performance across arbitrary pure states. Conceptually, this distinguishability loss is related to recoverable quantum information, defined as RQ(t) = 1/2 minn | ρn(t) – ρ(-n)(t) |1, where ρn describes the evolution under initial pure state n, and ρ(-n) under the initially orthogonal state. For isotropic unital noise affecting a single logical qubit, both the team’s measure and recoverable quantum information coincide, with the distinguishability loss being proportional to 1-R_Q.

“By keeping the lost trace distance as small as possible, we ensure that sufficient information is preserved for the subsequent recovery operation,” the researchers write, highlighting the direct link between minimizing loss and maximizing the potential for successful error correction. The average-case distinguishability loss, D_S(N;Θ), is computed by averaging this information over all state pairs, providing a comprehensive assessment of encoding performance.

Stay current

See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.

Avatar of Ivy Delaney

Ivy Delaney

Ivy Delaney has been working with neural networks and machine learning since the mid-nineties, back when a couple of hidden layers and a long afternoon of training counted as ambitious. She has watched the field go from academic curiosity to the thing quietly running underneath everything, and she brings that long view to quantum computing. For Quantum Zeitgeist she covers the ground where the two fields meet. That means quantum machine learning and the variational algorithms it leans on, and it also means the less glamorous but more interesting story of classical machine learning already doing real work inside quantum machines, decoding error-correcting codes, calibrating noisy hardware and learning the error models that simulators depend on. She writes about the hardware those algorithms have to run on too, and about the post-quantum cryptography scramble that the same hardware has set off. Her stories typically start with the paper, whether that is peer-reviewed work, conference proceedings or an arXiv preprint, with the source linked so you can hold a claim up against the research it came from. She is unimpressed by benchmarks that will not say what they beat, and by demonstrations that only work in the press release.

Latest Posts by Ivy Delaney: