arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.08548quant-phcs.PL
收藏

一种用于具有无界循环的混合量子程序的有效量子霍尔逻辑

An Effective Quantum Hoare Logic for Hybrid Quantum Programs with Unbounded Loops

CEA LIST/LSL, Qbricks Team(CEA LIST/LSL,Qbricks团队);Université de Lorraine, CNRS, Inria, LORIA, MOCQUA team(洛林大学、法国国家科学研究中心、法国国家信息与自动化研究所、洛林研究与教学实验室,MOCQUA团队)

Christophe Chareton, Jad Issa, Romain Péchoux

AI总结:

针对混合量子程序中无界循环带来的分析挑战,引入整数混合路径和,提出基于循环不变量确定终止与资源消耗的策略,实现半自动Haskell程序,为设计完整静态资源分析工具迈出第一步。

摘要:

虽然量子硬件仍然有限,但具有复杂控制结构(包括无界循环)的混合量子 - 经典算法正在出现,这给量子程序分析带来了新挑战,比如准确估计给定程序的资源消耗。同时,像符号执行这样的精确分析技术很大程度上忽略了混合和无界递归。另一方面,当前一般支持它们的量子霍尔逻辑缺乏表现力,且缺少可在半自动工具中实现的高效计算等式推理。本文通过首个结合有效功能验证和资源(终止或成本)估计的半自动静态分析解决方案应对这一挑战,引入整数混合路径和(IHPS)来处理无界while循环,提出通过循环不变量确定终止和预期资源消耗的通用策略,并以几个例子说明,最后将该解决方案实现为半自动Haskell程序。这是朝着为混合量子程序设计完整静态资源分析工具迈出的第一步,对实际量子计算发展至关重要。

英文摘要:

While quantum hardware remains limited, hybrid quantum-classical algorithms with complex control structures, including unbounded loops, are emerging, posing new challenges for quantum program analysis, including the accurate estimation of the resource consumption of a given program. Meanwhile, precise analysis techniques such as symbolic execution have largely left out hybridization and unbounded recursion. On the other hand, current quantum Hoare logics that generally support them are lacking in expressiveness and miss out on efficient computational equational reasoning that could be implemented in a semi-automated tool. This leaves a gap awaiting to be filled. In this work, we answer this challenge with the first semi-automated static analysis solution combining effective functional verification and resource (termination or cost) estimation for hybrid quantum programs with unbounded loops. Towards that end, we introduce integer hybrid path-sums (IHPS), extending path-sums to handle unbounded while loops, as a representation of possible executions of a program. A generic strategy for determining termination and expected resource consumption via loop invariants is also proposed and illustrated on several examples. Finally, the solution is implemented as a semi-automatic Haskell program. This work is the first step toward the design of a complete static resource analysis tool for hybrid quantum programs, essential for the development of real-world quantum computing.

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

↑