Quantum statistics of irreversible processes