Learning agents,  Interaction and Quantum Algorithms