Bloch Sphere Widget - Command and Dev Playground#3306
Open
ScottCarda-MS wants to merge 63 commits into
Open
Conversation
…ox validation effects
…c used by both bloch and state-viz
…ove Rz to top, and shrink horizontally
Member
|
Does our target audience already know which vectors lie along the X, Y, and Z axes? |
Member
|
I like the updates, especially the new wireframe. The experience LGTM, but I haven't reviewed the code. |
amcasey
reviewed
Jul 1, 2026
amcasey
left a comment
Member
There was a problem hiding this comment.
Within the limits of my ability to review, LGTM
amcasey
approved these changes
Jul 2, 2026
amcasey
left a comment
Member
There was a problem hiding this comment.
The experience and the code seem fine to me. We should discuss which release this will be included in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bloch Sphere View for Q# UX (Playground + VS Code)
Summary
This PR introduces an interactive Bloch sphere view in the shared Q# UX package and wires it into both:
It also adds the synthesis data/tooling used by the Bloch Rz helper.
What’s Included
New Bloch UX surface
Shared math and compute cleanup
Rz synthesis artifacts and generator source
source/npm/qsharp/rz-array.jsonsource/npm/qsharp/rz-details.jsonsource/npm/qsharp/tools/rz-synthesis.tssource/npm/qsharp/tools/tsconfig.jsonPlayground integration
VS Code integration
Packaging and dependency updates
Key Files (high signal)
source/npm/qsharp/ux/bloch.tsxsource/npm/qsharp/ux/blochGates.tssource/npm/qsharp/ux/quantum-math.tssource/npm/qsharp/ux/cplx.tssource/npm/qsharp/ux/circuit-vis/state-viz/worker/stateCompute.tssource/npm/qsharp/rz-array.jsonsource/npm/qsharp/rz-details.jsonsource/npm/qsharp/tools/rz-synthesis.tssource/playground/src/nav.tsxsource/playground/src/main.tsxsource/vscode/src/webviewPanel.tssource/vscode/src/webview/webview.tsxScreenshots