Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stim.Circuit.to_{crumble,quirk}_url and -svg-html diagrams #726

Merged
merged 8 commits into from
Mar 21, 2024
Merged

Conversation

Strilanc
Copy link
Collaborator

@Strilanc Strilanc commented Mar 20, 2024

  • These are variants of -svg diagrams, that force an HTML iframe in notebook viewers
    • This is useful in collab notebooks because it gives a resizable tab
    • Also it makes right-click + "open image in new tab" work
    • Also it makes right-click + "save image" work
  • Adds stim.Circuit.to_crumble_url
  • Adds stim.Circuit.to_quirk_url
  • Move qasm-export from stim/circuit/ to stim/util_top/

Fixes #649

- This is useful in collab notebooks because it gives a resizable tab
- Also it makes right-click + "open image in new tab" work
- Also it makes right-click + "save image" work
@Strilanc Strilanc changed the title Add -svg-html variants of -svg diagrams that force an HTML iframe Add -svg-html diagrams and stim.Circuit.to_crumble_url Mar 20, 2024
@Strilanc Strilanc changed the title Add -svg-html diagrams and stim.Circuit.to_crumble_url Add stim.Circuit.to_{crumble,quirk}_url and -svg-html diagrams Mar 21, 2024
@Strilanc Strilanc enabled auto-merge (squash) March 21, 2024 04:43
@Strilanc Strilanc merged commit e353e8f into main Mar 21, 2024
53 checks passed
@Strilanc Strilanc deleted the dia branch March 21, 2024 05:11
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.

Add stim.Circuit.to_crumble_url
1 participant