Quantum Algorithms for Hamiltonian Learning Problems