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

利用基于LLM的代理系统生成量子应用以优化测试

QPipe: LLM-Based Agentic Quantum Application Generation for Test Optimization

Beihang University(北京航空航天大学);Mondragon University(蒙德拉贡大学)

Ming Tao, Yuechen Li, Tao Yue, Man Zhang, Aitor Arrieta Marcos

AI总结:

提出QPipe,一种基于大语言模型的多代理架构,自动将自然语言需求转化为可执行的量子应用工作流,在测试优化问题上实现高编译率和执行率。

摘要:

量子计算在软件工程优化中的应用日益增多,但将自然语言任务级需求转化为可执行的量子应用仍需要大量的量子计算和编程专业知识。我们提出了QPipe,一种基于大语言模型的多代理架构,通过专门的需求解析、公式化、代码生成、审查、执行和验证代理,自主地将自然语言需求转化为可追踪的量子应用工作流。我们在20个自然语言需求上评估了QPipe,每个需求都关联一个真实世界的基准测试和一个测试优化问题。QPipe成功完成了所有需求的量子应用生成关键阶段,代码编译平均成功率为100%,应用执行和最终结果组合平均成功率为96.7%,每个需求的平均生成成本为260.1秒和189万token。在成功执行的生成量子应用中,返回的解决方案在大多数情况下优于离线遗传算法基线。消融结果进一步表明,QPipe的优势依赖于保留代码生成技能、任务知识、审查反馈和多代理分解。这些结果表明,代理协调可以支持生成可执行的量子应用,以解决来自真实世界基准测试的测试优化问题。

英文摘要:

Quantum computing is increasingly explored for software engineering (SE) optimization, but translating natural-language (NL) task-level requirements into executable quantum applications still demands substantial quantum and programming expertise. We present QPipe, a large language model (LLM)-based multi-agent architecture that autonomously turns NL requirements into traceable quantum-application workflows through specialized agents for requirement parsing, formulation, code generation, review, execution, and verification. We evaluate QPipe on 20 NL requirements, each associated with a real-world benchmark and a test-optimization problem. QPipe successfully completes the key stages of quantum-application generation across requirements, achieving average rates of 100% for code compilation and 96.7% for application execution and final-result combination, with average generation costs of 260.1 seconds and 1.89M tokens per requirement. Among the generated quantum applications that execute successfully, the returned solutions outperform the offline genetic algorithm baseline in most cases. Ablation results further show that QPipe's advantage depends on retaining code-generation skills, task knowledge, review feedback, and multi-agent decomposition. These results indicate that agentic coordination can support generation of executable quantum applications for tackling test optimization problems from real-world benchmarks.

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

↑