Bloch Sphere Widget - Command and Dev Playground#3306
Open
ScottCarda-MS wants to merge 34 commits into
Open
Conversation
…ox validation effects
…c used by both bloch and state-viz
Member
Member
Member
|
It seems like the slider at the bottom manipulates Rz in radians but the angles at the top are in degrees? Maybe that's a feature? |
Member
|
Personally, I'd find it very helpful to see the ending state in the top-level summary (maybe top-right) and not just in the sidebar. |
Member
|
Is the |
amcasey
reviewed
Jun 13, 2026
amcasey
left a comment
Member
There was a problem hiding this comment.
Random drive-by comments. That's a lot of 3D geometry code to review...
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