Let's assume following two density matrices are corresponding to the A and B in the Stern-Gerlach apparatus bellow (I know Stern-Gerlach is a more of a physics experiment but I think it can equally be considered a quantum computing problem):
$\rho_A=\frac{1}{2}\begin{pmatrix}1&1\\1&1\end{pmatrix}$
$\rho_{B}=\frac{1}{2}\begin{pmatrix}1&-1\\-1&1\end{pmatrix}$
We also have the following two projection operators:
$p_{z+}=\begin{pmatrix}1&0\\0&0\end{pmatrix}$
$p_{z-}=\begin{pmatrix}0&0\\0&1\end{pmatrix}$
In such case how should we calculate and combine the density matrices to find out the very last Z device output?
It seems to me that the result has to be $\begin{pmatrix}1&0\\0&0\end{pmatrix}$, but I don't know how this calculation has to be done so that it takes into account the interference, in a coherent way!