Let us consider a (quantum) Harmonic oscillator:
$$H=\frac{p^2}{2m}+\frac{1}{2} m \omega^2 x^2$$
Using the annihilation/creation operators defined as:
$$a=\sqrt{\frac{\hbar}{2 m \omega}}(x+\frac{i}{m \omega}p)$$ $$a^{\dagger}=\sqrt{\frac{\hbar}{2 m \omega}}(x-\frac{i}{m \omega}p)$$
I end up with $H=\hbar \omega a^{\dagger} a$
Now, let's assume that for any reason I know that the dynamic should be restricted to the two first levels only. One way that I should we could do is to consider: $a \to \sigma_-, a^{\dagger} \to \sigma_+$
Then, we find:
$$H=\hbar \omega \sigma_+ \sigma_-=\hbar \omega |1\rangle \langle 1|$$
But what confuses me is that if I do the replacement in $p$ and $x$, I don't find the same. Indeed we have:
$$p=i\sqrt{\frac{\hbar m \omega}{2}}(a^{\dagger}-a)$$ $$x=\sqrt{\frac{\hbar}{2 m \omega}}(a^{\dagger}+a)$$
Performing the replacement there, I find:
$$p=\sqrt{\frac{\hbar m \omega}{2}}\sigma_y$$ $$x=\sqrt{\frac{\hbar}{2 m \omega}}\sigma_x$$
And as $\sigma_y^2=\sigma_x^2=I$, I would end up with $H \propto I$ from the first Hamiltonian I wrote.
Another annoying example. Imagine that my oscillator as in addition an interacting term of the form:
$$H_{\text{int}}=p^2*F(t)$$
Where $F(t)$ is a driving field for instance. With the two level approximation and the mapping considered, as $p^2 \propto I$, the interaction would disappear.
What is the procedure to cut to its two first level an Harmonic oscillator to get a qubit. I feel like I don't understand anymore.
Typically to what the momentum and position should be mapped to ?
How to solve the "paradox" I get to ?