QuanForge: A Mutation Testing Framework for Quantum Neural Networks
Minqi Shao, Shangzhou Xia, Jianjun Zhao
Abstract
With the growing synergy between deep learning and quantum computing, Quantum Neural Networks (QNNs) have emerged as a promising paradigm by leveraging quantum parallelism and entanglement. However, testing QNNs remains underexplored due to their complex quantum dynamics and limited interpretability. Developing a mutation testing technique for QNNs is promising while requires addressing stochastic factors, including the inherent randomness of mutation operators and quantum measurements. To tackle these challenges, we propose QuanForge, a mutation testing framework specifically designed for QNNs. We first introduce statistical mutation killing to provide a more reliable criterion. QuanForge incorporates nine post-training mutation operators at both gate and parameter levels, capable of simulating various potential errors in quantum circuits. Finally, a mutant generation algorithm is formalized that systematically produces effective mutants, thereby enabling a robust and reliable mutation analysis. Through extensive experiments on benchmark datasets and QNN architectures, we show that QuanForge can effectively distinguish different test suites and localize vulnerable circuit regions, providing insights for data enhancement and structural assessment of QNNs. We also analyze the generation capabilities of different operators and evaluate performance under simulated noisy conditions to assess the practical feasibility of QuanForge for future quantum devices.
CCS Concepts: • Software and its engineering → Software testing and debugging.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on6
- Projection-based runtime assertions for testing and debugging Quantum programsGushu Li, Li Zhou, Nengkun Yu, Yufei Ding et al.OOPSLA 2020 · 120 citations
- DeepCrime: mutation testing of deep learning systems based on real faultsNargiz Humbatova, Gunel Jahangirova, Paolo TonellaISSTA 2021 · 114 citations
- Causality-Based Neural Network RepairBing Sun, Jun Sun, Long H. Pham, Tie ShiICSE 2022 · 69 citations
- Mutation-based Fault Localization of Deep Neural NetworksAli Ghanbari, Deepak-George Thomas, Muhammad Arbab Arshad, Hridesh RajanASE 2023 · 20 citations
- QuraTest: Integrating Quantum Specific Features in Quantum Program TestingJiaming Ye, Shangzhou Xia, Fuyuan Zhang, Paolo Arcaini et al.ASE 2023 · 19 citations
Related papers
- Provably Lossless Acceleration of DNN Mutation Testing via MemoizationAli Ghanbari, Ben Greenman, Sasan Tavakkol, Shibbir AhmedISSTA 2026
- RobOT: Robustness-Oriented Testing for Deep Learning SystemsJingyi Wang, Jialuo Chen, Youcheng Sun, Xingjun Ma et al.ICSE 2021 · 62 citations
- MorphQ: Metamorphic Testing of the Qiskit Quantum Computing PlatformMatteo Paltenghi, Michael PradelICSE 2023 · 44 citations
- Quantum Deep Equilibrium ModelsPhilipp Schleich, Marta Skreta, Lasse Bjørn Kristensen, Rodrigo A. Vargas-Hernández et al.NeurIPS 2024 · 8 citations
- Generating Universal Adversarial Perturbations for Quantum ClassifiersGautham Anil, Vishnu Vinod, Apurva NarayanAAAI 2024 · 10 citations
