arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.06281cs.SEquant-ph
收藏

在开源项目中挖掘量子软件模式

Mining Quantum Software Patterns in Open-Source Projects

School of Arts, Sciences, and Humanities, University of São Paulo(圣保罗大学人文、科学与艺术学院);Department of Computing and Digital Systems Engineering, Polytechnic School, University of São Paulo(圣保罗大学理工学院计算与数字系统工程系)

Neilson Carlos Leite Ramalho, Erico A. da Silva, Higor Amario de Souza, Marcos Lordello Chaim

AI总结:

本文通过分析985个Jupyter Notebook,挖掘开源项目中量子软件模式的应用,识别9种新模式并开发语义搜索工具,揭示开发者在不同层次上使用量子模式的趋势。

摘要:

量子计算近年来已成为一个活跃的研究领域,其在密码学、优化和材料科学等领域的应用前景广阔。随着这些发展的出现,量子软件工程领域也面临着挑战和机遇,因为框架和更高层次的抽象开发吸引了来自不同背景的实践者。不同于最初基于电路模型的量子框架,近年来的框架和库利用更高层次的抽象来创建量子程序。本文对80个开源项目中的985个Jupyter Notebook进行了实证研究,以探讨量子模式在实践中的应用。我们的工作包括两个主要阶段。首先,我们从三个量子计算框架(Qiskit、PennyLane和Classiq)中构建了一个知识库。这个过程使我们识别并记录了9个新的模式,这些模式细化并扩展了现有的量子计算模式目录。其次,我们开发了一个可重用的语义搜索工具,用于在我们的大规模数据集中自动检测这些模式,提供面向实践者的分析。我们的结果表明,开发者在三个层次上使用模式:从基础的电路工具,到常见的算法原语(例如,振幅放大),再到针对金融和优化的领域特定应用。这表明一个成熟的领域,其中开发者越来越多地使用高层次的构建模块来解决现实问题。

英文摘要:

Quantum computing has become an active research field in recent years, as its applications in fields such as cryptography, optimization, and materials science are promising. Along with these developments, challenges and opportunities exist in the field of Quantum Software Engineering, as the development of frameworks and higher-level abstractions has attracted practitioners from diverse backgrounds. Unlike initial quantum frameworks based on the circuit model, recent frameworks and libraries leverage higher-level abstractions for creating quantum programs. This paper presents an empirical study of 985 Jupyter Notebooks from 80 open-source projects to investigate how quantum patterns are applied in practice. Our work involved two main stages. First, we built a knowledge base from three quantum computing frameworks (Qiskit, PennyLane, and Classiq). This process led us to identify and document 9 new patterns that refine and extend the existing quantum computing pattern catalog. Second, we developed a reusable semantic search tool to automatically detect these patterns across our large-scale dataset, providing a practitioner-focused analysis. Our results show that developers use patterns in three levels: from foundational circuit utilities, to common algorithmic primitives (e.g., Amplitude Amplification), up to domain-specific applications for finance and optimization. This indicates a maturing field where developers are increasingly using high-level building blocks to solve real-world problems.

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

↑