Skip to content

Add animated detector slice diagrams - #1138

Open
ShallIBE wants to merge 2 commits into
quantumlib:mainfrom
ShallIBE:animated-detslice-with-ops
Open

ShallIBE wants to merge 2 commits into
quantumlib:mainfrom
ShallIBE:animated-detslice-with-ops

Conversation

@ShallIBE

@ShallIBE ShallIBE commented Nov 5, 2026

Copy link
Copy Markdown

Adds animated-detslice-with-ops to stim.Circuit.diagram and stim diagram.

The result is a self-contained HTML animation of Stim’s existing detslice-with-ops-svg output. Integer ticks use exact Stim SVG frames, while detector regions interpolate smoothly between ticks.

Supports tick ranges and coordinate filtering. No external dependencies.

(Same commits as #1103, which closed automatically when its fork was deleted.)

Add a self-contained animation for detector slices with operations. Preserve exact Stim SVG frames at integer ticks and interpolate detector regions between ticks.
Remove SVG parsing by collecting detector geometry during rendering.
Use std::stringstream, format the embedded player, and add focused tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant