Saved in:
Bibliographic Details
Main Authors: Klymenko, Mykhailo, Hoang, Thong, Wilkinson, Samuel A., Goldozian, Bahar, Ma, Suyu, Xu, Xiwei, Lu, Qinghua, Usman, Muhammad, Zhu, Liming
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.10348
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915984945709056
author Klymenko, Mykhailo
Hoang, Thong
Wilkinson, Samuel A.
Goldozian, Bahar
Ma, Suyu
Xu, Xiwei
Lu, Qinghua
Usman, Muhammad
Zhu, Liming
author_facet Klymenko, Mykhailo
Hoang, Thong
Wilkinson, Samuel A.
Goldozian, Bahar
Ma, Suyu
Xu, Xiwei
Lu, Qinghua
Usman, Muhammad
Zhu, Liming
contents Software testing is a critical component of the classical software development lifecycle, and this principle is expected to hold true for quantum software as it evolves toward large-scale production and adherence to industry standards. Developing and testing quantum software presents unique challenges due to the non-deterministic nature of quantum information, the high dimensionality of the underlying Hilbert space, complex hardware noise, and the inherent non-local properties of quantum systems. In this work, we model quantum subroutines as parametrized quantum channels and explore the feasibility of creating practical unit tests using probabilistic assertions, combined with either quantum tomography or statistical tests. To address the computational complexity associated with unit testing in quantum systems, we propose incorporating context-awareness into the testing process. The trade-offs between accuracy, state space coverage, and efficiency associated with the proposed theoretical framework for quantum unit testing have been demonstrated through its application to a simple three-qubit quantum subroutine that prepares a Greenberger-Horne-Zeilinger state, as well as to subroutines within a program implementing Shor's algorithm.
format Preprint
id arxiv_https___arxiv_org_abs_2506_10348
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Context-Aware Unit Testing for Quantum Subroutines
Klymenko, Mykhailo
Hoang, Thong
Wilkinson, Samuel A.
Goldozian, Bahar
Ma, Suyu
Xu, Xiwei
Lu, Qinghua
Usman, Muhammad
Zhu, Liming
Quantum Physics
Software testing is a critical component of the classical software development lifecycle, and this principle is expected to hold true for quantum software as it evolves toward large-scale production and adherence to industry standards. Developing and testing quantum software presents unique challenges due to the non-deterministic nature of quantum information, the high dimensionality of the underlying Hilbert space, complex hardware noise, and the inherent non-local properties of quantum systems. In this work, we model quantum subroutines as parametrized quantum channels and explore the feasibility of creating practical unit tests using probabilistic assertions, combined with either quantum tomography or statistical tests. To address the computational complexity associated with unit testing in quantum systems, we propose incorporating context-awareness into the testing process. The trade-offs between accuracy, state space coverage, and efficiency associated with the proposed theoretical framework for quantum unit testing have been demonstrated through its application to a simple three-qubit quantum subroutine that prepares a Greenberger-Horne-Zeilinger state, as well as to subroutines within a program implementing Shor's algorithm.
title Context-Aware Unit Testing for Quantum Subroutines
topic Quantum Physics
url https://arxiv.org/abs/2506.10348