On Repairing Quantum Programs Using ChatGPT
Open Access
- 16 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 9-16
Abstract
Automated Program Repair (APR) is a vital area in software engineering that generates automatic patches for vulnerable programs. While numerous techniques have been proposed for repairing classical programs, 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.Keywords
All Related Versions
Funding Information
- Japan Society for the Promotion of Science (JP23H033)
This publication has 17 references indexed in Scilit:
- Bugs4Q: A benchmark of existing bugs to enable controlled testing and debugging studies for quantum programsJournal of Systems and Software, 2023
- Bugs4Q: A Benchmark of Real Bugs for Quantum Programs2021
- Automatic Program RepairIEEE Software, 2021
- QBugs: A Collection of Reproducible Bugs in Quantum Algorithms and a Supporting Infrastructure to Enable Controlled Quantum Software Testing and Debugging Experiments2021
- Automated program repairCommunications of the ACM, 2019
- Statistical assertions for validating patterns and finding bugs in quantum programs2019
- Cybersecurity in an Era with Quantum Computers: Will We Be Ready?IEEE Security & Privacy, 2018
- Automatic software repair2018
- Q#2018
- Automatic Software RepairACM Computing Surveys, 2018