Quantum Routines