Запис е-пошти: Variational generation of spin squeezing on one-dimensional quantum devices with nearest-neighbor interactions