Quantum annealing and digital quantum ground state preparation algorithms