Local Routines for quantum dynamics