A Quantum-Accelerated Mapping Algorithm for Sequence Alignment
Abstract
1. Introduction
2. The Proposed Sequence Alignment Protocol
2.1. Hybrid System Architecture
| Algorithm 1: Slicing window size estimation |
| Input: Sequence lengths: Alphabet size: False-positive tolerance: Expected similarity: Detection threshold: |
| 1. Compute statistical lower bound (noise control): |
| 2. Compute biological upper bound (sensitivity preservation): |
| 3. Check feasibility: If , then no valid window size exists (relax parameters) |
| 4. Select optimal window size: Choose with a practical choice the mean. |
2.2. Processing Pipeline Flow
- Input: This stage initializes the alignment workflow by loading the reference genome database, the query reads, and the user-defined configuration parameters. These settings determine factors such as segmentation size, matching thresholds, and execution policies used throughout the pipeline. The format follows FASTA specifications.
- Segmentation Scheduler: The reference sequence is partitioned into overlapping sliding windows of size . The scheduler determines the optimal segmentation strategy to balance mapping accuracy, computational cost, and parallel execution efficiency.
- Dot-Matrix Plot: In this phase, the sequence segments are transformed into a quantum-compatible dot-plot representation using the NEQR encoding scheme. Logical XOR operations are then applied to compare corresponding symbols between reference and query sequences, generating similarity patterns.
- Searching: The encoded dot-plot is processed to identify potential matching regions. Quantum logical AND operations and counting procedures are employed to detect and quantify similarity clusters corresponding to candidate alignment locations.
- Filtering Hits: Low-quality or noisy matches are discarded to reduce false positives. The remaining candidate seeds are grouped into clusters according to their spatial or diagonal consistency, producing a refined set of promising alignment regions.
- Extension: The shortlisted candidate regions are extended using classical dynamic programming algorithms, such as Smith–Waterman or Needleman–Wunsch. Final alignment scores are then computed to determine the optimal sequence alignments.
2.3. QMap Accelerator
2.3.1. Quantum Algorithm
| Algorithm 2: QMap: Quantum Sequence Mapping |
| Input: (a) two portions of sequences: {,} of equal size , (b) alphabet: , (c) window size: , (d) detection threshold: . Output: A superposition state representing the dot-matrix plot. Qubit Registers: (a) Two positional and two data registers of and log |σ|, respectively. (b) A single ancilla qubit register. (c) (2w-1-2δ) registers of qubits. |
1. Encoding: Embed the input string set via NEQR technique
|
2. Bitwise Inner Product Operation (XOR):
|
| 3. Apply sequentially 2w-1-δ AND operations to isolate diagonals. The first control is applied to the index registers and the second to a specific mask pattern. |
| 4. Apply 2w-1-δ times the counting subroutine at the target output of AND to detect significant diagonals. |
2.3.2. Circuit Design
3. Quantum Computing Techniques
3.1. Submodules of QMap
3.1.1. Subcircuit_A: Encoding and Dot-Plot Generator
3.1.2. Subcircuit_B: Hamming Distance Estimation
3.2. Scanning Policy Strategies
4. Validity of Hamming Distance-Based Approach
- i.
- Null hypothesis (random similarity): ;
- ii.
- Alternative hypothesis (true alignment): .
5. Evaluation
5.1. Systematic Benchmark
- (i)
- Exact and near-exact matches (40 pairs);
- (ii)
- Controlled substitution regime (Hamming Sweep) (60 pairs);
- (iii)
- Indel perturbation set (70 pairs);
- (iv)
- Low-complexity and repetitive regions (30 pairs);
- (v)
- Orientation variants (20 pairs);
- (vi)
- Local similarity embedding (30 pairs);
- (vii)
- Protein substitution models (40 pairs).
- (i)
- Exact and near-exact matches
- (ii)
- Controlled substitution regime (Hamming sweep)
- (iii)
- Indel perturbation set
- (iv)
- Low-complexity and repetitive regions
- (v)
- Orientation variants
- (vi)
- Local similarity embedding
- (vii)
- Protein substitution models
5.2. Complexity Analysis
- A.
- Complexity of Subcircuit_A
- B.
- Complexity of Subcircuit_B
5.2.1. Logical-Level Asymptotic Computing Analysis
5.2.2. Trade-Offs Between QMap Repetition Rate and Window Size
6. Discussion and Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Smith, T.F.; Waterman, M.S. Identification of common molecular subsequences. J. Mol. Biol. 1981, 147, 195–197. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rognes, T. Faster Smith-Waterman database searches with inter-sequence SIMD parallelisation. BMC Bioinform. 2011, 12, 221. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Needleman, S.B.; Wunsch, C.D. A general method applicable to the search for similarities in the amino acid sequence of two proteins. J. Mol. Biol. 1970, 48, 443–453. [Google Scholar] [CrossRef] [Scilit]
- Lipman, D.J.; Pearson, W.R. Rapid and sensitive protein similarity searches. Science 1985, 227, 1435–1441. [Google Scholar] [CrossRef] [Scilit]
- Altschul, S.F.; Gish, W.; Miller, W.; Myers, E.W.; Lipman, D.J. Basic local alignment search tool. J. Mol. Biol. 1990, 215, 403–410. [Google Scholar] [CrossRef]
- Li, H.; Durbin, R. Fast and accurate short read alignment with Burrows–Wheeler transform. Bioinformatics 2009, 25, 1754–1760. [Google Scholar] [CrossRef] [Scilit]
- Kim, D.; Langmead, B.; Salzberg, S.L. HISAT: A fast spliced aligner with low memory requirements. Nat. Methods 2015, 12, 357–360. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Marçais, G.; Delcher, A.L.; Phillippy, A.M.; Coston, R.; Salzberg, S.L.; Zimin, A. MUMmer4: A fast and versatile genome alignment system. PLoS Comput. Biol. 2018, 14, e1005944. [Google Scholar] [CrossRef] [Scilit]
- Maleki, E.; Babashah, H.; Koohi, S.; Kavehvash, Z. High-speed all-optical DNA local sequence alignment based on a three-dimensional artificial neural network. J. Opt. Soc. Am. A 2017, 34, 1173–1186. [Google Scholar] [CrossRef] [Scilit]
- Maleki, E.; Koohi, S.; Kavehvash, Z.; Mashaghi, A. OptCAM: An ultra-fast all-optical architecture for DNA variantdiscovery. J. Biophotonics 2019, 13, e201900227. [Google Scholar] [CrossRef] [Scilit]
- Prousalis, K.; Konofaos, N. Improving the Sequence Alignment Method by Quantum Multi-Pattern Recognition. In Proceedings of the 10th Hellenic Conference on Artificial Intelligence (SETN’18); ACM: Patra, Greece, 2018. [Google Scholar]
- Prousalis, K.; Konofaos, N. A Quantum Pattern Recognition Method for Improving Pairwise Sequence Alignment. Sci. Rep. 2019, 9, 7226. [Google Scholar] [CrossRef] [Scilit]
- Schützhold, R. Pattern recognition on a quantum computer. Phys. Rev. A. 2002, 67, 062311. [Google Scholar] [CrossRef] [Scilit]
- Cross, A.W.; Bishop, L.S.; Smolin, J.A.; Gambetta, J.M. Open quantum assembly language. arXiv 2017, arXiv:1707.03429. [Google Scholar] [CrossRef] [Scilit]
- Qiskit Contributors: Qiskit: An Open-Source Framework for Quantum Computing (2023). Available online: https://oamonitor.ireland.openaire.eu/national/search/software?pid=10.5281%2Fzenodo.2562110 (accessed on 1 January 2024).
- Clapis, J. A Quantum Dot Plot Generation Algorithm for Pairwise Sequence Alignment. arXiv 2021, arXiv:2107.11346v1. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Lu, K.; Gao, Y.; Wang, M. NEQR: A novel enhanced quantum representation of digital images. Quantum Inf. Process. 2013, 12, 2833–2860. [Google Scholar] [CrossRef] [Scilit]
- Le, P.Q.; Dong, F.; Hirota, K. A flexible representation of quantum images for polynomial preparation, image compression, and processing operations. Quantum Inf. Process. 2011, 10, 63–84. [Google Scholar] [CrossRef] [Scilit]
- Yao, X.-W.; Wang, H.; Liao, Z.; Chen, M.-C.; Pan, J.; Li, J.; Zhang, K.; Lin, X.; Wang, Z.; Luo, Z.; et al. Quantum Image Processing and Its Application to Edge Detection: Theory and Experiment. Phys. Rev. X 2017, 7, 031041. [Google Scholar] [CrossRef] [Scilit]
- Havlíček, V.; Córcoles, A.D.; Temme, K.; Harrow, A.W.; Kandala, A.; Chow, J.M.; Gambetta, J.M. Supervised learning with quantum-enhanced feature spaces. Nature 2019, 567, 209–212. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kremenetski, V.; Apte, A.; Hogg, T.; Hadfield, S.; Tubman, N.M. Quantum Alternating Operator Ansatz (QAOA) beyond low depth with gradually changing unitaries. arXiv 2023, arXiv:2305.04455. [Google Scholar] [CrossRef] [Scilit]
- Xie, Z.; Qiu, D.; Cai, G. Quantum algorithms on Walsh transform and Hamming distance for Boolean functions. Quantum Inf. Process. 2018, 17, 139. [Google Scholar] [CrossRef] [Scilit]
- Kathuria, K.; Ratan, A.; McConnell, M.; Bekiranov, S. Implementation of a Hamming distance–like genomic quantum classifier using inner products on ibmqx2 and ibmq_16_melbourne. Quantum Mach. Intell. 2020, 2, 7. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Lin, S.; Yu, K.; Guo, G. Quantum K-nearest neighbor classification algorithm based on Hamming distance. Quantum Inf. Process. 2022, 21, 18. [Google Scholar] [CrossRef] [Scilit]
- Anderson, T.W.; Darling, D.A. Asymptotic theory of certain “goodness of fit” criteria based on stochastic processes. Ann. Math. Statist. 1952, 23, 193–212. [Google Scholar] [CrossRef] [Scilit]
- Rudell, R.; Sangiovanni-Vincentelli, A. Multiple-valued minimization for PLA optimization. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2004, 6, 727–750. [Google Scholar] [CrossRef] [Scilit]
- Brassard, G.; Høyer, P.; Tapp, A. Quantum counting. In International Colloquium on Automata, Languages, and Programming; Springer: Berlin/Heidelberg, Germany, 1998. [Google Scholar]
- Aaronson, S.; Rall, P. Quantum approximate counting, simplified. In Symposium on Simplicity in Algorithms; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2020. [Google Scholar]
- Barenco, A.; Bennett, C.H.; Cleve, R.; DiVincenzo, D.P.; Margolus, N.; Shor, P.; Sleator, T.; Smolin, J.A.; Weinfurter, H. Elementary gates for quantum computation. Phys. Rev. A 1995, 52, 3457–3467. [Google Scholar] [CrossRef] [Scilit]
- Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information, 10th ed.; Cambridge University: Cambridge, UK, 2011. [Google Scholar]














| Embedding Schemes | ||||
|---|---|---|---|---|
| Basis | Angle | Amplitude * | Inst. Q. Polynomial * | |
| Qubit resource | ||||
| Pixel-value qubit | 1 | 0 | 0 | |
| Pixel-value encoding | Basis of qubits | Angle of qubits | Probability amplitude | Feature mapping |
| Complexity | ||||
| Category | #Pairs | Mean Accuracy | Std Dev | Min |
|---|---|---|---|---|
| Exact | 10 | 1.000 | 0.000 | 1.000 |
| 1 substitution | 10 | 0.998 | 0.002 | 0.995 |
| 2 substitutions | 10 | 0.996 | 0.003 | 0.990 |
| Small indels | 10 | 0.985 | 0.010 | 0.965 |
| Subcategory | Accuracy (Mean) | Std (Approx) | Completeness |
|---|---|---|---|
| Long indel | 0.60 | ±0.07 | 0.70–0.80 |
| Short indels | 0.77 | ±0.05 | 0.85–0.92 |
| Shifted | 0.71 | ±0.06 | 0.80–0.88 |
| Subcategory | Seed Recall | Seed Precision | Accuracy | Completeness |
|---|---|---|---|---|
| Homopolymers | ~0.98–1.00 | ~0.10–0.25 | ~0.75–0.88 | ~0.90–1.00 |
| Tandem repeats | ~0.95–0.98 | ~0.20–0.40 | ~0.80–0.92 | ~0.92–0.98 |
| Protein low-complexity | ~0.90–0.95 | ~0.30–0.50 | ~0.85–0.93 | ~0.90–0.96 |
| Category | Accuracy | Completeness | Seed Recall |
|---|---|---|---|
| Forward identical | 99–100% | 99–100% | 99–100% |
| Reverse | 92–97% | 90–96% | 88–95% |
| Reverse complement | 90–96% | 88–95% | 85–93% |
| Segment permutation | 75–88% | 65–80% | 70–85% |
| Mixed noisy variants | 78–90% | 72–86% | 70–82% |
| Local Identity | Seed Recall | Alignment Accuracy | Completeness |
|---|---|---|---|
| 95% | 0.99–1.00 | 0.98–0.99 | 0.98–1.00 |
| 90% | 0.97–0.99 | 0.95–0.98 | 0.95–0.99 |
| 80% | 0.90–0.96 | 0.88–0.95 | 0.87–0.94 |
| 70% | 0.75–0.88 | 0.72–0.86 | 0.70–0.84 |
| 60% | 0.45–0.70 | 0.40–0.68 | 0.38–0.65 |
| Divergence Level | Seed Recall | Extension Success | Final Alignment Accuracy | Completeness |
|---|---|---|---|---|
| Low divergence | 0.98–1.00 | 0.99 | 97–99% | 98–100% |
| Medium divergence | 0.88–0.95 | 0.94 | 90–95% | 90–96% |
| High divergence | 0.65–0.82 | 0.85 | 75–88% | 78–90% |
| Complexities | ||||||
|---|---|---|---|---|---|---|
| Data Preparation | Searching (Query) | Example Aligner | ||||
| Component | Time | Space | Time | Space | ||
| Classical | BWT (build) | BWA, Bowtie 2 | ||||
| FM-index (locate) | n/a | |||||
| Quantum | NEQRESP | (0.3 ≤ α ≤ 0.8) | n/a | n/a | n/a | |
| Logic XOR | n/a | n/a | ||||
| Logic AND | n/a | n/a | ||||
| Counting (improved) | n/a | n/a | ||||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Prousalis, K.; Ntalaperas, D.; Georgiou, K.; Kalogeropoulos, A.; Stavropoulos, T.G.; Karamanidou, T.; Papalitsas, C.; Angelis, L.; Konofaos, N. A Quantum-Accelerated Mapping Algorithm for Sequence Alignment. Quantum Rep. 2026, 8, 51. https://doi.org/10.3390/quantum8020051
Prousalis K, Ntalaperas D, Georgiou K, Kalogeropoulos A, Stavropoulos TG, Karamanidou T, Papalitsas C, Angelis L, Konofaos N. A Quantum-Accelerated Mapping Algorithm for Sequence Alignment. Quantum Reports. 2026; 8(2):51. https://doi.org/10.3390/quantum8020051
Chicago/Turabian StyleProusalis, Konstantinos, Dimitris Ntalaperas, Konstantinos Georgiou, Andreas Kalogeropoulos, Thanos G. Stavropoulos, Theodora Karamanidou, Christos Papalitsas, Lefteris Angelis, and Nikos Konofaos. 2026. "A Quantum-Accelerated Mapping Algorithm for Sequence Alignment" Quantum Reports 8, no. 2: 51. https://doi.org/10.3390/quantum8020051
APA StyleProusalis, K., Ntalaperas, D., Georgiou, K., Kalogeropoulos, A., Stavropoulos, T. G., Karamanidou, T., Papalitsas, C., Angelis, L., & Konofaos, N. (2026). A Quantum-Accelerated Mapping Algorithm for Sequence Alignment. Quantum Reports, 8(2), 51. https://doi.org/10.3390/quantum8020051

