QuanForge: A Mutation Testing Framework for Quantum Neural Networks
Open Access
- 30 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 3 (FSE) , 2882-2904
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.Keywords
Funding Information
- Japan Science and Technology Agency (JPMJSP2136)
- Japan Science and Technology Agency (JPMJBS2406)
- Japan Society for the Promotion of Science (JP26K02892)
- Japan Society for the Promotion of Science (JP24K14908)
This publication has 38 references indexed in Scilit:
- Hybrid quantum neural network structures for image multi-classificationPhysica Scripta, 2024
- Equivalence, identity, and unitarity checking in black-box testing of quantum programsJournal of Systems and Software, 2024
- qLEET: visualizing loss landscapes, expressibility, entangling power and training trajectories for parameterized quantum circuitsQuantum Information Processing, 2023
- Towards quantum enhanced adversarial robustness in machine learningNature Machine Intelligence, 2023
- Efficient Measure for the Expressivity of Variational Quantum AlgorithmsPhysical Review Letters, 2022
- Quantum convolutional neural network for classical data classificationQuantum Machine Intelligence, 2022
- Quanvolutional neural networks: powering image recognition with quantum circuitsQuantum Machine Intelligence, 2020
- Quantum convolutional neural networksNature Physics, 2019
- Quantum machine learningNature, 2017
- Probability Inequalities for Sums of Bounded Random VariablesJournal of the American Statistical Association, 1963