arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2308.04741cs.PLquant-ph
收藏

经典-量子程序概率行为的局部推理

Local Reasoning about Probabilistic Behaviour for Classical-Quantum Programs

Huiling Wu, Yuxin Deng, Ming Xu

AI总结:

针对经典-量子程序因量子测量和无界循环导致的概率行为验证难题,提出含分布公式的量子霍尔逻辑,证明其指称语义可靠性,验证HHL和Shor算法正确性并嵌入Coq形成CoqQLR框架,支持半自动化推理。

摘要:

验证同时包含经典和量子构造的程序的功能正确性是一项具有挑战性的任务。量子测量和无界while循环所带来的概率行为极大地复杂化了验证任务。我们提出了一种新的量子霍尔逻辑,通过引入分布公式来指定概率属性,从而实现对概率行为的局部推理。我们证明了该逻辑中的证明规则相对于指称语义是可靠的。为了证明该逻辑的有效性,我们形式化验证了包括HHL(哈达玛尔测试、相位估计和线性系统求解)和Shor算法在内的非平凡量子算法的正确性。此外,我们将该逻辑嵌入到证明助手Coq中。由此产生的逻辑框架称为CoqQLR,可促进经典-量子程序的半自动化推理。

英文摘要:

Verifying the functional correctness of programs with both classical and quantum constructs is a challenging task. The presence of probabilistic behaviour entailed by quantum measurements and unbounded while loops complicate the verification task greatly. We propose a new quantum Hoare logic for local reasoning about probabilistic behaviour by introducing distribution formulas to specify probabilistic properties. We show that the proof rules in the logic are sound with respect to a denotational semantics. To demonstrate the effectiveness of the logic, we formally verify the correctness of non-trivial quantum algorithms including the HHL and Shor's algorithms. Moreover, we embed our logic into the proof assistant Coq. The resulting logical framework, called CoqQLR, can facilitate semi-automated reasoning about classical--quantum programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑