Abstract interpretation, Hoare logic, and incorrectness logic for quantum programs

被引:4
|
作者
Feng, Yuan [1 ]
Li, Sanjiang [1 ]
机构
[1] Univ Technol Sydney, Ctr Quantum Software & Informat, Ultimo, Australia
基金
澳大利亚研究理事会;
关键词
Quantum programming; Abstract interpretation; Incorrectness logic;
D O I
10.1016/j.ic.2023.105077
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
interpretation, Hoare logic, and incorrectness (or reverse Hoare) logic are powerful techniques for static analysis of computer programs. They have all been successfully extended to the quantum setting, but developed largely in parallel. This paper explores the relationship between these techniques in the context of verifying quantum whileprograms, where the abstract domain and the set of assertions for quantum states are wellstructured. We show that any complete quantum abstract interpretation induces a quantum Hoare logic and a quantum incorrectness logic, both being sound and relatively complete. Moreover, the induced logic systems operate in a forward manner, making them more suitable for certain applications. Conversely, any sound and relatively complete quantum Hoare logic or incorrectness logic induces a complete quantum abstract interpretation. As an application, we show the non-existence of any sound and relatively complete quantum Hoare logic or incorrectness logic if tuples of local subspaces are taken as assertions. & COPY; 2023 Elsevier Inc. All rights reserved.
引用
收藏
页数:22
相关论文
共 50 条
  • [1] On Incorrectness Logic for Quantum Programs
    Yan, Peng
    Jiang, Hanru
    Yu, Nengkun
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2022, 6 (OOPSLA):
  • [2] Hoare logic in the abstract
    Martin, Ursula
    Mathiesen, Erik A.
    Oliva, Paulo
    COMPUTER SCIENCE LOGIC, PROCEEDINGS, 2006, 4207 : 501 - 515
  • [3] Floyd-Hoare Logic for Quantum Programs
    Ying, Mingsheng
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2011, 33 (06):
  • [4] DENOTATIONAL ABSTRACT INTERPRETATION OF LOGIC PROGRAMS
    MARRIOTT, K
    SONDERGAARD, H
    JONES, ND
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1994, 16 (03): : 607 - 648
  • [5] ABSTRACT INTERPRETATION AND APPLICATION TO LOGIC PROGRAMS
    COUSOT, P
    COUSOT, R
    JOURNAL OF LOGIC PROGRAMMING, 1992, 13 (2-3): : 103 - 179
  • [6] Incorrectness Logic for Graph Programs
    Poskitt, Christopher M.
    GRAPH TRANSFORMATION, ICGT 2021, 2021, 12741 : 81 - 101
  • [7] HOARE LOGIC, EXECUTABLE SPECIFICATIONS, AND LOGIC PROGRAMS
    FUCHS, NE
    STRUCTURED PROGRAMMING, 1992, 13 (03): : 129 - 135
  • [8] THE HOARE LOGIC OF CONCURRENT PROGRAMS
    LAMPORT, L
    ACTA INFORMATICA, 1980, 14 (01) : 21 - 37
  • [9] PROOFS AS STATEFUL PROGRAMS: A FIRST-ORDER LOGIC WITH ABSTRACT HOARE TRIPLES, AND AN INTERPRETATION INTO AN IMPERATIVE LANGUAGE
    Powell, Thomas
    LOGICAL METHODS IN COMPUTER SCIENCE, 2024, 20 (01) : 1 - 7