Efficient preparation of spin-squeezed states is important for quantum-enhanced metrology. Current protocols for generating strong spin squeezing rely on either high dimensionality or long-range interactions. A key challenge is how to generate considerable spin squeezing in one-dimensional systems with only nearest-neighbor interactions. Here, we develop variational spin-squeezing algorithms to solve this problem. We consider both digital and analog quantum circuits for these variational algorithms. After the closed optimization loop of the variational spin-squeezing algorithms, the generated squeezing can be comparable to the strongest squeezing created from two-axis twisting. By analyzing the experimental imperfections, the variational spin-squeezing algorithms proposed in this paper are feasible in recently developed noisy intermediate-scale quantum computers.
We present a quantum optimal control protocol to generate highly spin-squeezed states in Rydberg atom arrays coupled via Ising-type van der Waals interactions. Using gradient-based optimization techniques, we construct time-dependent pulse sequences that steer an initial product state toward highly entangled, spin-squeezed states with predefined magnetization and squeezing axes. We focus on the Wineland parameter ${\ensuremath{\xi}}_{W}^{2}$ to measure spin squeezing, and our approach achieves near-optimal spin squeezing in one-dimensional ring arrays of up to
N=8 spins, significantly outperforming conventional quench dynamics for all system sizes studied. Remarkably, optimized pulse sequences can be directly scaled to larger arrays without additional optimization, achieving a squeezing parameter as low as ${\ensuremath{\xi}}_{W}^{2}=0.227$ in systems containing
N=50 spins. This work demonstrates the potential of quantum optimal control methods for preparing highly spin-squeezed states, opening pathways to enhanced quantum metrology.