On the Feasibility of Quantum Unit Testing
Andriy Miranskyy, Jos\'e Campos, Anila Mjeda, Lei Zhang, Ignacio Garc\'ia Rodr\'iguez de Guzm\'an

TL;DR
This paper evaluates quantum unit testing methods, comparing classical and quantum-specific tests through extensive empirical analysis, highlighting the superior accuracy and efficiency of quantum-centric tests for verifying quantum software.
Contribution
It introduces and empirically assesses novel quantum-specific unit tests, demonstrating their advantages over traditional statistical approaches in quantum software verification.
Findings
Quantum-centric tests outperform statistical tests in accuracy.
Statevector and Inverse tests reduce false positives and negatives.
Efficient detection of discrepancies with fewer measurements.
Abstract
The 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Mechanics and Applications
