A quantum algorithm for string matching
Pradeep Niroula, Yunseong Nam · npj Quantum Information · 2021
Abstract Algorithms that search for a pattern within a larger data-set appear ubiquitously in text and image processing. Here, we present an explicit, circuit-level implementation of a quantum pattern-matching algorithm that matches a search string (pattern) of length M inside a longer text of length N . Our algorithm has a time complexity of $$\tilde{O}(\sqrt{N})$$ O ̃ ( N ) , while the space complexity remains modest at O ( N + M ). We report the quantum gate counts relevant for both pre-fault-tolerant and fault-tolerant regimes.
Cited by 42 works. doi:10.1038/s41534-021-00369-3 Open-access PDF
Authors
References
- Fast Pattern Matching in Strings
- Occurrence of the potent mutagens 2- nitrobenzanthrone and 3-nitrobenzanthrone in fine airborne particles
- Quantum amplitude amplification and estimation
- Quantum Random Access Memory
- Sublinear approximate string matching and biological applications
- Quantum Amplitude Amplification and Estimation
- The Complexity of Pattern Matching for a Random String
- Matched filtering of gravitational waves from inspiraling compact binaries: Computational cost and template placement
- Handbook of Exact String Matching Algorithms
- A Subexponential-Time Quantum Algorithm for the Dihedral Hidden Subgroup Problem