An experience-based classification of quantum bugs in quantum software
Preprint
Abstract
As quantum computers continue to improve in quality and scale, there is a growing need for accessible software frameworks for programming them. However, the unique behavior of quantum systems means specialized approaches, beyond traditional software development, are required. This is particularly true for debugging due to quantum bugs, i.e., bugs that occur precisely because an algorithm is a quantum algorithm. Pinpointing a quantum bug's root cause often requires significant developer time, as there is little established guidance for quantum debugging techniques. Developing such guidance is the main challenge we sought to address. In this work, we describe a set of 14 quantum bugs, sourced primarily from our experience as quantum software developers, and supplemented by analysis of open-source GitHub repositories. We detail their context, symptoms, and the techniques applied to identify and fix them. While classifying these bugs based on existing schemes, we observed that most emerged due to unique interactions between multiple aspects of an algorithm or workflow. In other words, they occurred because more than one thing went wrong, which provided important insight into why quantum debugging is more challenging. Furthermore, based on this clustering, we found that - unexpectedly - there is no clear relationship between debugging strategies and bug classes. Further research is needed to develop effective and systematic quantum debugging strategies.Keywords
All Related Versions
This publication has 47 references indexed in Scilit:
- A formally certified end-to-end implementation of Shor’s factorization algorithmProceedings of the National Academy of Sciences, 2023
- Quantum software testing: State of the artJournal of Software: Evolution and Process, 2021
- Exploiting Dynamic Quantum Circuits in a Quantum Algorithm with Superconducting QubitsPhysical Review Letters, 2021
- An Automated Deductive Verification Framework for Circuit-building Quantum Programs2021
- QCEC: A JKQ tool for quantum circuit equivalence checkingSoftware Impacts, 2021
- t|ket⟩: a retargetable compiler for NISQ devicesQuantum Science and Technology, 2020
- staq —A full-stack quantum processing toolkitQuantum Science and Technology, 2020
- Toward automatic verification of quantum programsFormal Aspects of Computing, 2019
- Improving Gate-Level Simulation of Quantum CircuitsQuantum Information Processing, 2003
- Efficient Factorization with a Single Pure Qubit andMixed QubitsPhysical Review Letters, 2000