arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.27836quant-phcs.CL
收藏

Q-Bridge:通过LLM实现量子机器学习的代码翻译

Q-Bridge: Code Translation for Quantum Machine Learning via LLMs

Rochester Institute of Technology(罗彻斯特理工学院);Kent State University(肯特州立大学);Rutgers University(罗格斯大学)

Runjia Zeng, Priyabrata Senapati, Ruixiang Tang, Dongfang Liu, Qiang Guan

AI总结:

Q-Bridge通过LLM指导的代码翻译框架,系统性地将经典机器学习实现转换为可执行的量子机器学习变体,建立了首个可重复的框架和数据集,为可扩展的量子AI发展奠定基础。

摘要:

大型语言模型最近在弥合经典机器学习与量子机器学习之间差距方面展现出潜力。然而,标准化、高质量的数据集和稳健的翻译框架的缺乏限制了该领域的进展。我们介绍了Q-Bridge,一个由LLM引导的代码翻译框架,系统地将CML实现转换为可执行的QML变体。我们的方法基于一个自我涉及的流水线,迭代扩展已验证的种子代码库,生成大规模数据集CML-2-QML,整合可验证和不可验证的代码对。Q-Bridge模型通过监督LoRA适应进行微调,以实现可扩展且内存高效的训练,实现了跨多样架构的忠实且可解释的量子代码生成。实证分析证实了直接CML到QML翻译的可行性,并揭示了经典和量子范式之间的一致性结构对齐。案例研究进一步表明,Q-Bridge可以保持确定性正确性,并能够实现创造性的架构探索。本工作建立了首个可重复的框架和数据集,为可扩展的量子AI发展奠定了基础。

英文摘要:

Large language models have recently shown potential in bridging the gap between classical machine learning and quantum machine learning. However, the lack of standardized, high-quality datasets and robust translation frameworks limits progress in this domain. We introduce Q-Bridge, an LLM-guided code translation framework that systematically converts CML implementations into executable QML variants. Our approach builds on a self-involving pipeline that iteratively expands a verified seed codebase into a large-scale dataset, CML-2-QML, integrating verifiable and unverifiable code pairs. The Q-Bridge model is fine-tuned using supervised LoRA adaptation for scalable and memory-efficient training, achieving faithful and interpretable quantum code generation across diverse architectures. Empirical analysis confirms the feasibility of direct CML-to-QML translation and reveals consistent structural alignment between classical and quantum paradigms. Case studies further demonstrate that Q-Bridge can maintain deterministic correctness and also enable creative architectural exploration. This work establishes the first reproducible framework and dataset for LLM-driven quantum code translation, offering a foundation for scalable quantum AI development.

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

↑