What is the diagonal form of the density operator $\hat\rho$, of which I know that $$\langle x\left|\hat\rho\right|x'\rangle\propto \exp\left[{-\frac{\gamma}{2}(x^2+x'^2)+\beta xx'}\right]$$where $\left| x\rangle\right.$ is the position basis, and $\gamma,\beta$ are some real coefficients?
What might be helpful is to note that it can also be written as $$\langle x\left|\hat\rho\right|x'\rangle\propto\exp\left\{-\frac{1}{4}[(\gamma+\beta)(x^-)^2+(\gamma-\beta)(x^+)^2]\right\}$$ with $x^-=x'-x$ and $x^+=x+x'$.