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 条
  • [41] HOARE LOGIC FOR NONDETERMINISTIC REGULAR PROGRAMS - A NONSTANDARD APPROACH
    HORTALAGONZALEZ, MT
    RODRIGUEZARTALEJO, M
    THEORETICAL COMPUTER SCIENCE, 1989, 68 (03) : 277 - 302
  • [42] A Quantum Interpretation of Bunched Logic & Quantum Separation Logic
    Zhou, Li
    Barthe, Gilles
    Hsu, Justin
    Ying, Mingsheng
    Yu, Nengkun
    2021 36TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2021,
  • [43] Formal Verification of Quantum Algorithms Using Quantum Hoare Logic
    Liu, Junyi
    Zhan, Bohua
    Wang, Shuling
    Ying, Shenggang
    Liu, Tao
    Li, Yangjia
    Ying, Mingsheng
    Zhan, Naijun
    COMPUTER AIDED VERIFICATION, CAV 2019, PT II, 2019, 11562 : 187 - 207
  • [44] Concurrent incorrectness separation logic
    Raad, Azalea
    Berdine, Josh
    Dreyer, Derek
    O'Hearn, Peter W.
    Proceedings of the ACM on Programming Languages, 2022, 6 (POPL)
  • [45] HOARE LOGIC FOR PROGRAMS WITH PROCEDURES - WHAT HAS BEEN ACHIEVED
    OLDEROG, ER
    LECTURE NOTES IN COMPUTER SCIENCE, 1984, 164 : 383 - 395
  • [46] Logic programs with abstract constraint atoms
    Marek, VW
    Truszczynski, M
    PROCEEDING OF THE NINETEENTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND THE SIXTEENTH CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2004, : 86 - 91
  • [47] Reverse Hoare Logic
    de Vries, Edsko
    Kontavas, Vasileios
    SOFTWARE ENGINEERING AND FORMAL METHODS, 2011, 7041 : 155 - 171
  • [48] Improving execution models of logic programs by two-phase abstract interpretation
    Chang, Byeong-Mo
    Choe, Kwang-Moo
    Giacobazzi, Roberto
    ETRI Journal, 1995, 16 (04) : 27 - 47
  • [49] EFFICIENT BOTTOM-UP EXECUTION OF LOGIC PROGRAMS USING ABSTRACT INTERPRETATION
    CHANG, BM
    CHOE, KM
    HAN, T
    INFORMATION PROCESSING LETTERS, 1993, 47 (03) : 149 - 157
  • [50] A Correctness and Incorrectness Program Logic
    Bruni, Roberto
    Giacobazzi, Roberto
    Gori, Roberta
    Ranzato, Francesco
    JOURNAL OF THE ACM, 2023, 70 (02)