Quantum Maximum Entropy Inference and Hamiltonian Learning