arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02854cs.SE
收藏

C2|Q>: 一种连接经典与量子软件开发的稳健框架

C2|Q>: A Robust Framework for Bridging Classical and Quantum Software Development

University of Oulu(奥卢大学);Wuhan University(武汉大学);Lappeenranta-Lahti University of Technology(拉彭兰塔-拉赫蒂理工大学);Aalto University(阿尔托大学)

Boshuai Ye, Arif Ali Khan, Teemu Pihkakoski, Peng Liang, Muhammad Azeem Akbar, Matti Silveri, Lauri Malmi

AI总结:

C2|Q>通过模块化方法将经典规范转化为量子可执行程序,降低量子软件开发门槛,实验证明其在模拟和真实量子硬件上均具可靠性。

摘要:

QSE正成为使量子计算对更广泛开发者群体可及的关键学科;然而,大多数量子开发环境仍要求开发者处理软件堆栈的底层细节,包括问题编码、电路构建、算法配置、硬件选择和结果解释,这使经典软件工程师难以使用。为此,我们提出了C2|Q>,一个不依赖硬件的量子软件开发框架,能够将特定类型的经典规范转化为量子可执行程序,同时保持方法学严谨性。该框架应用模块化软件工程原则,将工作流程分为三个核心模块:编码器用于分类问题、生成量子兼容格式并构建量子电路,部署模块根据保真度、运行时间和成本生成电路并推荐硬件,解码器将量子输出解释为经典解决方案。评估显示,编码器模块完成率高达93.8%,硬件推荐模块在扩展至56个量子比特的工作负载时持续选择合适硬件。对434个Python程序和100个JSON问题实例的端到端实验表明,C2|Q>的工作流程在模拟器上可靠执行,并可成功部署在代表性真实量子硬件上,实验证明其在当前NISQ能力范围内。这些结果表明,C2|Q>通过提供可重复和可扩展的工具链,将经典规范连接到量子执行,从而降低了量子软件开发的入门门槛。C2|Q>的开源实现可在https://github.com/C2-Q/C2Q和作为Python包在https://pypi.org/project/c2q-framework/上获得。

英文摘要:

QSE is emerging as a critical discipline to make quantum computing accessible to a broader developer community; however, most quantum development environments still require developers to engage with low-level details across the software stack - including problem encoding, circuit construction, algorithm configuration, hardware selection, and result interpretation - making them difficult for classical software engineers to use. To bridge this gap, we present C2|Q>, a hardware-agnostic quantum software development framework that translates specific types of classical specifications into quantum-executable programs while preserving methodological rigor. The framework applies modular SE principles by classifying the workflow into three core modules: an encoder that classifies problems, produces Quantum-Compatible Formats, and constructs quantum circuits, a deployment module that generates circuits and recommends hardware based on fidelity, runtime, and cost, and a decoder that interprets quantum outputs into classical solutions. In evaluation, the encoder module achieved a 93.8% completion rate, the hardware recommendation module consistently selected the appropriate quantum devices for workloads scaling up to 56 qubits. End-to-end experiments on 434 Python programs and 100 JSON problem instances show that the full C2|Q> workflow executes reliably on simulators and can be deployed successfully on representative real quantum hardware, with empirical runs limited to small- and medium-sized instances consistent with current NISQ capabilities. These results indicate that C2|Q> lowers the entry barrier to quantum software development by providing a reproducible, extensible toolchain that connects classical specifications to quantum execution. The open-source implementation of C2|Q> is available at https://github.com/C2-Q/C2Q and as a Python package at https://pypi.org/project/c2q-framework/.

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

↑