# Calculating the Wigner transform of operators

Recently I started to study the formulation of quantum mechanics in the phase space. So I was introduced to the concept of Wigner function and Weyl transform. I learned that if F is an operator, then I can represent it by an integral as follows: $$$$F = \int_{-\infty}^{+\infty}\frac{dpdq}{2\pi\hslash}f(p,q)\Delta(p,q)$$$$ Where $$f(p,q)$$ is the Wigner transform given by: $$$$f(p,q) = \int_{-\infty}^{+\infty}e^{\frac{i}{\hslash}qu}\langle p+\frac{u}{2}|F|p-\frac{u}{2}\rangle du$$$$ and $$\Delta(p,q)$$: $$$$\Delta(p,q) = \int_{-\infty}^{-\infty} e^{\frac{i}{\hslash}pv}|q+\frac{v}{2}\rangle \langle q-\frac{v}{2}|dv$$$$ all of the above expressions were derived using the completeness relations as follows: $$$$F = \int_{-\infty}^{+\infty}dp'dp''dq'dq''|q''\rangle\langle q''|p''\rangle \langle p''|F|p'\rangle\langle p'|q'\rangle \langle q'|$$$$ and the following variable change was also taken $$$$2p =p'+p'', 2q = q'+q'', u = p''-p', v = q''-q'$$$$

Could someone show me what these calculations would look like for a numerical example of some observable operator. I tried to calculate for one of the pauli matrices, but I was stuck in the middle of the calculations. My learning becomes more consistent when I see practical examples, if anyone can help me with this problem, I will be very grateful.

I assume you or your text have evaluated the free particle hamiltonian, $$h(p,q) = \frac{1}{2m}\int_{-\infty}^{+\infty}e^{\frac{i}{\hslash}qu}\langle p+\frac{u}{2}|\hat p^2|p-\frac{u}{2}\rangle du\\ \frac{1}{2m}\int_{-\infty}^{+\infty}e^{\frac{i}{\hslash}qu}(p-u/2)^2\langle p+\frac{u}{2}| p-\frac{u}{2}\rangle du\\ = \frac{1}{2m}\int_{-\infty}^{+\infty}e^{\frac{i}{\hslash}qu}(p-u/2)^2 ~\delta(u) ~ du =\frac{p^2}{2m}~~ .$$
The operators need not be observables. Try the hermitean parity operator, $$P=\int \!\! dp ~~|-p\rangle\langle p| ~~\leadsto$$ $$\Pi (q,p)= \int\!\!du dp' e^{iqu/\hbar} ~~\langle p+u/2 | -p'\rangle \langle p'|p-u/2\rangle \\ =\int\!\!du dp' ~ e^{iqu/\hbar} ~~ \delta( p+u/2 +p') \delta( p-u/2 -p') \\ =\int\!\!du ~ e^{iqu/\hbar} ~~ \delta(2 p ) =\frac{h}{2}\delta(q) \delta(p)~.$$