We present a quantum algorithm for sampling an edge on a path between two nodes s and t in an undirected graph given as an adjacency matrix, and show that this can be done in query complexity that is asymptotically the same, up to log factors, as the query complexity of detecting a path between s and t. We use this path sampling algorithm as a subroutine for st-path finding and st-cut-set finding algorithms in some specific cases. Our main technical contribution is an algorithm for generating a quantum state that is proportional to the positive witness vector of a span program.
翻译:我们提出了一个量子算法,用于在两个节点和 t之间的路径上取样,在以相邻矩阵形式给出的未定向图表中进行取样,并显示,这可以在查询复杂度中进行,这种复杂度与测算系数基本相同,与测算系数相同,因为探测 s 和 t 之间路径的查询复杂度相同。我们使用这条路径取样算法作为在某些特定情况下进行点路发现和定位查找算法的子路程。我们的主要技术贡献是生成量子状态的算法,与测距程序正向证人矢量成正比。</s>