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

关于使用ChatGPT修复量子程序的研究

On Repairing Quantum Programs Using ChatGPT

Xiaoyu Guo, Jianjun Zhao, Pengzhan Zhao

AI总结:

针对量子编程领域缺乏自动化程序修复技术的问题,该研究探索用ChatGPT修复量子程序,在Bugs4Q基准上实现38个漏洞中29个的成功修复,为量子程序修复自动化提供了可行方向。

摘要:

自动化程序修复(Automated Program Repair,APR)是软件工程领域的一个重要方向,旨在为存在漏洞的程序自动生成补丁。尽管目前已有大量针对经典程序的修复技术,但量子编程领域尚缺乏同类自动化修复技术。在这项初步探索中,我们研究了ChatGPT在量子程序修复中的应用,并在量子程序漏洞基准套件Bugs4Q上评估了其性能。研究结果证明了使用ChatGPT进行量子程序修复的可行性。具体而言,我们评估了ChatGPT修复Bugs4Q基准中漏洞的能力,发现它成功修复了38个漏洞中的29个。本研究是迈向量子程序修复自动化的一项极具前景的进展。

英文摘要:

Automated Program Repair (APR) is a vital area in software engineering aimed at generating automatic patches for vulnerable programs. While numerous techniques have been proposed for repairing classical programs, the realm of quantum programming lacks a comparable automated repair technique. In this initial exploration, we investigate the use of ChatGPT for quantum program repair and evaluate its performance on Bugs4Q, a benchmark suite of quantum program bugs. Our findings demonstrate the feasibility of employing ChatGPT for quantum program repair. Specifically, we assess ChatGPT's ability to address bugs within the Bugs4Q benchmark, revealing its success in repairing 29 out of 38 bugs. This research represents a promising step towards automating the repair process for quantum programs.

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

↑