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

Qrisp 中应用于数独问题的量子回溯算法

Quantum Backtracking in Qrisp Applied to Sudoku Problems

Raphael Seidel, René Zander, Matic Petrič, Niklas Steinmann, David Q. Liu, Nikolay Tcholtchev, Manfred Hauswirth

AI总结:

本文在 Qrisp 量子编程语言中实现了 Montanaro 量子回溯算法,给出了仅需 $6n+14$ 个 CX 门的量子步进算子构造方法,并首次可编译地求解最多 9 个空格的 4x4 数独实例。

摘要:

Ashley Montanaro 提出的量子回溯算法引起了广泛关注,因为它为一大类经典优化算法提供了量子加速。该算法不受贫瘠高原(Barren-Plateaus)问题的影响,并且能够很好地过渡到容错时代,因为它只需要有限数量的任意角度门。尽管具有潜力,该算法的实现工作仍然有限,推测是由于其抽象的表达形式。在这项工作中,我们提供了针对任意回溯实例实现量子步进算子的详细说明。对于深度为 n 的二叉回溯树的单个受控扩散器,我们的实现仅需要 $6n+14$ 个 CX 门。我们详细描述了利用我们的量子回溯接口为数独问题构造接受预言机和拒绝预言机的过程。所展示的代码使用 Qrisp(一种高级量子编程语言)编写,使其能够在大多数当前的物理后端和模拟器上执行。随后,我们进行了若干基于模拟器的实验,并演示了求解最多有 9 个空格的 4x4 数独实例。据我们所知,这是首个具有这种通用性的可编译实现,标志着量子软件工程中一个重大而令人振奋的进步。

英文摘要:

The quantum backtracking algorithm proposed by Ashley Montanaro raised considerable interest, as it provides a quantum speed-up for a large class of classical optimization algorithms. It does not suffer from Barren-Plateaus and transfers well into the fault-tolerant era, as it requires only a limited number of arbitrary angle gates. Despite its potential, the algorithm has seen limited implementation efforts, presumably due to its abstract formulation. In this work, we provide a detailed instruction on implementing the quantum step operator for arbitrary backtracking instances. For a single controlled diffuser of a binary backtracking tree with depth n, our implementation requires only $6n+14$ CX gates. We detail the process of constructing accept and reject oracles for Sudoku problems using our interface to quantum backtracking. The presented code is written using Qrisp, a high-level quantum programming language, making it executable on most current physical backends and simulators. Subsequently, we perform several simulator based experiments and demonstrate solving 4x4 Sudoku instances with up to 9 empty fields. This is, to the best of our knowledge, the first instance of a compilable implementation of this generality, marking a significant and exciting step forward in quantum software engineering.

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

↑