It is well-known that, besides the standard Gaussian $e^{-|x|^2/2}$, there are many interesting functions which are eigenfunctions of the Fourier transform, for example the Hermite functions.
Mainly out of curiosity, I am wondering if there is any literature on a systematic study of $L^2$-functions whose Fourier transform is $L^2$-orthogonal to themselves, i.e., functions $f\in L^2(\mathbb R^n)$ such that $$\left< f,\hat f\right>_{L^2(\mathbb R^n)}=0.$$ Note that there do exist non-zero functions with this property: For example, take $f=\mathrm{rect}(x-a)+\mathrm{rect}(x+a)$, where $a\geq 0$ and $\mathrm{rect}:\mathbb R\to \mathbb R$ is the standard rectangle function taking the value $1$ on the interval $[-1/2,1/2]$ and $0$ elsewhere. Then $\hat f(x)=\cos(ax)\mathrm{sinc}(x/2)$, and for an appropriate choice of $a$ (approximately $a=2.8157073021$) one finds that $\left< f,\hat f\right>_{L^2(\mathbb R)}=0$.