arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.19495quant-phcs.AI
收藏

Qiskit Code Assistant:训练 LLMs 以生成量子计算代码

Qiskit Code Assistant: Training LLMs for generating Quantum Computing Code

IBM Research(IBM研究院);IBM Quantum(IBM量子计算部门)

Nicolas Dupuis, Luca Buratti, Sanjay Vishwakarma, Aitana Viudes Forrat, David Kremer, Ismael Faro, Ruchir Puri, Juan Cruz-Benito

AI总结:

本文针对量子计算编程的独特需求与数据稀缺挑战,使用 Qiskit 库训练了专用的 Code LLMs,并开发了类 HumanEval 的量子计算基准,实验证明该模型在量子计算任务上优于现有最先进模型。

摘要:

代码大型语言模型(Code LLMs)已成为强大的工具,通过自动化编码过程并减少构建应用程序所需的时间和精力,彻底改变了软件开发领域。本文专注于训练 Code LLMs 以专精于量子计算领域。我们首先讨论了量子计算编程的独特需求,这些需求与经典编程方法或语言存在显著差异。专精于量子计算的 Code LLM 需要对量子计算和量子信息理论有基础性的理解。然而,可用量子代码示例的稀缺性,以及该领域快速发展从而需要持续更新数据集,带来了重大挑战。此外,我们讨论了使用 Qiskit 库训练 Code LLMs 以生成高质量量子代码的工作。这项工作包括对用于训练的 LLMs 的各个方面和具体训练条件的考察,以及我们当前模型所获得的结果。为了评估我们的模型,我们开发了一个类似于 HumanEval 的自定义基准,其中包含一组专为使用 Qiskit 的量子计算编程领域设计的测试。我们的研究结果表明,我们的模型在量子计算任务中优于现有的最先进模型。我们还提供了代码建议示例,将我们的模型与其他相关的 Code LLMs 进行了比较。最后,我们引入了关于 Code LLMs 对量子计算计算科学家、研究人员和从业者的潜在益处的讨论。我们还探讨了在此背景下可能相关的各种功能和未来工作。

英文摘要:

Code Large Language Models (Code LLMs) have emerged as powerful tools, revolutionizing the software development landscape by automating the coding process and reducing time and effort required to build applications. This paper focuses on training Code LLMs to specialize in the field of quantum computing. We begin by discussing the unique needs of quantum computing programming, which differ significantly from classical programming approaches or languages. A Code LLM specializing in quantum computing requires a foundational understanding of quantum computing and quantum information theory. However, the scarcity of available quantum code examples and the rapidly evolving field, which necessitates continuous dataset updates, present significant challenges. Moreover, we discuss our work on training Code LLMs to produce high-quality quantum code using the Qiskit library. This work includes an examination of the various aspects of the LLMs used for training and the specific training conditions, as well as the results obtained with our current models. To evaluate our models, we have developed a custom benchmark, similar to HumanEval, which includes a set of tests specifically designed for the field of quantum computing programming using Qiskit. Our findings indicate that our model outperforms existing state-of-the-art models in quantum computing tasks. We also provide examples of code suggestions, comparing our model to other relevant code LLMs. Finally, we introduce a discussion on the potential benefits of Code LLMs for quantum computing computational scientists, researchers, and practitioners. We also explore various features and future work that could be relevant in this context.

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

↑