Using weak-lensing measurements with VIS, and combining it with the distances to the galaxies from NISP, Euclid can map out the distribution of mass in the universe as a function of time, and this can then be compared with the predictions of various theories of dark energy.