Design by Contract Framework for Quantum Software

Masaomi Yamaguchi, Nobukazu Yoshioka
3/31/2023
cs.CL

No confident code implementation found for this paper.

Abstract

To realize reliable quantum software, techniques to automatically ensure the quantum software's correctness have recently been investigated. However, they primarily focus on fixed quantum circuits rather than the procedure of building quantum circuits. Despite being a common approach, the correctness of building circuits using different parameters following the same procedure is not guaranteed. To this end, we propose a design-by-contract framework for quantum software. Our framework provides a python-embedded language to write assertions on the input and output states of all quantum circuits built by certain procedures. Additionally, it provides a method to write assertions about the statistical processing of measurement results to ensure the procedure's correctness for obtaining the final result. These assertions are automatically checked using a quantum computer simulator. For evaluation, we implemented our framework and wrote assertions for some widely used quantum algorithms. Consequently, we found that our framework has sufficient expressive power to verify the whole procedure of quantum software.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{yamaguchi2023design,
  title  = {Design by Contract Framework for Quantum Software},
  author = {Masaomi Yamaguchi and Nobukazu Yoshioka},
  year   = {2023},
  eprint = {2303.17750},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.17750v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.17750.svg)](https://codeofpaper.com/paper/2303.17750)

Discussion