Projection-based runtime assertions for testing and debugging Quantum programs


연구 분야: Verification



학회: Proceedings of the ACM on Programming Languages, Volume 4, Issue OOPSLA


초록

In this paper, we propose Proq, a runtime assertion scheme for testing and debugging quantum programs on a quantum computer. The predicates in Proq are represented by projections (or equivalently, closed subspaces of the state space), following Birkhoff-von Neumann quantum logic. The satisfaction of a projection by a quantum state can be directly checked upon a small number of projective measurements rather than a large number of repeated executions. On the theory side, we rigorously prove that checking projection-based assertions can help locate bugs or statistically assure that the semantic function of the tested program is close to what we expect, for both exact and approximate quantum programs. On the practice side, we consider hardware constraints and introduce several techniques to transform the assertions, making them directly executable on the measurement-restricted quantum computers. We also propose to achieve simplified assertion implementation using local projection technique with soundness guaranteed. We compare Proq with existing quantum program assertions and demonstrate the effectiveness and efficiency of Proq by its applications to assert two sophisticated quantum algorithms, the Harrow-Hassidim-Lloyd algorithm and Shor’s algorithm.


Author Profile
Gushu Li

University of California at Santa Barbara USA

Austria
Author Profile
Li Zhou

MPI-SP Germany

Germany
Author Profile
Nengkun Yu

University of Technology Sydney Australia

Australia

📄 논문 정보

발행 연도 2020년
인용수 80
출판 국가 Germany, Australia, Austria
사이트 ACM
좋아요 수 0

연관 논문 목록 (224건)