Design of Quantum Associative Classifier based on Hamming Distance and Grover’s Algorithm
摘要
In this paper, we design a quantum associative classifier, which includes pattern storage and pattern classification. For pattern storage, we present a method to construct quantum superposition states with arbitrary number of basis states. The method employs three groups of qubits to encode the sequence number, category, and value of each sample respectively. Firstly, according to the total number of samples N to be stored, the number of sequence number qubits needed by associative classifier is calculated. Then, some quantum rotation gates and Hadamard gates are used to transform the sequence number qubits with initial state of