基于非幂等Kleene代数的量子程序的代数推理
Algebraic Reasoning of Quantum Programs via Non-idempotent Kleene Algebra
摘要:
受基于Kleene代数的经典程序分析成功的启发,我们研究了量子程序的代数推理。一个突出的例子是著名的Kleene代数与测试(KAT),它提供了理论见解和实用工具。代数推理的简洁性对于量子程序的可扩展分析来说是特别可取的,因为在大多数现有方法中涉及指数大小的矩阵。然而,KAT的一些关键特征,包括幂等律和经典测试的良好性质,由于其独特的量子特征,特别是在分支中,在量子程序的背景下无法保持。我们提出了非幂等Kleene代数(NKA)作为一个自然的选择,并确定完整和健全的语义模型NKA以及它们的量子解释。结合KAT的应用,给出了量子编译优化的NKA代数证明和量子while程序的范式。此外,我们用测试扩展NKA(即,NKAT),其中测试模型量子谓词以下的效果代数,并说明如何编码命题量子霍尔逻辑作为NKAT定理。
英文摘要:
We investigate the algebraic reasoning of quantum programs inspired by the success of classical program analysis based on Kleene algebra. One prominent example of such is the famous Kleene Algebra with Tests (KAT), which has furnished both theoretical insights and practical tools. The succinctness of algebraic reasoning would be especially desirable for scalable analysis of quantum programs, given the involvement of exponential-size matrices in most of the existing methods. A few key features of KAT including the idempotent law and the nice properties of classical tests, however, fail to hold in the context of quantum programs due to their unique quantum features, especially in branching. We propose Non-idempotent Kleene Algebra (NKA) as a natural alternative and identify complete and sound semantic models for NKA as well as their quantum interpretations. In light of applications of KAT, we demonstrate algebraic proofs in NKA of quantum compiler optimization and the normal form of quantum while-programs. Moreover, we extend NKA with Tests (i.e., NKAT), where tests model quantum predicates following effect algebra, and illustrate how to encode propositional quantum Hoare logic as NKAT theorems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。