On the Transfer of Knowledge in Quantum Algorithms