Quantum Pattern Matching Fast on Average
Open accessThe DOI matches its Crossref record; 37 of the 39 references it cites were found in a registry or an index.
Abstract
The d-dimensional pattern matching problem is to find an occurrence of a pattern of length m×⋯×m\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$m \times \dots \times m$$\end{document} within a text of length n×⋯×n\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$n \times \dots \times n$$\end{document}, with n≥m\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$n \ge m$$\end{document}. This task models various problems in text and image processing, among other application areas. This work describes a quantum algorithm which solves the pattern matching problem for random patterns and texts in time O~((n/m)d/22O(d3/2logm))\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widetilde{O}((n/m)^{d/2} 2^{O(d^{3/2}\sqrt{\log m})})$$\end{document}. For large m this is super-polynomially faster than the best possible classical algorithm, which requires time Ω~(nd/2+(n/m)d)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widetilde{\Omega }( n^{d/2} + (n/m)^d)$$\end{document}. The algorithm is based on the use of a quantum subroutine for finding hidden shifts in d dimensions, which is a variant of algorithms proposed by Kuperberg.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“there is a quantum algorithm which combines amplitude ampli fi cation with ideas from the dihedral hidden subgroup problem and runs in time O ð ffiffiffiffiffiffiffiffiffi N = M p 2 O ð ffiffiffiffiffiffiffi ffi log M p Þ Þ up to logarithmic factors, as compared with the best possible classical runtime O ð N = M þ ffiffiffi N p Þ . 29”
From Quantum algorithms: an overview (2016) · cites this paper as [29]
In the citing paper
“Although this programme is not yet complete, it has already provided some formal justi fi cation for empirical observations in condensed-matter physics about relative hardness of these problems.”
From Quantum algorithms: an overview (2016) · cites this paper as [29]
In the citing paper
“Different algorithms have been introduced through years to improve the solution of the string matching problem [137–139].”
From Quantum computing algorithms: getting closer to critical problems in computational biology (2022) · cites this paper as [138]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Quantum Mechanics Helps in Searching for a Needle in a Haystack
Grover, L. K. (1997) · Physical Review Letters · doi:10.1103/physrevlett.79.325 · Cited by 4,306 · cited 1×
“Grover’s algorithm [17] can be seen as searching for a pattern of length 1 in a text of length n using O( √ n) queries to the text.”
Fast Pattern Matching in Strings
Knuth, D. E., Morris, Jr., & Pratt, V. R. (1977) · SIAM Journal on Computing · doi:10.1137/0206024 · Cited by 2,936 · cited 5×
“A simple algorithm was given by Knuth [21, Section 8] which runs in time O(n(logqm)/m + m) with high probability on such random inputs, while still preserving efficient worst-case behaviour.”
BackgroundMethodInfluentialA guided tour to approximate string matching
Navarro, G. (2001) · ACM Computing Surveys · doi:10.1145/375360.375365 · Cited by 2,561
A fast string searching algorithm
Boyer, R. S., & Moore, J. S. (1977) · Communications of the ACM · doi:10.1145/359842.359859 · Cited by 2,290 · cited 1×
“As well as the KMP algorithm already mentioned, another approach frequently used in practice classically is the Boyer-Moore algorithm [5], which achieves good performance for random inputs when the alphabet size is large.”
MethodQuantum amplitude amplification and estimation
Brassard, G., Høyer, P., Mosca, M., & Tapp, A. (2002) · Contemporary Mathematics · doi:10.1090/conm/305/05215 · Cited by 1,680 · cited 1×
“We will need the following simple lemma, whose proof follows immediately from amplitude amplification [6].”
Strengths and Weaknesses of Quantum Computing
Bennett, C. H., Bernstein, E., Brassard, G., & Vazirani, U. (1997) · SIAM Journal on Computing · doi:10.1137/s0097539796300933 · Cited by 1,470 · cited 2×
“nistic sampling [33]. It is easy to see that this complexity is optimal in the worst case up to logarithmic factors, using standard lower bounds on the quantum query complexity of unstructured search [4]. The algorithm of Ramesh and Vinay achieves a faster runtime than the algorithms described here in the case that mi…”
BackgroundMethodInfluentialGiovannetti, V., Lloyd, S., & Maccone, L. (2008) · Physical Review Letters · doi:10.1103/physrevlett.100.160501 · Cited by 935 · cited 1×
“ery to T or P uses time O(1). We can think of T and P as either easily evaluated oracle functions in the query complexity model, or data stored in an eciently accessible quantum random-access memory [17]. Observe that, for any xed d, 2O(d3=2 p logm) = o(m) for any >0. When mis large, Theorem 1thus demonstrates a su…”
BackgroundCrochemore, M., Hancart, C., & Lecroq, T. (2007) · Cambridge University Press eBooks · doi:10.1017/cbo9780511546853 · Cited by 676 · cited 1×
“For surveys of the (now vast) classical pattern matching literature, see for example [10,25].”
BackgroundQuantum Amplitude Amplification and Estimation
Gilles Brassard, A., Høyer, P., Mosca, M., & Tapp, A. (2000) · doi:10.48550/arxiv.quant-ph/0005055 · Cited by 514 · cited 1×
“We will need the following simple lemma, whose proof follows immediately from amplitude amplification [6].”
A Subexponential-Time Quantum Algorithm for the Dihedral Hidden Subgroup Problem
Kuperberg, G. (2005) · SIAM Journal on Computing · doi:10.1137/s0097539703436345 · Cited by 347 · cited 8×
“The algorithm to determine s can be seen as a hybrid of two algorithms of Kuperberg [21], so we begin by discussing the intuition behind Kuperberg’s original algorithm for the case d = 1 (see [21,28] for more).”
BackgroundMethodInfluential
Cited by
Quantum algorithms: an overview
Montanaro, A. (2016) · npj Quantum Information · doi:10.1038/npjqi.2015.23 · Cited by 1,071
Self-citationQuantum generalisation of feedforward neural networks
Wan, K. H., Dahlsten, O., Kristjánsson, H., Gardner, R., & Kim, M. S. (2017) · npj Quantum Information · doi:10.1038/s41534-017-0032-4 · Cited by 276
The prospects of quantum computing in computational molecular biology
Outeiral, C., Strahm, M., Shi, J., Morris, G. M., Benjamin, S. C., & Deane, C. M. (2021) · WIREs Computational Molecular Science · doi:10.1002/wcms.1481 · Cited by 232
“Due to the limitations of space, we are forced to leave aside some topics, for example, string algorithms that could impact sequence analysis [30], medical imaging algorithms [31], numerical algorithms for differential equations [32,33] and other mathematical problems [34], or methods to analyze biological networks [3…”
MethodQuantum computing at the frontiers of biological sciences
Emani, P. S., Warrell, J., Anticevic, A., Bekiranov, S., Gandal, M., McConnell, M. J., Sapiro, G., Aspuru-Guzik, A., Baker, J. T., Bastiani, M., et al. (2021) · Nature Methods · doi:10.1038/s41592-020-01004-3 · Cited by 163
Review of Quantum Image Processing
Wang, Z., Xu, M., & Zhang, Y. (2021) · Archives of Computational Methods in Engineering · doi:10.1007/s11831-021-09599-2 · Cited by 137
Metadata
- Authors
- Montanaro, A.
- Affiliations
- University of Bristol (GB)
- Corresponding author
- Montanaro, Ashley
- ORCID
- Montanaro, Ashley
- Venue
- Algorithmica
- Published
- 2015-08-27
- Volume
- 77
- Issue
- 1
- Pages
- 16-39
- ISSN
- 0178-4617 (ISSN-L)
- 1432-0541
- OpenAlex
- W2118172634
- Cited by
- 84
- References
- 39
- Citations by year
- 2026: 6 · 2025: 10 · 2024: 9 · 2023: 10 · 2022: 20 · 2021: 14 · 2020: 4 · 2019: 4 · 2018: 3 · 2017: 1 · 2016: 3
- FWCI
- 2.29
- Type
- journal article
- Language
- en
- Open access
- Licence
- other-oa
- www.springer.com/tdm (tdm)
- Locations
- Algorithmica (publishedVersion)
- Bristol Research (University of Bristol) (publishedVersion, other-oa)
- Explore Bristol Research (submittedVersion, other-oa)
- Funders
- Engineering and Physical Sciences Research Council (GB) (EP/L021005/1)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Quantum Computing Algorithms and Architecture
- Physical Sciences › Mathematics › Theoretical Computer Science › Algorithms and Data Compression
- Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum Information and Cryptography
- Keywords
- quantum algorithms, random patterns, average-case complexity
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Quantum Pattern Matching Fast on Average. https://app.cochat.ai/papers/10.1007/s00453-015-0060-4
- The paper
- Montanaro, A. (2017). Quantum Pattern Matching Fast on Average. Algorithmica. https://doi.org/10.1007/s00453-015-0060-4
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.