Calculating Hamming Distance with the IBM Q Experience [post]

José Manuel Bravo
2018 unpublished
In this brief paper a quantum algorithm to calculate the Hamming distance of two binary strings of equal length (or messages in theory information) is presented. The algorithm calculates the Hamming weight of two binary strings in one query of an oracle. To calculate the hamming distance of these two strings we only have to calculate the Hamming weight of the xor operation of both strings. To test the algorithms the quantum computer prototype that IBM has given open access to on the cloud has
more » ... on the cloud has been used to test the results.
doi:10.20944/preprints201804.0164.v1 fatcat:nzwtifwlnzcwfjwoxwfyyjqsw4