An Automata-based Framework for Verification and Bug Hunting in Quantum Circuits (Technical Report)

01/18/2023
by   Yu-Fang Chen, et al.
0

We introduce a new paradigm for analysing and finding bugs in quantum circuits. In our approach, the problem is given by a triple {P} C {Q} and the question is whether, given a set P of quantum states on the input of a circuit C, the set of quantum states on the output is equal to (or included in) a set Q. While this is not suitable to specify, e.g., functional correctness of a quantum circuit, it is sufficient to detect many bugs in quantum circuits. We propose a technique based on tree automata to compactly represent sets of quantum states and develop transformers to implement the semantics of quantum gates over this representation. Our technique computes with an algebraic representation of quantum states, avoiding the inaccuracy of working with floating-point numbers. We implemented the proposed approach in a prototype tool and evaluated its performance against various benchmarks from the literature. The evaluation shows that our approach is quite scalable, e.g., we managed to verify a large circuit with 40 qubits and 141,527 gates, or catch bugs injected into a circuit with 320 qubits and 1,758 gates, where all tools we compared with failed. In addition, our work establishes a connection between quantum program verification and automata, opening new possibilities to exploit the richness of automata theory and automata-based verification in the world of quantum computing.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/23/2021

Learning quantum circuits of some T gates

In this paper, we study the problem of learning quantum circuits of a ce...
research
04/30/2021

Automatically Differentiable Quantum Circuit for Many-qubit State Preparation

Constructing quantum circuits for efficient state preparation belongs to...
research
05/31/2023

Bell sampling from quantum circuits

A central challenge in the verification of quantum computers is benchmar...
research
03/17/2019

A quantum cellular automaton for one-dimensional QED

We propose a discrete spacetime formulation of quantum electrodynamics i...
research
11/14/2018

Faster manipulation of large quantum circuits using wire label reference diagrams

Large scale quantum computing is highly anticipated, and quantum circuit...
research
04/29/2020

Quantum circuit representation of Bayesian networks

Probabilistic graphical models such as Bayesian networks are widely used...
research
05/17/2018

Towards Large-scale Functional Verification of Universal Quantum Circuits

We introduce a framework for the formal specification and verification o...

Please sign up or login with your details

Forgot password? Click here to reset