1. A quantum computer for pattern recognition comprising at least one quantum system to which transformations of Hamiltonian dynamics calculated on the basis of an initial Hamiltonian indicating an initial quantum state of said quantum system and on the basis of a final Hamiltonian calculated depending on an input pattern and said reference patterns are applied to generate a final quantum state of said quantum system depending on which a similarity between said input pattern and said reference patterns is determined.