Design by Contract Framework for Quantum Software

03/31/2023
by   Masaomi Yamaguchi, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

research
03/02/2018

QWIRE Practice: Formal Verification of Quantum Circuits in Coq

We describe an embedding of the QWIRE quantum circuit language in the Co...
research
10/06/2022

AutoQC: Automated Synthesis of Quantum Circuits Using Neural Network

While the ability to build quantum computers is improving dramatically, ...
research
03/30/2021

Modelling Quantum Circuits with UML

None of the quantum computing applications imagined will ever become a r...
research
01/22/2021

Static Analysis of Quantum Programs via Gottesman Types

The Heisenberg representation of quantum operators provides a powerful t...
research
10/26/2017

Q|SI〉: A Quantum Programming Environment

This paper describes a quantum programming environment, named Q|SI〉. It ...
research
05/11/2020

Secure Software Leasing

We introduce the notion of secure software leasing (SSL): this allows fo...
research
04/28/2023

A New Quantum Dempster Rule of Combination

Dempster rule of combination (DRC) is widely used for uncertainty reason...

Please sign up or login with your details

Forgot password? Click here to reset