arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.15538quant-ph
收藏

QiboAgent:量子计算代码开发开源助手的实践指南

QiboAgent: a practitioner's guideline to open source assistants for Quantum Computing code development

Università degli Studi di Milano(米兰大学);The Australian National University(澳大利亚国立大学);INFN, Sezione di Milano(意大利国家核物理研究所米兰分部);Technology Innovation Institute(技术创新研究所)

Lorenzo Esposito, Andrea Papaluca, Stefano Carrazza

AI总结:

本文提出QiboAgent,通过轻量级开源大语言模型与定制工作流架构,提升量子计算中间件代码生成的准确性和自动化能力,实现90.2%的高精度代码生成。

摘要:

本文介绍QiboAgent,一种参考实现,旨在为量子计算中间件开发专用编码助手提供实践指南。针对科学软件开发中通用专用模型的局限性,我们探讨了轻量级开源大语言模型(LLMs)结合定制工作流架构的比较。具体而言,我们实验了两种互补范式:一种检索增强生成管道用于高精度信息检索,另一种自主代理工作流用于复杂软件工程任务。我们观察到,这种混合方法在代码生成中显著降低了幻觉率,相较于专用基线,达到90.2%的最高精度,使用相对较小的开源模型,参数规模最高可达30B。此外,代理框架展现出先进的编码能力,能够自动解决维护问题和新功能请求,或通过原型设计更大规模的代码库重构,例如生成带有原始纯Python包绑定的编译Rust模块,如我们的案例中的Qibo。用于分析的LLM工作流集成到用户界面和模型上下文协议服务器中,为Qibo开发者提供了可访问的工具。

英文摘要:

We introduce QiboAgent, a reference implementation designed to serve as a practitioner's guideline for developing specialized coding assistants in Quantum Computing middleware. Addressing the limitations in scientific software development of general-purpose proprietary models, we explore how lightweight, open-source Large Language Models (LLMs) provided with a custom workflow architecture compare. In detail, we experiment with two complementary paradigms: a Retrieval-Augmented Generation pipeline for high-precision information retrieval, and an autonomous agentic workflow for complex software engineering tasks. We observe that this hybrid approach significantly reduces hallucination rates in code generation compared to a proprietary baseline, achieving a peak accuracy of 90.2% with relatively small open-source models of size up to 30B parameters. Furthermore, the agentic framework exhibits advanced coding capabilities, automating the resolution of maintenance issues and new features requests, or by prototyping larger-scale refactors of the codebase, such as producing a compiled Rust module with bindings of an original pure python package, Qibo in our case. The LLM workflows used for our analysis are integrated into a user interface and a Model Context Protocol server, providing an accessible tool for Qibo developers.

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

↑