Apply part a in to
The supplied identity gives
In the notation of the weighted Gaussian theta sum of a complex lattice, this is