Cosmology from quantum information theory