Quantum computation is well known for its particular computational performance. In this paper, we try to combine quantum computation with classical neural computation, through designing several quantum operators we construct the quantum counterpart of Hamming neural network, and put forward a quantum competitive learning algorithm to realize functions of pattern classification and associative memory.