Quantum algorithms for learning and learning algorithms for quantum