The geometry and thermodynamics of dissipative quantum systems