Qiskit HumanEval:量子代码生成模型的评估基准
Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Models
AI总结:
本研究提出人工整理的Qiskit HumanEval量子代码基准数据集,含100余个任务及配套测试等,系统评估大语言模型生成Qiskit量子代码的能力,验证了可行性并建立新基准。
摘要:
量子程序通常使用量子软件开发工具包(SDK)进行开发。量子计算的快速发展亟需新工具来简化这一开发流程,生成式人工智能(GenAI)便是这类工具的潜在选项之一。本研究中,我们提出并使用Qiskit HumanEval数据集——这是一个人工整理的任务集合,旨在基准测试大语言模型(LLMs)使用量子SDK Qiskit生成量子代码的能力。该数据集包含100余个量子计算任务,每个任务都配有提示词、标准解答、全面的测试用例,以及用于评估生成解决方案正确性的难度等级。我们针对Qiskit HumanEval数据集的任务,系统评估了一组LLMs的性能,重点关注模型生成可执行量子代码的能力。我们的研究结果不仅证明了使用LLMs生成量子代码的可行性,还为该领域的持续发展建立了新基准,并推动对GenAI驱动的量子代码生成工具的进一步探索与开发。
英文摘要:
Quantum programs are typically developed using quantum Software Development Kits (SDKs). The rapid advancement of quantum computing necessitates new tools to streamline this development process, and one such tool could be Generative Artificial intelligence (GenAI). In this study, we introduce and use the Qiskit HumanEval dataset, a hand-curated collection of tasks designed to benchmark the ability of Large Language Models (LLMs) to produce quantum code using Qiskit - a quantum SDK. This dataset consists of more than 100 quantum computing tasks, each accompanied by a prompt, a canonical solution, a comprehensive test case, and a difficulty scale to evaluate the correctness of the generated solutions. We systematically assess the performance of a set of LLMs against the Qiskit HumanEval dataset's tasks and focus on the models ability in producing executable quantum code. Our findings not only demonstrate the feasibility of using LLMs for generating quantum code but also establish a new benchmark for ongoing advancements in the field and encourage further exploration and development of GenAI-driven tools for quantum code generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。