Search arXiv⌕ Search

arXiv · 2611.18838

Metamorphic Testing of Quantum Software based on Stabilizer States

Abstract

A major challenge in quantum computing is to systematically check if a quantum program implements its desired functionality. For classical programs, testing is widely used; each test case comprises a pair of sample input and expected output to be compared with the actual output. To increase the number of test cases, however, one has to solve the test-oracle problem: for each additional test input one has to know the correct output. Metamorphic testing tackles this problem by utilizing metamorphic relations between input and output domains to automatically derive new test cases from existing ones. However, adapting metamorphic testing to the quantum realm is not straightforward, since quantum states cannot be directly inspected. We propose a framework of quantum metamorphic testing (QMT) in which the metamorphic relations incorporate the measurement procedures required to assess quantum outputs. We apply our QMT framework to testing the preparation of stabilizer states, which are central to protocols like measurement-based quantum computing or quantum error correction. We utilize structural properties of stabilizer states to systematically derive measurement circuits for new test cases from existing ones. We implement this framework in Qiskit, and demonstrate that it reduces by an order of magnitude the testing run time compared to testing with randomly generated input states. We further show effectiveness by revealing synthetic program faults injected by circuit mutations, as well as a real bug in the Qiskit compiler.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Adrián Marín Boyero, Fynn Otto, Albert Rico, Otfried Gühne, Malte Lochau. 2026-11-13. Metamorphic Testing of Quantum Software based on Stabilizer States. https://searcharxiv.org/abs/2611.18838

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Quadratic Models for Engineered Control of Open Quantum Systems

We introduce a framework to model the evolution of a class of open quantum systems whose environments periodically undergo an instantaneous non-unitary evolution stage. For the special case of quadratic models, we show how this approach can generalise the formalism of repeated interactions to allow for the preservation of system-environment correlations. Furthermore, its continuous zero-period limit provides a natural description of the evolution of small systems coupled to large environments in negligibly perturbed steady states. We explore the advantages and limitations of this approach in illustrative applications to thermalisation in a simple hopping ring and to the problem of initialising a qubit chain via environmental engineering.

quant-ph↗

Kerr-Induced Impairments in Quantum-Classical Fiber Coexistence: A Quantum-Stochastic Analysis

Quantum and classical optical signals sharing a fiber can interact through Kerr cross-phase modulation without interchannel photon transfer, potentially degrading phase- and mode-sensitive quantum communication even when direct spectral leakage is negligible. We develop a two-channel quantum-stochastic propagation framework based on the positive-P representation for a weak coherent pulse train co-propagating with a strong, quadrature-amplitude-modulated classical signal. Both fields are treated quantum mechanically, incorporating self- and cross-phase modulation, chromatic dispersion, group-velocity mismatch, attenuation, and Kerr-induced quantum diffusion. We characterize the classical-channel influence using three complementary observables: the frequency-resolved quadrature-fluctuation spectrum, complex temporal-mode overlap, and adjacent-pulse interference visibility. Simulations of a 100-km standard-fiber link reveal markedly different responses across these observables. As classical launch power increases, the extremal quadrature-fluctuation spectra remain close to the shot-noise level, whereas the temporal-mode and visibility penalties reach approximately 4.5% and 6.0%, respectively, at 100 mW. Applying a 1% mean-penalty criterion gives launch-power thresholds of approximately 46 mW for temporal-mode overlap and 40 mW for visibility, yielding a joint Kerr-limited threshold near 40 mW for the investigated configuration. These results demonstrate that temporal-mode deformation and reduced pulse-to-pulse coherence can occur while the evaluated quadrature-fluctuation spectra remain near shot noise, establishing a complementary criterion for selecting classical launch power in quantum-classical fiber co-propagation.

quant-ph↗

Artificial Intelligence for Quantum Error Correction: A Comprehensive Review

Quantum Error Correction (QEC) is the process of detecting and correcting errors in quantum systems, which are prone to decoherence and quantum noise. QEC is crucial for developing stable and highly accurate quantum computing systems, therefore, several research efforts have been made to develop the best QEC strategy. Recently, Google's breakthrough shows great potential to improve the accuracy of the existing error correction methods. This survey provides a comprehensive review of advancements in the use of artificial intelligence (AI) tools to enhance QEC schemes for existing Noisy Intermediate Scale Quantum (NISQ) systems. Specifically, we focus on machine learning (ML) strategies and span from unsupervised, supervised, semi-supervised, to reinforcement learning methods. It is clear from the evidence, that these methods have recently shown superior efficiency and accuracy in the QEC pipeline compared to conventional approaches. Our review covers more than 150 relevant studies, offering a comprehensive overview of progress and perspective in this field. We organized the reviewed literature on the basis of the AI strategies employed and improvements in error correction performance. We also discuss challenges ahead such as data sparsity caused by limited quantum error datasets and scalability issues as the number of quantum bits (qubits) in quantum systems kept increasing very fast. We conclude the paper with summary of existing works and future research directions aimed at deeper integration of AI techniques into QEC strategies.

quant-ph↗