Quantum dissipative adaptation