I fail to understand the EPR experiment. From Wikipedia:
Alice now measures the spin along the z-axis. She can obtain one of two possible outcomes: +z or −z. Suppose she gets +z. Informally speaking, the quantum state of the system collapses into state I. The quantum state determines the probable outcomes of any measurement performed on the system. In this case, if Bob subsequently measures spin along the z-axis, there is 100% probability that he will obtain −z. Similarly, if Alice gets −z, Bob will get +z.
I emphatically do not reproduce above claim. As example I consider measurement of spin along an arbitrary axis. Specially I consider measuring spin along $\vec{v} = \frac{1}{\sqrt{38}}(2,3,5)$ and with input state $\psi = \frac{1}{\sqrt 2}(|01\rangle - |10\rangle)$. Here are my steps:
Alice wants to measure spin along $\vec{v}$. This means we create the observable $M = \vec{v} \cdot \vec{\sigma}$ where $\vec{\sigma}$ is the vector of individual Pauli matrices i.e., $\vec{\sigma} = (X , Y , Z)$.
$M$ is a $2\times2$ matrix and $\psi$ is a $4\times1$ vector. To make a measurement corresponding to $M$ on the first qubit we need to create a tensor product of $M$ with the $2\times2$ identity matrix $I$. So let $O = M \otimes I$.
Now to perform the measurement we will do a eigen decomposition of $O$. Note that gives me 4 eigenvalues not 2. Its true that there are 2 unique eigenvalues $\{+1, -1\}$ and I understand these to mean spin "up" or spin "down".
I get following probabilities of the 4 eigenvalues:
Alice's Eigenvalues (i.e., possible measurement outcomes)
[-1.00000000000000, -1.00000000000000, 1.00000000000000, 1.00000000000000]
Alice's probabilities
[0.452776776413453, 0.0472232235865468, 0.0472232235865468, 0.452776776413453]
Now suppose Alice measures the first eigenvalue $-1$ (spin "down").
We then collapse the wavefunction $\psi$ to one of the corresponding eigenvectors of $O$. Let $\psi^{'}$ be the collapsed wavefunction after Alice's measurement, which is one of the two eigenvectors of $O$ with eigenvalue $-1$.
Now Bob will measure spin along the $\vec{v}$ axis on the second qubit. The observable corresponding to this is $O^{'} = I \otimes M$ and input to this observable is $\psi^{'}$.
And now the kick: when I simulate Bob's measurement I do not get a spin "up" outcome with 100% probability. I find that there are 2 unique eigenvalues associated with non-zero probabilities.
Bob's Eigenvalues
[-1.00000000000000, -1.00000000000000, 1.00000000000000, 1.00000000000000]
Bob's probabilities
[0.00892013138361998, 0.0855263157894737, 0.0855263157894737, 0.820027237037433]
And this is my dilemma.
Can someone explain me what it is that I have done wrong? I would like a worked out answer with numbers in it rather than mathematical symbols. An answer showing what needs to be corrected to my code would be even better.
Aside: If part of the answer is that $O$ should be $M \otimes M$, I emphatically consider that to be cheating. The experiment states:
Alice now measures the spin along the z-axis... the quantum state of the system collapses into state I... Bob subsequently measures spin along the z-axis, there is 100% probability that he will obtain −z. Similarly, if Alice gets −z, Bob will get +z.