Quantum Block-Matching Algorithm using Dissimilarity Measure
M. Martínez-Felipe, J. Montiel-Pérez, V. Onofre, A. Maldonado-Romo, Ricky Young
TL;DR
This paper formulates a quantum block-matching algorithm that uses a dissimilarity measure based on the Euclidean distance $D$ to locate similar image blocks within a search region. It explores two quantum routes: a QFT-based Draper adder and a quantum Swap Test with amplitude-encoded blocks, combined with a hierarchical search to reduce vector size. Classical preprocessing reduces images to $64 \times 64$ and introduces noise realism, while quantum encoding uses amplitudes with $n = \log_{2}(M) + 1$ qubits; experiments include ideal simulations and hardware runs on IonQ, OQC, and IBM Q devices, showing Swap Test can closely approximate the classical distance $CED$ at practical fidelities, whereas the QFT route remains resource-intensive for near-term devices. The work demonstrates near-term feasibility of quantum BM, compares two quantum routes, analyzes noise impacts, and outlines steps toward scaling to full video sequences and integrating error mitigation.
Abstract
Finding groups of similar image blocks within an ample search area is often necessary in different applications, such as video compression, image clustering, vector quantization, and nonlocal noise reduction. A block-matching algorithm that uses a dissimilarity measure can be applied in such scenarios. In this work, a measure that utilizes the quantum Fourier transform or the Swap test based on the Euclidean distance is proposed. Experiments on small cases with ideal and noisy simulations are implemented. In the case of the Swap test, the IBM and IonQ quantum devices have been used, demonstrating potential for future near-term applications.
