English

Quantum algorithm for edge detection in digital grayscale images

Quantum Physics 2025-07-10 v1

Abstract

In this work, we propose a novel quantum algorithm for edge detection in digital grayscale images, based on the sequency-ordered Walsh-Hadamard transform. The proposed method significantly improves upon existing quantum techniques for edge detection by using a quantum algorithm for the sequency-ordered Walsh-Hadamard transform, achieving a circuit depth of O(n)\mathcal{O}(n) (where nn is the number of qubits). This represents a notable enhancement over the Quantum Fourier Transform (QFT), which has a circuit depth of O(n2)\mathcal{O}(n^{2}). Furthermore, our approach for edge detection has a computational cost (both gate complexity and quantum circuit depth) of O(log2(N1N2))\mathcal{O}(\log_{2}(N_{1}N_{2})) for an image of size N1×N2N_{1}\times N_{2}, offering a considerable improvement over the Quantum Hadamard Edge Detection (QHED) algorithm, which incurs a cost of O(poly(log2(N1N2)))\mathcal{O}(\text{poly}(\log_{2}(N_{1}N_{2}))). By integrating a quantum high-pass filter with the sequency-ordered Walsh-Hadamard transform, the algorithm effectively extracts edge information from images. Computational examples are provided to demonstrate the efficacy of the proposed algorithm which provides a better performance in comparison to QHED.

Keywords

Cite

@article{arxiv.2507.06642,
  title  = {Quantum algorithm for edge detection in digital grayscale images},
  author = {Mohit Rohida and Alok Shukla and Prakash Vedula},
  journal= {arXiv preprint arXiv:2507.06642},
  year   = {2025}
}

Comments

16 pages

R2 v1 2026-07-01T03:52:49.952Z