In accordance with the adiabatic theorem, start from the ground state of Hamiltonian H B at the beginning, proceed through an adiabatic process, and end in the ground state of problem Hamiltonian H P .