Adaptive Compilation of Multi-Level Quantum Operations