1. A quantum computer for pattern recognition, comprising a memory storing reference patterns; and at least one processor determining, for at least one quantum system, transformations of Hamiltonian dynamics calculated on the basis of an initial Hamiltonian indicating an initial quantum state of said quantum system, adiabatic weighting functions and a final Hamiltonian, the final Hamiltonian being calculated depending on an input pattern Hamiltonian and Hamiltonians of said reference patterns which are applied to generate a final quantum state of said quantum system, said at least one processor determining a probability of similarity between said input pattern and said reference patterns depending on the final quantum state of said quantum system.