Solving Segment Display Problems Using Quantum Grover's Search Algorithm
Shanyan Chen, Ali Al-Bayaty, Xiaoyu Song, Marek Perkowski
TL;DR
This work addresses solving Segment Display Problems (SDPs) with quantum search by mapping SDPs to a Boolean oracle suitable for Grover's algorithm. It introduces a two-level oracle design: a high-level decomposition into segment-code verifiers, decoders, and arithmetic units, and a layout-aware, circuit-level synthesis aided by the Combination Sequence of Exclusive Sums (CSES) to minimize quantum cost. Central contributions include formalizing SDP encoding as a triple $\langle Q,D,C\rangle$, detailing constraints as inner and amid geometric and cryptarithmetic categories, and presenting concrete circuit components (SC verifier, SC-BCD, TDN generator) built with Stesso for efficient $C^nX$ gate synthesis. A case study solving a matchstick SDP on a noisy Qiskit simulator demonstrates feasibility, achieving correct solutions with a modest ancilla budget and illustrating potential scalability to broader CSPs. The approach lays groundwork for a reusable quantum library and automated solver workflows applicable to alphabet-based and other constraint-rich problems in quantum hardware.
Abstract
This paper introduces a new Boolean-based methodology for constructing Segment Display Problems (SDPs) in the quantum domain and solving them using Grover's quantum search algorithm. In the classical domain, the SDPs are typically solved using various techniques, such as human deduction, heuristic search, and methods for solving Boolean satisfiability (SAT) and constraint satisfaction problems (CSPs) that are based on different problem design models. In this paper, our newly introduced methodology proposes a quantum-based approach for solving such SDPs, by building their quantum oracle using binary reversible circuits and our previously proposed step-decreasing structures shaped operators (Stesso). To demonstrate the usability of this proposed method, we experimentally solve an SDP instance of the matchstick problem using Grover's algorithm with a noisy simulated quantum computer implemented in Qiskit.
