Generative and discriminative training of Boltzmann machine through quantum annealing | Synapse