Content area

Abstract

Quantum computing is a promising field that can solve complex problems beyond traditional computers’ capabilities. Developing high-quality quantum software applications, called quantum software engineering, has recently gained attention. However, quantum software development faces challenges related to code quality. A recent study found that many open-source quantum programs are affected by quantum-specific code smells, with long circuit being the most common. While the study provided relevant insights into the prevalence of code smells in quantum circuits, it did not explore the potential effect of transpilation, a necessary step for executing quantum computer programs, on the emergence of code smells. Indeed, transpilation might alter those characteristics employed to detect the presence of a smell on a circuit. To address this limitation, we present a new study investigating the impact of transpilation on quantum-specific code smells and how different target gate sets affect the results. We conducted experiments on 17 open-source quantum programs alongside a set of 100 synthetic circuits. We found that transpilation can significantly alter the metrics that are used to detect code smells, even into previously smell-free circuits, with the long circuit smell being the most susceptible to transpilation. Furthermore, the choice of the gate set significantly influences the presence and severity of code smells in transpiled circuits, highlighting the need for careful gate set selection to mitigate their impact. These findings have implications for circuit optimization and high-quality quantum software development. Further research is needed to understand the consequences of code smells and their potential impact on quantum computations, considering the characteristics and constraints of different gate sets and hardware platforms.

Details

Title
An empirical study into the effects of transpilation on quantum circuit smells
Author
Stefano, Manuel De 1   VIAFID ORCID Logo  ; Nucci, Dario Di 1 ; Palomba, Fabio 1 ; Lucia, Andrea De 1 

 Software Engineering (SeSa) Lab - University of Salerno, Salerno, Italy (GRID:grid.11780.3f) (ISNI:0000 0004 1937 0335) 
Publication title
Volume
29
Issue
3
Pages
61
Publication year
2024
Publication date
May 2024
Publisher
Springer Nature B.V.
Place of publication
Dordrecht
Country of publication
Netherlands
ISSN
13823256
e-ISSN
15737616
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2024-05-02
Milestone dates
2024-02-20 (Registration); 2024-02-13 (Accepted)
Publication history
 
 
   First posting date
02 May 2024
ProQuest document ID
3049932049
Document URL
https://www.proquest.com/scholarly-journals/empirical-study-into-effects-transpilation-on/docview/3049932049/se-2?accountid=208611
Copyright
© The Author(s) 2024. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2024-06-01
Database
ProQuest One Academic