Closed NnktYoshioka closed 1 month ago
Good catch. It seems like this is caused by SPP not being marked as a unitary gate, so the method skips right over it (as part of the logic for optionally ignoring non-unitary gates).
I created a fix (https://github.com/quantumlib/Stim/pull/847). Around a half hour after that PR is merged, you should be able to pip install stim~=1.15.dev
and then stim.Circuit("SPP X0").to_tableau()
should work.
Thanks for the superprompt fix! I pip-installed the PR and confirmed that it is working properly.
...what? The fix isn't pushed yet!
It seems that the
stim.Circuit.to_tableau
is not reflecting the presence of SPP gate now (tried in v1.13.0 and v1.14.0). For instance when I runThe output did not change when I choose
SPP X0
orSPP Y0
, so I suspect thatto_tableau
is ignoringSPP
gates.I confirmed that SPP gates are properly working on
TableauSimulator
, by, e.g., running the following: