Tomography and generative training with quantum Boltzmann machines