Write a demo notebook that reproduces Fig. 4a of https://www.nature.com/articles/s41586-025-09848-5 using Tsim.
Goal
Add a tutorial notebook that reproduces Fig. 4a of the linked Nature paper — subjecting QEC codes of various dimensionality to global rotations — using tsim.
Deliverable
- A Jupyter notebook (
.ipynb) under docs/demos/, wired into the docs navigation alongside the existing demos.
Scope
Considerations
The publication uses deterministic encoding circuits, described in the extended data (Fig 10a) of the paper. It can be useful to use the method stim.Circuit.flow_generators() to verify that your encoding circuit has the correct stabilizers and logical Pauli operators.

Write a demo notebook that reproduces Fig. 4a of https://www.nature.com/articles/s41586-025-09848-5 using Tsim.
Goal
Add a tutorial notebook that reproduces Fig. 4a of the linked Nature paper — subjecting QEC codes of various dimensionality to global rotations — using tsim.
Deliverable
.ipynb) underdocs/demos/, wired into the docs navigation alongside the existing demos.Scope
Considerations
The publication uses deterministic encoding circuits, described in the extended data (Fig 10a) of the paper. It can be useful to use the method
stim.Circuit.flow_generators()to verify that your encoding circuit has the correct stabilizers and logical Pauli operators.