A Quantum Algorithm for String Matching

ORAL

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 O(√N ) and a modest space complexity of O(N + M ). We report the quantum gate counts relevant for both pre-fault-tolerant and fault-tolerant regimes.

*P.N. acknowledges funding from the DoE ASCR Accelerated Research in Quantum Computing program (award No. DE-SC0020312) and the DoE ASCR Quantum Testbed Pathfinder program (award No. DE-SC0019040).

Presenters

  • Pradeep Niroula

    • NIST/University of Maryland, College Park

Authors

  • Pradeep Niroula

    • NIST/University of Maryland, College Park
  • Yunseong Nam

    • IonQ Inc.
    • IonQ