I would like to simulate the rotated surface code using stim for various code sizes. For my application, I would like to know where the stabilizers are located.
What is the meaning of the coordinates provided by stim? Is it (X, Y, time)? If so, how is the code orientated? Ideally, I would like to have a function that maps between the stim coordinates, and the distance to the western (weight-2 Z stabilizer) and northern (weight-2 X stabilizer) boundary for different code sizes.
I guess one could figure that out by studying the circuit diagrams. I would be happy to have a faster solution, such as the following figure picturing the surface code together with the stim coordinates:
Thanks for your help!