Quantum Agents for Algorithmic Discovery