arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04816quant-ph
收藏

数独的一种简单QUBO公式化表述

A Simple QUBO Formulation of Sudoku

Sascha Mücke

AI总结:

本研究构建含729个变量的QUBO实例编码数独约束与线索,可通过量子退火器等求解,还能均匀采样有效数独解,并用启发式求解器与量子退火器验证了方法。

摘要:

本文介绍了如何使用二次无约束二元优化(Quadratic Unconstrained Binary Optimization,QUBO)求解数独谜题。为此,我们构建了一个含729个变量的QUBO实例,对带有全部约束的数独网格进行编码,随后对其进行部分赋值以纳入已知线索。生成的实例可通过量子退火器(Quantum Annealer)或其他任意策略求解,从而得到完全填充的数独网格。此外,由于所有有效解的能量均相同,该QUBO实例可用于从有效数独网格空间中进行均匀采样。我们使用启发式求解器和量子退火器对所述方法进行了验证。

英文摘要:

This article describes how to solve Sudoku puzzles using Quadratic Unconstrained Binary Optimization (QUBO). To this end, a QUBO instance with 729 variables is constructed, encoding a Sudoku grid with all constraints in place, which is then partially assigned to account for clues. The resulting instance can be solved with a Quantum Annealer, or any other strategy, to obtain the fully filled-out Sudoku grid. Moreover, as all valid solutions have the same energy, the QUBO instance can be used to sample uniformly from the space of valid Sudoku grids. We demonstrate the described method using both a heuristic solver and a Quantum Annealer.

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

↑