An empirical study into the effects of transpilation on quantum circuit smells

Author:

Stefano Manuel DeORCID,Nucci Dario Di,Palomba Fabio,Lucia Andrea De

Abstract

AbstractQuantum 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.

Funder

Università degli Studi di Salerno

Publisher

Springer Science and Business Media LLC

Reference48 articles.

1. Api reference for qiskit.circuit.random.random_circuit (2024). https://docs.quantum.ibm.com/api/qiskit/0.19/qiskit.circuit.random.random_circuit

2. Qiskit 0.43.0 documentation (2024). https://qiskit.org/documentation/

3. Transpiler (qiskit.transpiler)—Qiskit 0.43.1 documentation (2024). https://qiskit.org/documentation/apidoc/transpiler.html

4. Ahmad A, Khan AA, Waseem M, Fahmideh M, Mikkonen T (2022) Towards process centered architecting for quantum software systems. In: 2022 IEEE International conference on quantum software (QSW), pp 26–31. IEEE

5. Aleksandrowicz G, Alexander T, Barkoutsos P, Bello L, Ben-Haim Y, Bucher D, Cabrera-Hernández FJ, Carballo-Franquis J, Chen A, Chen CF et al (2019) Qiskit: An open-source framework for quantum computing. Accessed 16 Mar

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3