Code Comments for Quantum Software Development Kits: An Empirical Study on Qiskit

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhou, Zenghui, Li, Yuechen, Cai, Yi, Wen, Jinlong, Yu, Xiaohan, Zheng, Zheng, Yin, Beibei
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915645516414976
author Zhou, Zenghui
Li, Yuechen
Cai, Yi
Wen, Jinlong
Yu, Xiaohan
Zheng, Zheng
Yin, Beibei
author_facet Zhou, Zenghui
Li, Yuechen
Cai, Yi
Wen, Jinlong
Yu, Xiaohan
Zheng, Zheng
Yin, Beibei
contents 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 involve heavy human annotation. Regarding the annotation, we validate the applicability of the developer-intent taxonomy used in classical programs, and also propose a new taxonomy considering quantum-specific knowledge. We conduct an empirical study comprehensively interpreting code comments from three perspectives: comment structure and coverage, developers' intentions, and associated quantum topics. Our findings uncover key differences in code comments between classical and quantum software, and also outline quantum-specific knowledge relevant to quantum software development.
format Preprint
id arxiv_https___arxiv_org_abs_2512_00766
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Code Comments for Quantum Software Development Kits: An Empirical Study on Qiskit
Zhou, Zenghui
Li, Yuechen
Cai, Yi
Wen, Jinlong
Yu, Xiaohan
Zheng, Zheng
Yin, Beibei
Software Engineering
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 involve heavy human annotation. Regarding the annotation, we validate the applicability of the developer-intent taxonomy used in classical programs, and also propose a new taxonomy considering quantum-specific knowledge. We conduct an empirical study comprehensively interpreting code comments from three perspectives: comment structure and coverage, developers' intentions, and associated quantum topics. Our findings uncover key differences in code comments between classical and quantum software, and also outline quantum-specific knowledge relevant to quantum software development.
title Code Comments for Quantum Software Development Kits: An Empirical Study on Qiskit
topic Software Engineering
url https://arxiv.org/abs/2512.00766