The invention relates to a
quantum image matching method. In combination with
quantum calculation and classic
computer image matching techniques, the method comprises steps as follows: S0, the size of a
quantum reference image is set to be 2<n>*2<n>, and the size of a quantum template image is set to be 2<m>*2<m>; S1, the quantum
reference image is prepared and stored in an NEQR manner, and an NEQR expression shown in the specification of the quantum
reference image is obtained; S2, a quantum
route U0 of the quantum reference image is designed, and the output state, shown in the specification, of the quantum reference image is obtained; S3, the quantum template image is prepared and stored in a classic
image processing manner, a quantum
route of the quantum template image is designed according to independent basic state expressions adopted for pixel point coordinates and corresponding pixel values, and the output state, shown in the specification, of the quantum template image is obtained; S4,
quantum image matching is conducted according to the output state, shown in the specification, of the quantum reference image, the output state, shown in the specification, of the quantum template image as well as two added auxiliary quantum bits.
Quantum image matching is realized by use of basic quantum bit gates and modular quantum routes, the matching efficiency is high, and the application range is wide.