Text this: Loop Composition in Quantum Algorithms