Quantum Contract Cleaning