Dissipation in quantum systems