Fermat said:
I really don't know what you mean by 'match derivative'.
You are supposed to sum a series of terms.
The trick to get it summed, is to match it with a Taylor series.
If you can find a function $f$, such that each of your terms matches the corresponding Taylor term, you can write the infine sequence as an expression with that $f$.
Each Taylor term is of the form $$\frac{h^n}{n!}f^{(n)}(x)$$, which belongs to the expansion of $$f(x+h)$$.
So you need to find an $f$, such that $$f^{(n)}(x)$$ matches part of your term.
As it is, you happen to have an nth derivative (which would be the reason to try to match the series with a Taylor expansion in the first place).
So let's try to match that nth derivative with $$f^{(n)}(x)$$.
Your nth derivative is $$\frac{d^n}{dq^n}(e^{-q^2})$$.
So let's try $$f(x) = e^{-x^2}$$.
Consequently, $s$ will have to match $h$.
And from there you have a complete match.
\begin{cases}
h &=& s \\
x &=& q \\
f(x) &=& e^{-x^2}
\end{cases}
It follows that the series sums to $$f(x+h) = e^{-(q+s)^2}$$.