QChecker: Detecting Bugs in Quantum Programs via Static Analysis
Abstract
Static analysis is the process of analyzing software code without executing the software. It can help find bugs and potential problems in software that may only appear at runtime. Although many static analysis tools have been developed for classical software, due to the nature of quantum programs, these existing tools are unsuitable for analyzing quantum programs. This paper presents QChecker, a static analysis tool that supports finding bugs in quantum programs in Qiskit. QChecker consists of two main modules: a module for extracting program information based on abstract syntax tree (AST), and a module for detecting bugs based on patterns. We evaluate the performance of QChecker using the Bugs4Q benchmark. The evaluation results show that QChecker can effectively detect various bugs in quantum programs.
Cite
@article{arxiv.2304.04387,
title = {QChecker: Detecting Bugs in Quantum Programs via Static Analysis},
author = {Pengzhan Zhao and Xiongfei Wu and Zhuo Li and Jianjun Zhao},
journal= {arXiv preprint arXiv:2304.04387},
year = {2023}
}
Comments
This paper will be appeared in the proceedings of the 4th International Workshop on Quantum Software Engineering (Q-SE 2023) on May 14, 2023