Skip to content

Add orbital entanglement diagram widget#2974

Merged
billti merged 37 commits intomainfrom
jpu/orbital-entaglement-widget
Apr 28, 2026
Merged

Add orbital entanglement diagram widget#2974
billti merged 37 commits intomainfrom
jpu/orbital-entaglement-widget

Conversation

@nabbelbabbel
Copy link
Copy Markdown

@nabbelbabbel nabbelbabbel commented Feb 26, 2026

Note: This PR is a lot of AI generated infra to achieve an outcome for testing purposes. While the features work, the way they are done needs some serious work and rethinking.

Adds:

  • orbital entanglement diagram widget
  • option to generate static SVG from orbital entanglement diagram widget for publications/presentations with python code
  • option to generate static SVG from histogram
  • option to generate static SVG from circuit

Widget with active space selection (gold):
image

Widget while hovering individual orbital/entangled node:
image

Comment thread source/widgets/js/render_svg.mjs Outdated
Comment thread source/widgets/js/render_svg.mjs Outdated
Comment thread source/widgets/js/render_svg.mjs Outdated
Comment thread package.json Outdated
Comment thread source/widgets/js/render_svg.mjs Outdated
Comment thread source/widgets/js/index.tsx Fixed
Comment thread source/widgets/js/index.tsx Fixed
Comment thread source/npm/qsharp/ux/orbitalEntanglement.tsx
Comment thread source/npm/qsharp/ux/orbitalEntanglement.tsx Outdated
Comment thread source/npm/qsharp/ux/orbitalEntanglement.tsx
Comment thread source/widgets/js/index.tsx Outdated
Comment thread source/widgets/js/index.tsx Outdated
Comment thread source/widgets/js/svgDomShim.mjs Outdated
Comment thread source/widgets/js/render_svg.mjs Outdated
@nabbelbabbel nabbelbabbel marked this pull request as draft February 27, 2026 17:46
Comment thread source/widgets/js/render_svg.mjs Outdated
Comment thread source/npm/qsharp/ux/orbitalEntanglement.tsx Fixed
@nabbelbabbel nabbelbabbel marked this pull request as ready for review April 7, 2026 20:38
Comment thread source/widgets/src/qsharp_widgets/__init__.py
Comment thread source/widgets/src/qsharp_widgets/__init__.py Outdated
Comment thread source/widgets/src/qsharp_widgets/__init__.py Outdated
@billti billti added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 42984c1 Apr 28, 2026
12 checks passed
@billti billti deleted the jpu/orbital-entaglement-widget branch April 28, 2026 14:35
joao-boechat pushed a commit that referenced this pull request Apr 28, 2026
**Note:** This PR is a lot of AI generated infra to achieve an outcome
for testing purposes. While the features work, the way they are done
needs some serious work and rethinking.

Adds:
- orbital entanglement diagram widget
- option to generate static SVG from orbital entanglement diagram widget
for publications/presentations with python code
- option to generate static SVG from histogram
- option to generate static SVG from circuit

Widget with active space selection (gold):
<img width="638" height="842" alt="image"
src="https://github.com/user-attachments/assets/2a468f7e-111d-4409-87f2-87bf90e8891f"
/>

Widget while hovering individual orbital/entangled node:
<img width="856" height="851" alt="image"
src="https://github.com/user-attachments/assets/8b9b05da-ac89-45cb-9782-5f7355a9d62b"
/>

---------

Co-authored-by: Jan Unsleber <janunsleber@microsoft.com>
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.

3 participants