@Article{cmc.2022.020103, AUTHOR = {Mohammed Zidan, Manal G. Eldin, Mahmoud Y. Shams, Mohamed Tolan, Ayman Abd-Elhamed, Mahmoud Abdel-Aty}, TITLE = {A Quantum Algorithm for Evaluating the Hamming Distance}, JOURNAL = {Computers, Materials \& Continua}, VOLUME = {71}, YEAR = {2022}, NUMBER = {1}, PAGES = {1065--1078}, URL = {http://www.techscience.com/cmc/v71n1/45377}, ISSN = {1546-2226}, ABSTRACT = {We present a novel quantum algorithm to evaluate the hamming distance between two unknown oracles via measuring the degree of entanglement between two ancillary qubits. In particular, we use the power of the entanglement degree based quantum computing model that preserves at most the locality of interactions within the quantum model structure. This model uses one of two techniques to retrieve the solution of a quantum computing problem at hand. In the first technique, the solution of the problem is obtained based on whether there is an entanglement between the two ancillary qubits or not. In the second, the solution of the quantum computing problem is obtained as a function in the concurrence value, and the number of states that can be generated from the Boolean variables. The proposed algorithm receives two oracles, each oracle represents an unknown Boolean function, then it measures the hamming distance between these two oracles. The hamming distance is evaluated based on the second technique. It is shown that the proposed algorithm provides exponential speedup compared with the classical counterpart for Boolean functions that have large numbers of Boolean variables. The proposed algorithm is explained via a case study. Finally, employing recently developed experimental techniques, the proposed algorithm has been verified using IBM's quantum computer simulator.}, DOI = {10.32604/cmc.2022.020103} }