Added interactive quantum circuit playground with tutorials#9
Open
CodeMaverick2 wants to merge 3 commits intoOpenQuantumDesign:mainfrom
Open
Added interactive quantum circuit playground with tutorials#9CodeMaverick2 wants to merge 3 commits intoOpenQuantumDesign:mainfrom
CodeMaverick2 wants to merge 3 commits intoOpenQuantumDesign:mainfrom
Conversation
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.
Summary
Interactive digital quantum circuit builder that lets users visually build circuits, simulate quantum states, and execute on hardware. Complements the analog program builder (#5) to complete the teaching demo for Issue #3.
What's New
3 new modules:
digital_simulator.py- quantum state simulation (kronecker product math, measurement sampling)digital_compiler.py- compiles Circuit → laser intensity patterns + trap commandsgui/circuit_builder.py- interactive NiceGUI UI with circuit grid, gate palette, and results panelModified:
digital.py- fixed pydantic v2 compatibility (root_validator→model_validator), relaxed qubit count to match 4-laser hardwaregui/programs.py- added preset circuits (Bell state, GHZ, superposition, X gate)gui/main.py- wired "Quantum Playground" button to circuit builderFeatures:
Demo -
Screen.Recording.2026-02-24.110521.1.mp4
Test Plan
python src/oqd_teaching_demo/gui/main.pystarts without errors (MOCK=True)Closes - #3