为量子神经网络设计了可靠的突变测试框架,提升模型可靠性。
QuanForge: A Mutation Testing Framework for Quantum Neural Networks

- 引入统计突变杀死机制,应对量子测量随机性。
- 集成九种训练后突变算子,可模拟电路潜在错误。
- 适用于量子硬件测试与模型结构评估,适合研究人员。
随着深度学习与量子计算的融合加深,量子神经网络(QNNs)凭借量子并行性和纠缠特性成为有前景的范式。然而,由于复杂的量子动力学和有限的可解释性,对QNN的测试研究仍不充分。开发针对QNN的突变测试技术具有潜力,但需应对突变算子和量子测量的固有随机性。为此,我们提出QuanForge,一个专为QNN设计的突变测试框架。首先引入统计突变杀死机制以提供更可靠的判定标准。QuanForge包含九种训练后突变算子,作用于门级和参数级,可模拟量子电路中的多种潜在错误。最后,形式化了一种突变生成算法,系统性地生成有效突变体,从而实现稳健可靠的突变分析。在基准数据集和QNN架构上的大量实验表明,QuanForge能有效区分不同测试用例,并定位电路脆弱区域,为数据增强和结构评估提供洞见。我们还分析了不同算子的生成能力,并在模拟噪声条件下评估性能,验证了QuanForge在未来量子设备中的实际可行性。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。