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

被引:8
作者
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
相关论文
共 35 条
[1]  
Altenkirch T, 2005, IEEE S LOG, P249
[2]  
Apt K., 2010, Verification of Sequential and Concurrent Programs
[3]   Fifty years of Hoare's logic [J].
Apt, Krzysztof R. ;
Olderog, Ernst-Ruediger .
FORMAL ASPECTS OF COMPUTING, 2019, 31 (06) :751-807
[4]   Counterexample-guided abstraction refinement for symbolic model checking [J].
Clarke, E ;
Grumberg, O ;
Jha, S ;
Lu, Y ;
Veith, H .
JOURNAL OF THE ACM, 2003, 50 (05) :752-794
[5]   MODEL CHECKING AND ABSTRACTION [J].
CLARKE, EM ;
GRUMBERG, O ;
LONG, DE .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1994, 16 (05) :1512-1542
[6]  
Cleaveland R, 1994, LECT NOTES COMPUT SC, V836, P417
[7]  
Comini M, 2008, LECT NOTES COMPUT SC, V5079, P144
[8]  
Cousot P., 1997, Conference Record of POPL '97: The 24th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, P316, DOI 10.1145/263699.263744
[9]  
Cousot P., 2000, Conference Record of POPL'00: 27th ACM SIGPLAN-SIGACT. Symposium on Principles of Programming Languages. Papers Presented at the Symposium, P12, DOI 10.1145/325694.325699
[10]  
Cousot P., 1977, P 4 ACM SIGACT SIGPL, P238, DOI [DOI 10.1145/512950.512973, 10.1145/512950.512973]