Frontiers in BioinformaticsBioinformaticsPeer-reviewed journal article
Quantum implementation of multi-pattern string matching for k-mer detection
Christos PapalitsasiD, Ioannis MouratidisiD, Michail Patsakis, Evangelos StogiannosiD, Ilias Georgakopoulos‐SoaresiD, Grigorios KoulourasiD
Abstract
MotivationThe exponential growth of publicly available genomic data has created unprecedented opportunities for sequence-based discovery. Locating specific k-mers is fundamental to diverse applications, including metagenomic classification, pathogen and cancer detection, and variant calling yet efficient identification of multiple k-mer patterns across large sequencing data and massive databases remains a significant computational challenge. MethodWe implement two quantum algorithms for DNA multi pattern string matching for k-mer detection based on Grovers amplitude amplification with quantum random access memory (QRAM). The first algorithm uses an enumerate-m oracle that sequentially checks a loaded text substring against all m patterns achieving O({surd}S) query complexity for S text positions but requiring O(m{middle dot}L) work per oracle call. The second algorithm employs nested Grover search with an outer loop over text positions and an inner loop over pattern space, reducing oracle complexity to O(L) while performing O({surd}S {middle dot} {surd}m) in total. ResultsWe present two quantum implementations of multi-pattern string matching tailored for k-mer detection. Leveraging quantum parallelism and Grover-inspired search primitives, our methods accelerate dictionary-based pattern matching, particularly in contexts involving large sequences, such as genomic data, and extensive pattern sets. ConclusionsWhile implementation challenges such as QRAM overhead remain, this study demonstrates both the promise and current limitations of quantum-enhanced string matching, establishing a foundational step toward quantum readiness in bioinformatics. Availability and implementationTo maximize accessibility and practical use, we provide our methodology at: https://github.com/Georgakopoulos-Soares-lab/quantum-multi-motif-finder
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 39th percentile
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- An inspectable Grover algorithm-based amplitude-amplification workflow for k-mer discovery and motif scanning with genomic coordinate traceability
Akshay Uttarkar, Vidya Niranjan·bioRxiv·Oct 13, 2026
- Accelerating k-mer-based sequence filtering
Igor Martayan, Léa Vandamme, … Antoine Limasset·Peer Community JournalPeer-reviewed·Jun 17, 2026
- Kaminari: a resource-frugal index for approximate colored k-mer queries
Victor Levallois, Yoshihiro Shibuya, … Giulio Ermanno Pibiri·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- Squeakr: An Exact and Approximate k-mer Counting System
Prashant Pandey, Michael A. Bender, … Rob Patro·BioinformaticsPeer-reviewed·Oct 6, 2017
- Quantum algorithm for position weight matrix matching
Koichi Miyamoto, Naoki Yamamoto, Yasubumi Sakakibara·IEEE Transactions on Quantum EngineeringPeer-reviewed·Jan 1, 2023
- Back to sequences: find the origin of kmers
Anthony Baire, Pierre Marijon, … Pierre Peterlongo·The Journal of Open Source SoftwarePeer-reviewed·Sep 23, 2024