Diffusion Models and Differentiable Simulations