Code Comments for Quantum Software Development Kits: An Empirical Study on Qiskit
Zenghui Zhou, Yuechen Li, Yi Cai, Jinlong Wen, Xiaohan Yu, Zheng Zheng, Beibei Yin

TL;DR
This paper presents CC4Q, a dataset of quantum code comments for Qiskit, and an empirical study revealing key differences and quantum-specific knowledge in comments compared to classical software.
Contribution
It introduces the first dataset of quantum code comments and provides an empirical analysis of their structure, developer intentions, and quantum-specific content.
Findings
Quantum comments differ significantly from classical ones.
Quantum-specific knowledge is prevalent in code comments.
The dataset facilitates future research in quantum software development.
Abstract
Quantum computing is gaining attention from academia and industry. With the quantum Software Development Kits (SDKs), programmers can develop quantum software to explore the power of quantum computing. However, programmers may face challenges in understanding quantum software due to the non-intuitive quantum mechanics. To facilitate software development and maintenance, code comments offered in quantum SDKs serve as a natural language explanation of program functionalities and logical flows. Despite their importance, scarce research systematically reports their value and provides constructive guidelines for programmers. To address this gap, our paper focuses on Qiskit, one of the most popular quantum SDKs, and presents CC4Q, the first dataset of code comments for quantum computing. CC4Q incorporates 9677 code comment pairs and 21970 sentence-level code comment units, the latter of which…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Spreadsheets and End-User Computing · Software Testing and Debugging Techniques
