Skip to content

Use QuEra Stim for native non-Clifford visualization - #19

Merged
rafaelha merged 4 commits into
mainfrom
feature/native-stim-visualization
Oct 21, 2026
Merged

rafaelha merged 4 commits into
mainfrom
feature/native-stim-visualization

Conversation

@rafaelha

Copy link
Copy Markdown
Collaborator

Uses the QuEra Stim fork to render non-Clifford Stim/Tsim instructions natively in 2D and 3D. Removes the placeholder/SVG relabeling pipeline and its XML dependency, preserves compatibility with legacy tagged circuits, and uses the fork's complete gate table (111 names and aliases) for completion, hover, and signature help.

Pins the fork changes in https://github.com/QuEraComputing/Stim/pull/6 at 24caff983e455abee7fa922274f10e697fef8d72 and includes the rebuilt JavaScript loader and WASM binary in Git LFS. Normal builds, tests, CI, and packaged installations do not require access to the private fork; rebuilding WASM from C++ does. Detector slices and matching graphs report unsupported non-Clifford operations instead of using Clifford stand-ins.

Updates documentation, editor/engine regression coverage, and packaging exclusions for local development worktrees.

Validation:

  • Extension build and TypeScript type-check passed.
  • Grammar tests and WASM smoke tests passed.
  • All 22 engine/editor tests passed, including native 3D exports, rotation labels, and mixed texture atlases.
  • Packaged a VSIX, verified that its WASM matches the rebuilt files, and loaded that packaged binary to export a mixed-gate 3D scene.

rafaelha and others added 4 commits October 21, 2026 00:43
Keep native Stim/Tsim instructions (no shorthand lowering) and adopt
main's refresh sequencing, lastSliceTick and UI/viewer test tooling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Detector slices and matching graphs now receive the circuit text as
written, so legacy tagged gates (S[T], I[R_X(theta=...)], ...) render as
their Clifford stand-ins instead of being decoded into native gates that
stim rejects there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shorthand lowering that produced the old messages was removed; Stim
now validates CCX and R_XX targets itself and its reason is shown as is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelha
rafaelha merged commit 11fa7a4 into main Oct 21, 2026
2 checks passed
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