Single spin exact gradients for the optimization of complex pulses and pulse sequences | Synapse