arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14219cs.SEquant-ph
收藏

基于失败的模糊测试用于混合量子-经典程序

Failure-Guided Fuzzing for Hybrid Quantum-Classical Programs

University of Maryland, Baltimore County(马里兰大学巴尔的摩县分校)

Lei Zhang

AI总结:

本文研究了混合量子-经典程序的基于失败的模糊测试,通过两阶段策略发现非收敛种子并局部模糊量子电路参数,实验表明利用失败信息能提升测试效果,但协同种子发现的效果依赖于工作负载。

摘要:

混合量子-经典(HQC)算法,如变分量子特征求解器(VQE)和量子近似优化算法(QAOA),是近期量子计算的核心,但测试仍具挑战性。基于采样的模糊测试可暴露故障或非收敛配置,但在现实执行预算下可能遗漏经典优化器设置和量子电路参数联合空间中易出错区域。本文研究HQC程序的基于失败的模糊测试,将混合输入建模为经典优化器超参数和量子电路参数对,并评估一种两阶段策略:首先搜索非收敛种子,然后在这些种子周围局部模糊电路参数。为理解收益来源,比较了五种预算策略:随机混合测试、无模糊的经典枚举、随机种子局部模糊、枚举种子局部模糊以及协同种子局部模糊。研究在Qiskit的VQE实例和QAOA MaxCut实例上实施。结果表明,基于失败的局部模糊是随机测试改进的主要驱动力,而协同种子发现对VQE有额外益处,但对QAOA效果不稳定。这些发现表明,重用失败信息是HQC测试的有前途方向,但协同种子发现的价值依赖于工作负载。

英文摘要:

Hybrid quantum-classical (HQC) algorithms, such as the Variational Quantum Eigensolver (VQE) and the Quantum Approximate Optimization Algorithm (QAOA), are central to near-term quantum computing but remain challenging to test. Sampling-based fuzzing can expose faulty or non-convergent configurations, but under realistic execution budgets, it may miss failure-prone regions in the joint space of classical optimizer settings and quantum circuit parameters. This paper studies failure-guided fuzzing for HQC programs. It models a hybrid input as a pair of classical optimizer hyperparameters and quantum circuit parameters, and evaluates a two-phase strategy that first searches for non-convergent seeds and then locally fuzzes circuit parameters around those seeds. To understand where the gains come from, five budgeted strategies are compared: random hybrid testing, classical enumeration without fuzzing, random-seed local fuzzing, enumeration-seed local fuzzing, and concolic-seed local fuzzing. The study is implemented on a VQE instance and a QAOA MaxCut instance in Qiskit. The results show that failure-guided local fuzzing is the main driver of improvement over random testing, while concolic seed discovery provides additional benefits on VQE but is less stable on QAOA. These findings suggest that reusing failure information is a promising direction for HQC testing, but that the value of concolic seed discovery is workload-dependent.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑