Unveiling Code Clones in Quantum Programming: An Empirical Study with Qiskit

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Manoku, Kenta, Zhao, Jianjun
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912184264556544
author Manoku, Kenta
Zhao, Jianjun
author_facet Manoku, Kenta
Zhao, Jianjun
contents Code clones, referring to identical or similar code fragments, have long posed challenges in classical programming, impacting software quality, maintainability, and scalability. However, their presence and characteristics in quantum programming remain unexplored. This paper presents an empirical study of code clones in quantum programs, specifically focusing on software developed using the Qiskit framework. We examine the existence, distribution, density, and size of code clones in quantum software, revealing a high density of Type-2 and Type-3 clones involving minor modifications. Our findings suggest that these clones are more frequent in quantum software, likely due to the complexity of quantum algorithms and their integration with classical logic. This highlights the need for advanced clone detection and refactoring tools specifically designed for the quantum domain to improve software maintainability and scalability.
format Preprint
id arxiv_https___arxiv_org_abs_2501_06420
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unveiling Code Clones in Quantum Programming: An Empirical Study with Qiskit
Manoku, Kenta
Zhao, Jianjun
Software Engineering
Quantum Physics
Code clones, referring to identical or similar code fragments, have long posed challenges in classical programming, impacting software quality, maintainability, and scalability. However, their presence and characteristics in quantum programming remain unexplored. This paper presents an empirical study of code clones in quantum programs, specifically focusing on software developed using the Qiskit framework. We examine the existence, distribution, density, and size of code clones in quantum software, revealing a high density of Type-2 and Type-3 clones involving minor modifications. Our findings suggest that these clones are more frequent in quantum software, likely due to the complexity of quantum algorithms and their integration with classical logic. This highlights the need for advanced clone detection and refactoring tools specifically designed for the quantum domain to improve software maintainability and scalability.
title Unveiling Code Clones in Quantum Programming: An Empirical Study with Qiskit
topic Software Engineering
Quantum Physics
url https://arxiv.org/abs/2501.06420