Mathematical foundation of quantum annealing | Synapse