A differentiable programming framework for spin models. - Tiago de Souza Farias; Vitor Vaz Schultz; José C. M. Mombach; Jonas Maziero (Comput. Phys. Commun., 2024)