Quantum theory from quantum information: the purification route