Quantum learning algorithms for quantum measurements