My question is closely related to this one.
A bit of vocabulary and a reminder of basic properties:
I consider the total Hilbert space of the problem has dimension $2^n$.
I call a "well defined family of generators" a family of $n$-Pauli matrices $\{h_i\}_{i=i}^p$ such that all the $h_i$ are commuting between themselves, no element can be written as a product of the others, and any product of elements in this family cannot be equal to $-I$. This family of generator allows me to define a stabilizer group $S_h=\langle h_1,...,h_p\rangle$. A stabilizer group defines a subspace of the total Hilbert space that is of dimension $2^{n-p}$. It corresponds to the common eigenspace of eigenvalue $+1$ (for instance) of all the elements in the stabilizer.
My question:
I consider that at time $t=0$, I have a state $|\psi\rangle$ that is somewhere in the subspace stabilized by the group $S_g=\langle g_1,...,g_k \rangle$, where the family $\{g_i\}$ is a well defined family of generators.
Now, at time $t=t_1$, I measure my system with the family $\{\widetilde{g}_1,...,\widetilde{g}_p\}$, $p<n$. I assume that this family is a well defined family of generators.
Is there a systematic way to deduce the group $S'$ which will stabilize the final quantum state. What we know is that it will be inside the space stabilized by the group $S_{\widetilde{g}}=\langle \widetilde{g}_1,...,\widetilde{g}_p \rangle$, but we can be more precise than that. For instance if the subspace at time $t=0$ described a quantum state, we will still be in some quantum state at $t=t_1$. Hence, the quantum state will be stabilized by a group composed of $n$ elements.
The thing that is disturbing me occurs when an element $g_i$ anti-commutes with a $\widetilde{g}_j$. We could naïvely believe that $g_i$ cannot be in $S'$ and we could completely discard it. But it could occur that $g_i g_l$ commutes with all the family $\{\widetilde{g}_j\}$. Hence, while $g_i$ is discarded we should check that there doesn't exist any product involving $g_i$ with other elements of $S_g$ that would commute with all the family $\{\widetilde{g}_j\}$ (and hence be a potential candidate to belong in $S'$). Because of this fact it makes me hard to find an easy way to find $S'$. Everything I have in mind would be very computational intensive (and not intuitive).
My question in summary: Is there an intuitive reasoning (i.e that doesn't require a computer doing linear algebra) to find $S'$. If there is no such intuitive reasoning, what is the simplest algorithm that allows to solve this problem?
One simple example illustrating the problem with $n=3$
Let's assume that at $t=0$ my state is $|\psi\rangle=|000\rangle$. It is stabilized by $S_g=\langle Z_1 Z_2, Z_2 Z_3, Z_1 Z_2 Z_3 \rangle$.
At time $t=t_1$, I measure $X_2$ (and I find the outcome $+1$). The state then becomes:
$$ |\psi \rangle \to \frac{1+X_2}{2} |\psi \rangle = |0 \rangle |+\rangle |0\rangle$$
It is easy to verify that it is stabilized by $S'=\langle Z_1 Z_3, X_2, Z_1 \rangle$. (To make a link with my previous section, it is also trivially consistent with the fact it is necessarily in the space stabilized by $S_{\widetilde{g}} = \langle X_2 \rangle$).
However, $X_2$ anti-commutes with $Z_2 Z_3$ and $Z_1 Z_2 Z_3$. The naive reasoning would then "forget" about $Z_2 Z_3$ and $Z_1 Z_2 Z_3$ while actually $X_2$ commutes with their product which is $Z_1$. This is those kind of events that makes the situation much more complicated for me.