We prove a quadratic analogue of Bogolyubov's lemma, showing that if $A \subseteq \mathbb{F}_2^n$ has density $\alpha > 0$, then $A+A+A$ contains a quadratic variety $W$ of complexity $\mathrm{poly}(1/\alpha)$ such that for every $x \in W$, there exist $a_1,\ldots,a_7 \in A$ satisfying $x = \sum_{i=1}^7 a_i$ and $q(x) = \sum_{i=1}^7 q(a_i)$ simultaneously for every quadratic polynomial $q : \mathbb{F}_2^n \to \mathbb{F}_2$. Moreover, for fixed $\alpha > 0$, we show a subcubic-time quantum algorithm that constructs an implicit representation of $W$ and finds the correction points using $\mathrm{polylog}(n)$ queries to $A$.
As an application, we obtain uniform quantum worst-case to average-case reductions for any quadratic map $Q : \mathbb{F}_2^n \to \mathbb{F}_2^n$. Namely, we show that any uniform $T$-time quantum average-case algorithm computing $Q$ with probability $\alpha$ can be transformed into a uniform $\widetilde{O}_{\alpha}(T+n^{5/2})$-time quantum algorithm that succeeds with high probability on every input.