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

非确定性量子程序终止问题的算法分析

Algorithmic Analysis of Termination Problems for Nondeterministic Quantum Programs

Jianling Fu, Hui Jiang, Ming Xu, Yuxin Deng, Zhi-Bin Li

AI总结:

本文研究非确定性量子程序的两类终止问题,通过可达子空间与发散集的代数结构给出判定条件,并分别实现指数时间和多项式时间的调度器合成。

摘要:

我们考虑具有非确定性的量子程序的两类终止问题:1)一个程序的输入是否在所有调度器下都以概率一终止?如果不是,如何合成一个调度器来证明其非终止?2)是否所有输入在各自调度器下都以概率一终止?如果是,进一步的问题询问是否存在一个调度器能够迫使所有输入以概率一终止,以及如何合成它;否则,如何提供一个输入来反驳全称终止性?对于第一类问题的有效验证,我们通过可达子空间对量子程序状态的可达集进行上近似,其代数结构是一个线性空间。另一方面,我们研究发散状态集,从这些状态出发,程序在某些调度器下以概率零终止。发散集具有明确的代数结构。利用这些结构,我们通过一个充分必要条件来解决判定问题,即可达子空间与发散集不相交。此外,调度器合成在指数时间内完成。对于第二类问题,我们将判定问题归约为不变子空间的存在性,从该子空间出发,程序在所有调度器下以概率零终止。不变子空间由线性方程刻画。该不变子空间上的状态是非终止性的证据。此外,调度器合成通过寻找一个有限调度器模式来完成,该模式迫使所有输入以正概率终止。重复该模式即可得到所需的通用调度器,迫使所有输入以概率一终止。第二类中的所有问题都被证明可以在多项式时间内解决。

英文摘要:

We consider the two categories of termination problems of quantum programs with nondeterminism: 1) Is an input of a program terminating with probability one under all schedulers? If not, how can a scheduler be synthesized to evidence the nontermination? 2) Are all inputs terminating with probability one under their respective schedulers? If yes, a further question asks whether there is a scheduler that forces all inputs to be terminating with probability one together with how to synthesize it; otherwise, how can an input be provided to refute the universal termination? For the effective verification of the first category, we over-approximate the reachable set of quantum program states by the reachable subspace, whose algebraic structure is a linear space. On the other hand, we study the set of divergent states from which the program terminates with probability zero under some scheduler. The divergent set has an explicit algebraic structure. Exploiting them, we address the decision problem by a necessary and sufficient condition, i.e. the disjointness of the reachable subspace and the divergent set. Furthermore, the scheduler synthesis is completed in exponential time. For the second category, we reduce the decision problem to the existence of invariant subspace, from which the program terminates with probability zero under all schedulers. The invariant subspace is characterized by linear equations. The states on that invariant subspace are evidence of the nontermination. Furthermore, the scheduler synthesis is completed by seeking a pattern of finite schedulers that forces all inputs to be terminating with positive probability. The repetition of that pattern yields the desired universal scheduler that forces all inputs to be terminating with probability one. All the problems in the second category are shown to be solved in polynomial time.

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

↑