Quantum algorithm speeds up searching for 2D patterns in large data
Quantum Algorithm with Quadratic Speedup for 2D Pattern Matching
Data Structures and Algorithms
Summary
Finding small patterns inside bigger 2D grids can be slow with regular computers. The authors show how a quantum computer can search much faster, roughly by checking only the square root of the total entries. Their approach builds on famous quantum search methods and uses a special way to handle pattern details called a 'skyline.' This method assumes some information about the pattern is prepared beforehand. It shows how quantum tricks can speed up searching tasks previously thought to be slow.
What this means in practice
- •For quantum software developers: Implement faster 2D pattern search tools for quantum computers using precomputed pattern structures and the skyline method.
- •For computational geometry engineers: Explore quantum-assisted methods to enhance geometric pattern detection in large datasets by leveraging the skyline concept.
A theory result. No direct application yet.
Authors
Rishabh Gala, Rahul Shah
Abstract
We consider the problem of 2 dimensional pattern matching under Quantum Query model. Here, we are given a rectangular text $T[0..n_1-1][0..n_2-1]$ and a pattern $P[0..m_1 -1][0..m_2-1]$. We take $N = n_1n_2$ and $M = m_1m_2$ as the sizes of text and the pattern respectively (we assume $M < N$). Based upon the Quantum Advantage given by Grover's search (and subsequent Dürr-Høyer search), we create a solution which takes $\tilde{O}(\sqrt{N})$ query complexity to answer if the pattern $P$ exists in $T$. Our solution uses deterministic sampling as a primary component. As noted by earlier work in the literature, deterministic sampling is inadequate and witness tables are essential components for 2D matching. In our settings, we assume that the witness table of the pattern is precomputed classically and is available as an oracle to the quantum algorithm. Our main novel component is how to compute and employ a geometric structure called ``skyline" without losing the quantum advantage.