Dynamical replica analysis of quantum annealing.