Let $A$ and $B$ be two spin$\frac12$ particles. The state of the system composed by $A$ and $B$ is the tensor product of the state of the two particles. Each particle has a base for the relevant Hilbert space given by the two states $\left|\uparrow\right>,\left|\downarrow\right>$
The state of the composite system is therefore a 4-dimensional space with base vectors $\left|\uparrow\uparrow\right>,\left|\uparrow\downarrow\right>,\left|\downarrow\uparrow\right>,\left|\downarrow\downarrow\right>$
For example the singlet state of two entangled particles (the most popular example of entangled system) is the vector $\frac1{\sqrt2}\left(\left|\uparrow\downarrow\right>-\left|\downarrow\uparrow\right>\right)$ while the coefficients for the bases $\left|\uparrow\uparrow\right>$ and $\left|\downarrow\downarrow\right>$ are zero.
Question:
When we measure the spin of $A$ along $z$ while $B$ is far away, associated to this experiment/interaction with the system, there must be an observable associated to it.
If there is an observable then there must be an Hermitian self-adjoin operator associated to it and being the state space 4-dimensional, this operator shall be a $4\times4$ matrix.
What is this operator and what are its eigenstates?
I initially thought that two eigenstates of the operator must have been $\left|\uparrow\downarrow\right>$ and $\left|\downarrow\uparrow\right>$ because this are possible results of measurements on the singlet state. But I cannot think of an operator that covers also the case where $A$ and $B$ are not entangled and the measurement on $A$ should not affect $B$.
This is because each of the 4 base vectors of the space of states of the composite system is the tensor product of base vectors from each subsystem (see above) and therefore any possible eigenstate of an operator, in which the system will collapse after the measurement, will change $A$ under measurement but also the $B$ which is far away and should be left unchanged.