Releases: benschneider/quantum_algorithm_simulator
Quantsim v0.2.1: Verified Gates and UI Improvements, added MOVE gate
Quantsim v0.2.1
This release focuses on gate correctness, clearer semantics, and a more polished UI for learning and experimentation.
Highlights
- Fixed parametric gate semantics and added verification tests
- Corrected
Rz(theta)to match the standard physics convention - Fixed controlled pow-gate behavior so exponent semantics are consistent with full-gate expectations
- Separated physical rotation semantics (
Rx,Ry,Rzin radians) from Cirq-style exponent gates (XPow,YPow,ZPow,CXPow,CYPow,CZPow) - Added stronger gate documentation and in-app semantic descriptions
- Improved the gate editor layout and Bloch sphere visualization
- Reworked Bloch preview logic to use a local density-matrix view for actual incoming states
- Added a logical
MOVEgate as a state-transfer abstraction - Fixed theme behavior so light mode is actually light mode again
- Refreshed the web deploy flow so the GitHub Pages WASM build is easier to keep current
Core changes
- Added focused verification tests for:
Rx,Ry,Rzactions on basis states- inverse/composition behavior
- controlled phase behavior
- pow-gate interface semantics
- Corrected
Rz(theta)to:diag(exp(-i theta / 2), exp(+i theta / 2))
- Clarified and preserved the distinction between:
- physical rotations in radians
- exponent/pow gates with Cirq-style semantics
- Added a logical
MOVEgate with explicit documentation that it is not a calibrated physical Jaynes-Cummings MOVE pulse
UI improvements
- Gate editor now shows richer semantic context:
- matrix form
- parameter meaning
- action on basis states
- convention notes
- Improved gate editor layout for better use of horizontal space
- Bloch sphere panel now presents:
- cleaner visuals
- state coordinates
- density-matrix based local-state preview
- purity information for mixed/entangled local states
- Improved circuit-grid contrast, especially in light mode
- Updated welcome screen wording and tutorial text for better consistency with the current app
Web / release tooling
- Updated versioning to
0.2.1 - Improved
deploy-web.shto:- rebuild and sync fresh web artifacts into
docs/ - avoid stale JS/WASM leftovers
- rewrite GitHub Pages paths correctly
- work around
NO_COLOR=1issues duringtrunk build
- rebuild and sync fresh web artifacts into
Notes
MOVEis currently a logical state-transfer gate with the same unitary action as the logical exchange of|01>and|10>.- It is included for workflow clarity and documentation, not as a physical pulse-level hardware model.
v0.2.0 - Quantum Algorithm Simulator Modular Architecture Release
Summary
This is the v0.2.0 "Modular Architecture" release of the Quantum Algorithm Simulator, a Rust-based interactive sandbox for exploring and visualizing quantum algorithms in the browser. This release represents a significant architectural improvement that makes the simulator more maintainable, extensible, and ready for future enhancements.
What's New
Modular Crate Structure
- Restructured into Cargo Workspace: The project is now organized as a proper Cargo workspace with separate crates for core functionality and UI
quantsim_coreCrate: Contains all the quantum simulation engine logic, making it reusable for other projectsquantsim_uiCrate: Houses the Egui-based web interface, cleanly separated from core logic
Enhanced Gate Implementations
- Fixed Controlled Power Gates: Corrected implementations of
CZPowGateandCYPowGateto properly create controlled versions of their target gates - Systematic Gate Testing: Added comprehensive tests that iterate through all registered gates to ensure they can be built and simulated without panicking
- Improved Test Assertions: Enhanced gate tests with more specific error messages to clearly indicate which gate failed
Updated Documentation
- New Modular READMEs: Each crate now has its own detailed README with usage examples and architecture overview
- Enhanced Tutorials: Updated Markdown-based tutorials with new figures and clearer explanations
- Gate Reference: Comprehensive documentation of all available quantum gates
Improved Development Workflow
- Better Dependency Management: Crates now properly reference each other as dependencies rather than using workspace references
- Embedded Circuit Templates: Circuit templates are now embedded directly in the core crate using
include_dir, eliminating file path dependencies - Comprehensive Testing: All tests pass, ensuring the stability of both core and UI components
What's Included
Web Browser App
A fully playable web browser app at:
https://benschneider.github.io/quantum_algorithm_simulator/
Interactive visualizations of:
- State vectors
- Single-qubit and multi-qubit gates
- Entanglement and interference dynamics
Guided Learning
- Markdown-based tutorials to step through quantum computing concepts visually
- Comprehensive gate reference documentation
- Example circuits demonstrating key quantum algorithms
Why You Might Like It
- Modular Design: Clean separation of concerns makes it easier to understand and extend
- Reusable Core: The simulation engine can now be used independently in other projects
- Built for Exploration: Developed in Rust with multi-thread and sparse-matrix foundations for future performance
- Visual-First Approach: Designed to open dialogue and visualize complex quantum behavior in an approachable way
What I'm Still Working On
- Supporting multi-qubit state visualization (e.g., 4-qubit and beyond) in a way that's both comprehensible and meaningful
- Incorporating feedback from early learners, educators, and quantum-curious developers
- Adding more quantum algorithms and examples
How You Can Contribute or Help
- Try it out and share what surprised you or confused you
- Drop ideas on visualizations or tutorials
- Star the repo to track progress
- Contribute to the core library or UI components
Let's demystify quantum algorithms together-one pulse, one vector, one line of Rust at a time.
Enjoy, and thanks for being part of this learning journey!
v0.1.0 - First Interactive Web Preview of Quantum Algorithm Simulator
Summary
This is the v0.1.0 "Preview Release" of my Quantum Algorithm Simulator - a small interactive sandbox built in Rust (Wasm) to explore and visualize the magic of quantum algorithms.
While it's still early, the following features are now live:
What's Included (Wasm Frontend + Docs)
- A fully playable web browser app at:
https://benschneider.github.io/quantum_algorithm_simulator/ - Interactive visualizations of:
- State vectors
- Single-qubit and multi-qubit gates
- Entanglement and interference dynamics
- A guided Markdown-based tutorial to step through concepts visually
- Frontend only-Rust source code will be published soon after further refining and documentation
Why You Might Like It
- Built for exploration and intuition, not full-feature parity with matured frameworks (like Cirq or Qiskit)
- Developed in Rust with multi-thread and sparse-matrix foundations for future performance
- Designed to open dialogue-visualize complex quantum behavior in an approachable, visual-first way
What I'm Still Working On
- Supporting multi-qubit state visualization (e.g., 4-qubit and beyond) in a way that's both comprehensible and meaningful
- Completing and polishing the full Rust backend and pushing it to GitHub
- Incorporating feedback from early learners, educators, and quantum-curious developers
I'd be incredibly grateful for your feedback, ideas, or suggestions! Whether it's UI tweaks, better visuals, new learning paths, or cool use cases-this is Version 0.1, and I'm eager to iterate with your input.
How You Can Contribute or Help
- Try it out and share what surprised you or confused you
- Drop ideas on visualizations or tutorials
- Star the repo to track progress or contribute when the backend goes live
Let's demystify quantum algorithms together-one pulse, one vector, one line of Rust at a time.
Enjoy, and thanks for being part of this learning journey!