A Resource Efficient Ising Model‐Based Quantum Sudoku Solver

ABSTRACT Background Quantum algorithms exploit superposition and parallelism to address complex combinatorial problems, many of which fall into the non‐polynomial (NP) class. Sudoku, a widely known logic‐based puzzle, is proven to be NP‐complete and thus presents a suitable testbed for exploring quantum optimization approaches. The Ising model—originally introduced for NP‐hard Ising spin glass problems—provides a natural mathematical framework for expressing constraints in a form amenable to quantum computation. Objective This work aims to develop a quantum Sudoku solver inspired by the Ising model that minimizes the number of logical qubits required, making it suitable for today's resource‐limited quantum hardware. The broader goal is to demonstrate a modeling strategy that may generalize to other NP optimization problems. Methods The solver construction begins by translating Sudoku constraints into mathematical expressions represented through couplings of atomic spins. These constraints are formulated into observable operators using Pauli operators, enabling the calculation of expectation values over candidate quantum states. Individual quantum algorithmic components are then integrated into a global optimization pipeline. The performance and correctness of this solver are evaluated through the Quantum Approximate Optimization Algorithm (QAOA) combined with the COBYLA classical optimizer within the IBM Qiskit SDK. A code example illustrates the implementation of multiple puzzle constraints and the verification of the resulting quantum circuits. Results The modeling approach successfully encodes Sudoku rules into an Ising Hamiltonian with reduced qubit requirements. Preliminary evaluations using QAOA and COBYLA demonstrate that the solver can identify puzzle‐consistent solutions while maintaining low resource consumption. The quantum circuit construction matches theoretical expectations, and the code snippet confirms successful constraint enforcement within the Qiskit environment. Conclusions The proposed quantum Sudoku solver highlights the potential of Ising‐based formulations to address NP optimization problems on near‐term quantum devices. By reducing logical qubit usage without sacrificing algorithmic integrity, this strategy may support broader applications in constrained optimization. The implementation serves as both a proof of concept and a practical guide for extending Ising‐inspired quantum modeling to other NP‐hard domains.

Authors

Institutions

Publication Details

Journal
Software Practice and Experience
Published
2026-03-15
DOI
https://doi.org/10.1002/spe.70063
Primary Topic
Quantum Computing Algorithms and Architecture
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Resource Efficient Ising Model‐Based Quantum Sudoku Solver

Maryam Basit, Kevin Wang, Md. Sanaul Haque, Wen‐Li Wang et al.
Software Practice and Experience
Quantum Computing Algorithms and Architecture
article

A Resource Efficient Ising Model‐Based Quantum Sudoku Solver

Maryam Basit, Kevin Wang, Md. Sanaul Haque, Wen‐Li Wang, Mei‐Huei Tang, Yuan Tian
article en

Abstract

ABSTRACT Background Quantum algorithms exploit superposition and parallelism to address complex combinatorial problems, many of which fall into the non‐polynomial (NP) class. Sudoku, a widely known logic‐based puzzle, is proven to be NP‐complete and thus presents a suitable testbed for exploring quantum optimization approaches. The Ising model—originally introduced for NP‐hard Ising spin glass problems—provides a natural mathematical framework for expressing constraints in a form amenable to quantum computation. Objective This work aims to develop a quantum Sudoku solver inspired by the Ising model that minimizes the number of logical qubits required, making it suitable for today's resource‐limited quantum hardware. The broader goal is to demonstrate a modeling strategy that may generalize to other NP optimization problems. Methods The solver construction begins by translating Sudoku constraints into mathematical expressions represented through couplings of atomic spins. These constraints are formulated into observable operators using Pauli operators, enabling the calculation of expectation values over candidate quantum states. Individual quantum algorithmic components are then integrated into a global optimization pipeline. The performance and correctness of this solver are evaluated through the Quantum Approximate Optimization Algorithm (QAOA) combined with the COBYLA classical optimizer within the IBM Qiskit SDK. A code example illustrates the implementation of multiple puzzle constraints and the verification of the resulting quantum circuits. Results The modeling approach successfully encodes Sudoku rules into an Ising Hamiltonian with reduced qubit requirements. Preliminary evaluations using QAOA and COBYLA demonstrate that the solver can identify puzzle‐consistent solutions while maintaining low resource consumption. The quantum circuit construction matches theoretical expectations, and the code snippet confirms successful constraint enforcement within the Qiskit environment. Conclusions The proposed quantum Sudoku solver highlights the potential of Ising‐based formulations to address NP optimization problems on near‐term quantum devices. By reducing logical qubit usage without sacrificing algorithmic integrity, this strategy may support broader applications in constrained optimization. The implementation serves as both a proof of concept and a practical guide for extending Ising‐inspired quantum modeling to other NP‐hard domains.

Software Practice and Experience
Pennsylvania State University (US), Nanjing Institute of Technology (CN), California State University, Long Beach (US), Lappeenranta-Lahti University of Technology (FI), Gannon University (US)
Openalex Percentile: Top 24%
Quantum Computing Algorithms and Architecture
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.