Quantum Hoare logic with classical variables
- URL: http://arxiv.org/abs/2008.06812v2
- Date: Fri, 30 Apr 2021 07:15:59 GMT
- Title: Quantum Hoare logic with classical variables
- Authors: Yuan Feng and Mingsheng Ying
- Abstract summary: We propose a quantum Hoare logic for a simple while language which involves both classical and quantum variables.
With novel definitions of classical-quantum states and corresponding assertions, the logic system is quite simple and similar to the traditional Hoare logic for classical programs.
- Score: 3.1181601933418897
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Hoare logic provides a syntax-oriented method to reason about program
correctness and has been proven effective in the verification of classical and
probabilistic programs. Existing proposals for quantum Hoare logic either lack
completeness or support only quantum variables, thus limiting their capability
in practical use. In this paper, we propose a quantum Hoare logic for a simple
while language which involves both classical and quantum variables. Its
soundness and relative completeness are proven for both partial and total
correctness of quantum programs written in the language. Remarkably, with novel
definitions of classical-quantum states and corresponding assertions, the logic
system is quite simple and similar to the traditional Hoare logic for classical
programs. Furthermore, to simplify reasoning in real applications, auxiliary
proof rules are provided which support standard logical operation in the
classical part of assertions, and of super-operator application in the quantum
part. Finally, a series of practical quantum algorithms, in particular the
whole algorithm of Shor's factorisation, are formally verified to show the
effectiveness of the logic.
Related papers
- BI-based Reasoning about Quantum Programs with Heap Manipulations [5.744265100221585]
We provide well-founded semantics for a quantum programming language Qwhile-hp with heap manipulations.
We develop a quantum BI-style logic that includes interpretations for separating implication.
We then adopt this quantum BI-style logic as an assertion language to reason about heap-manipulated quantum programs.
arXiv Detail & Related papers (2024-09-16T10:34:45Z) - Local Reasoning about Probabilistic Behaviour for Classical-Quantum
Programs [3.871660145364189]
We propose a new quantum Hoare logic for local reasoning about probabilistic behaviour.
We show that the proof rules in the logic are sound with respect to a denotational semantics.
We formally verify the correctness of non-trivial quantum algorithms including the HHL and Shor's algorithms.
arXiv Detail & Related papers (2023-08-09T07:23:22Z) - Simple Tests of Quantumness Also Certify Qubits [69.96668065491183]
A test of quantumness is a protocol that allows a classical verifier to certify (only) that a prover is not classical.
We show that tests of quantumness that follow a certain template, which captures recent proposals such as (Kalai et al., 2022) can in fact do much more.
Namely, the same protocols can be used for certifying a qubit, a building-block that stands at the heart of applications such as certifiable randomness and classical delegation of quantum computation.
arXiv Detail & Related papers (2023-03-02T14:18:17Z) - Abstract interpretation, Hoare logic, and incorrectness logic for
quantum programs [6.2147758224415055]
Hoare logic, and incorrectness (or reverse Hoare) logic are powerful techniques for static analysis of computer programs.
We show that any complete quantum abstract interpretation induces a quantum Hoare logic and a quantum incorrectness logic.
arXiv Detail & Related papers (2022-06-28T05:49:55Z) - Entanglement and coherence in Bernstein-Vazirani algorithm [58.720142291102135]
Bernstein-Vazirani algorithm allows one to determine a bit string encoded into an oracle.
We analyze in detail the quantum resources in the Bernstein-Vazirani algorithm.
We show that in the absence of entanglement, the performance of the algorithm is directly related to the amount of quantum coherence in the initial state.
arXiv Detail & Related papers (2022-05-26T20:32:36Z) - Birkhoff-von Neumann Quantum Logic as an Assertion Language for Quantum
Programs [1.1878820609988696]
A first-order logic with quantum variables is needed as an assertion language for specifying and reasoning about various properties of quantum programs.
In this paper, we introduce a first-order extension of Birkhoff-von Neumann quantum logic with universal and existential quantifiers over quantum variables.
arXiv Detail & Related papers (2022-05-04T08:57:44Z) - LQP: The Dynamic Logic of Quantum Information [77.34726150561087]
This paper introduces a dynamic logic formalism for reasoning about information flow in composite quantum systems.
We present a finitary syntax, a relational semantics and a sound proof system for this logic.
As applications, we use our system to give formal correctness for the Teleportation protocol and for a standard Quantum Secret Sharing protocol.
arXiv Detail & Related papers (2021-10-04T12:20:23Z) - The Logic of Quantum Programs [77.34726150561087]
We present a logical calculus for reasoning about information flow in quantum programs.
In particular we introduce a dynamic logic that is capable of dealing with quantum measurements, unitary evolutions and entanglements in compound quantum systems.
arXiv Detail & Related papers (2021-09-14T16:08:37Z) - Depth-efficient proofs of quantumness [77.34726150561087]
A proof of quantumness is a type of challenge-response protocol in which a classical verifier can efficiently certify quantum advantage of an untrusted prover.
In this paper, we give two proof of quantumness constructions in which the prover need only perform constant-depth quantum circuits.
arXiv Detail & Related papers (2021-07-05T17:45:41Z) - A Quantum Interpretation of Bunched Logic for Quantum Separation Logic [22.507329566323982]
We develop a program logic where pre- and post-conditions are BI formulas describing quantum states.
We exercise the logic for proving the security of quantum one-time pad and secret sharing.
arXiv Detail & Related papers (2021-01-30T22:24:36Z) - Secure Two-Party Quantum Computation Over Classical Channels [63.97763079214294]
We consider the setting where the two parties (a classical Alice and a quantum Bob) can communicate only via a classical channel.
We show that it is in general impossible to realize a two-party quantum functionality with black-box simulation in the case of malicious quantum adversaries.
We provide a compiler that takes as input a classical proof of quantum knowledge (PoQK) protocol for a QMA relation R and outputs a zero-knowledge PoQK for R that can be verified by classical parties.
arXiv Detail & Related papers (2020-10-15T17:55:31Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.