What is the relationship between the stabilizer generator of a quantum stabilizer code, and the stabilizer generator of its circuit tableau? I notice some difference for cases.
I use Stim to simulate Clifford circuit. I prepare a Bell state, then transform it to stim.Tableau. The stabilizer of the the circuit is $[XX, ZZ]$, which is the stabilizer of Bell state. Then I create 3 qubits in zero state, its tableau show $[ZII, IZI, IIZ]$. But in the angle of stabilizer code, it is supposed to be repetition code with stablizer $[ZZI, IZZ]$. Is the stabilizer of a code supposed to be different from that of its circuit, and maybe the Bell state case just a coincidence?
Now I am having the stabilizer generator of a circuit from tableau: $[−YIYZ,−YZYI,+IIYI,+IIYZ]$. Is the output state a logical state for a quantum stabilizer code? (I use stim.Tableau.to_state_vector(), and the vector does look like an encoded state)
To be more general, if we know the stablizer of a Clifford circuit, can we know whether the output state is a logical state of a quantum code? If it is, then how to know the stabilizer generator of the code, from that of its circuit?
In addition, I observe that in my stabilizer generator from Stim, some give +1 eigenvalues for my output state, and other give -1 eigenvalues. Can we get the stabilizer generator that is all in +1 subspace?