On Repairing Quantum Programs Using ChatGPT

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Guo, Xiaoyu, Zhao, Jianjun, Zhao, Pengzhan
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910308750065664
author Guo, Xiaoyu
Zhao, Jianjun
Zhao, Pengzhan
author_facet Guo, Xiaoyu
Zhao, Jianjun
Zhao, Pengzhan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_14913
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On Repairing Quantum Programs Using ChatGPT
Guo, Xiaoyu
Zhao, Jianjun
Zhao, Pengzhan
Software Engineering
Programming Languages
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.
title On Repairing Quantum Programs Using ChatGPT
topic Software Engineering
Programming Languages
url https://arxiv.org/abs/2401.14913