This illustrates an aspect about the maths of quantum mechanics: one normally doesn't include the measuring device into the description of a quantum mechanical system being measured. In the case of quantum decoherence, the irreversible nature of wavefunction collapse is the result of not including the measuring device in the description, while including the measuring device leads to unitary evolution of the total system wavefunction.