Differentiable Analog Quantum Computing for Optimization and Control