In theory, one could create entanglement for two particles for any observable by taking two normalized eigenvectors $\psi_1$, $\psi_2$ of such observable and considering: $$\psi=\frac{1}{\sqrt{2}}(\psi_1\psi_2+\psi_2\psi_1)$$
Imagine that you could create quantum entanglement for two particles for both position and momentum. This is, a two-particle state in which a measure of $\psi_1$ in position (or momentum) for particle A would imply $\psi_2$ for particle B and vice versa. Furthermore, you are able to measure at exactly the same time position (with arbitrarily good accuracy) for A and momentum (with arbitrarily good accuracy) for B (and therefore for A). However, Heisenberg principle states: $$\Delta x\Delta p\geq\frac{\hbar}{2}$$
Why would the uncertainty principle not be violated? Is such experiment even possible to create?