Skip to content

Tutorial: Subjecting codes of various dimensionality to global rotations #119

@rafaelha

Description

@rafaelha

Write a demo notebook that reproduces Fig. 4a of https://www.nature.com/articles/s41586-025-09848-5 using Tsim.

Image

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

  • [[7,1,3]] 2D color code (Steane code) curve
  • [[15,1,3]] 3D color code (quantum Reed-Muller code) is only required if Tsim can run the circuit with reasonable compute, since this circuit requires 15 non-Clifford rotations. You may also want to experiment with clifft.
  • Curve for unentangled experiment
  • Explain the physics — include markdown that explains global rotations, the codes being studied, and what tsim is computing at each step, so the notebook reads as a tutorial and not just a script.

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.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions