On the Feasibility of Quantum Unit Testing

dc.contributor.authorMiranskyy, Andriy
dc.contributor.authorCampos, José
dc.contributor.authorMjeda, Anila
dc.contributor.authorZhang, Lei
dc.contributor.authorGuzmán, Ignacio García Rodríguez de
dc.date.accessioned2025-08-13T20:14:21Z
dc.date.issued2025-07-23
dc.description.abstractThe increasing complexity of quantum software presents significant challenges for software verification and validation, particularly in the context of unit testing. This work presents a comprehensive study on quantum-centric unit tests, comparing traditional statistical approaches with tests specifically designed for quantum circuits. These include tests that run only on a classical computer, such as the Statevector test, as well as those executable on quantum hardware, such as the Swap test and the novel Inverse test. Through an empirical study and detailed analysis on 1,796,880 mutated quantum circuits, we investigate (a) each test's ability to detect subtle discrepancies between the expected and actual states of a quantum circuit, and (b) the number of measurements required to achieve high reliability. The results demonstrate that quantum-centric tests, particularly the Statevector test and the Inverse test, provide clear advantages in terms of precision and efficiency, reducing both false positives and false negatives compared to statistical tests. This work contributes to the development of more robust and scalable strategies for testing quantum software, supporting the future adoption of fault-tolerant quantum computers and promoting more reliable practices in quantum software engineering.
dc.description.sponsorshipThis work was partially supported by the Natural Sciences and Engineering Research Council of Canada (grant # RGPIN2022-03886), the LASIGE Research Unit, ref. UID/00408/2025 - LASIGE, the QCloud QuantumEd project funded by the 26Dagstuhl Seminar 24512 – Quantum Software Engineering homepage: https: //www.dagstuhl.de/en/seminars/seminar-calendar/seminar-details/24512, accessed July 2025. 16 EOSC INFRAEOSC-03-2020 (grant #101017536), CyberSkills HCI Pillar 3 Project 18364682, Science Foundation Ireland grant 13/RC/2094 P2, and Q-SERV-Q&T Project (PID2021- 124054OB-C32, of the Ministry of Economy, Industry and Competitiveness and FEDER). The authors thank the Digital Research Alliance of Canada for providing computational resources.
dc.description.urihttp://arxiv.org/abs/2507.17235
dc.format.extent18 pages
dc.genrejournal articles
dc.genrepreprints
dc.identifierdoi:10.13016/m22wgg-jfmm
dc.identifier.urihttps://doi.org/10.48550/arXiv.2507.17235
dc.identifier.urihttp://hdl.handle.net/11603/39742
dc.language.isoen
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Faculty Collection
dc.relation.ispartofUMBC Information Systems Department
dc.rightsThis item is likely protected under Title 17 of the U.S. Copyright Law. Unless on a Creative Commons license, for uses protected by Copyright Law, contact the copyright holder or the author.
dc.subjectComputer Science - Software Engineering
dc.subjectQuantum Physics
dc.titleOn the Feasibility of Quantum Unit Testing
dc.typeText
dcterms.creatorhttps://orcid.org/0000-0001-9343-3654

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
2507.17235v1.pdf
Size:
677.19 KB
Format:
Adobe Portable Document Format