[Paper Review] An algorithm for DNA read alignment on quantum accelerators
This paper proposes QiBAM, a quantum algorithm for approximate DNA read alignment using Grover's search with Hamming distance-based pattern matching, achieving quadratic speedup over classical methods. It enables distributed, error-tolerant sub-sequence matching on quantum accelerators via indexed associative memory and is implemented and verified using OpenQL and the QX simulator.
With small-scale quantum processors transitioning from experimental physics labs to industrial products, these processors allow us to efficiently compute important algorithms in various fields. In this paper, we propose a quantum algorithm to address the challenging field of big data processing for genome sequence reconstruction. This research describes an architecture-aware implementation of a quantum algorithm for sub-sequence alignment. A new algorithm named QiBAM (quantum indexed bidirectional associative memory) is proposed, that uses approximate pattern-matching based on Hamming distances. QiBAM extends the Grover's search algorithm in two ways to allow for: (1) approximate matches needed for read errors in genomics, and (2) a distributed search for multiple solutions over the quantum encoding of DNA sequences. This approach gives a quadratic speedup over the classical algorithm. A full implementation of the algorithm is provided and verified using the OpenQL compiler and QX simulator framework. This represents a first exploration towards a full-stack quantum accelerated genome sequencing pipeline design. The open-source implementation can be found on https://github.com/prince-ph0en1x/QAGS.
Motivation & Objective
- To address the computational bottleneck in large-scale DNA sequence reconstruction using quantum acceleration.
- To design a quantum algorithm that supports approximate matching for error-prone DNA reads.
- To enable distributed search over quantum-encoded genomic sequences for multiple potential alignments.
- To develop an architecture-aware quantum algorithm tailored for near-term quantum processors.
- To lay the foundation for a full-stack quantum-accelerated genome sequencing pipeline.
Proposed method
- Extends Grover’s search algorithm to support approximate matches using Hamming distance minimization as the oracle condition.
- Employs a quantum indexed bidirectional associative memory (QiBAM) structure to store and retrieve genomic substrings efficiently.
- Uses superposition to encode all possible DNA substrings of a given length, enabling parallel search across the entire reference sequence.
- Introduces a constant oracle that evaluates Hamming distance between query and stored patterns to guide amplitude amplification.
- Entangles the index of the reference sequence with the data qubits to retrieve alignment positions rather than corrected sequences.
- Implements the algorithm using OpenQL and executes it on the QX simulator with full state vector access for verification.
Experimental results
Research questions
- RQ1Can quantum search be adapted to support approximate pattern matching in genomics, where read errors are common?
- RQ2How can Grover’s algorithm be extended to perform distributed searches over multiple approximate matches in a single run?
- RQ3What is the performance gain of quantum-based DNA alignment compared to classical heuristic methods?
- RQ4How can quantum associative memory be structured to support efficient indexing of genomic substrings?
- RQ5To what extent can this algorithm be implemented and verified on current quantum simulators with limited qubit counts?
Key findings
- The QiBAM algorithm achieves a quadratic speedup over classical sub-sequence alignment algorithms by leveraging amplitude amplification in Grover’s search framework.
- The implementation successfully detects approximate matches with Hamming distance 1 (e.g., AA, TA, CG, CC) when the exact pattern CA is not present in the reference sequence.
- Numerical results from the QX simulator match analytical estimates, confirming the expected probability amplification trend based on decreasing Hamming distance.
- The algorithm correctly retrieves alignment indices by entangling the index register with the data qubits, enabling position-based output without full sequence reconstruction.
- The full-stack implementation using OpenQL and QX simulator demonstrates functional correctness on small-scale DNA test cases (e.g., length-2 substrings).
- The approach is scalable in principle to longer sequences, with the potential to be adapted to near-term NISQ devices using variational hybrid quantum-classical methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.