Learning and Inference in Hilbert Space with Quantum Graphical Models