This is an interactive web-based visualization tool for understanding how different types of quantum noise channels affect a qubit's Bloch sphere representation.
Built using HTML, CSS, JavaScript and Plotly.js for real-time 3D rendering.
- Visualizes how quantum noise channels deform the Bloch sphere.
- Supports Bit Flip, Phase Flip, and Depolarizing channels.
- Slider to control the noise parameter
p. - Smooth animated transitions using Plotly.js.
- Intuitive UI for learning and teaching quantum information.
-
Bit Flip Channel
Simulates noise that flips the qubit state from |0⟩ to |1⟩ or vice versa with probabilityp. -
Phase Flip Channel
Introduces a relative phase flip (Z gate-like error) with probabilityp. -
Depolarizing Channel
Randomly applies X, Y, or Z with equal probabilityp/3, shrinking the Bloch sphere.
Quantum-Channel-Visualization/
├── index.html # UI layout and script hooks
├── main.js # Visualization logic and noise simulation
└── style.css # Styling for the layout
- Plotly.js — for rendering the Bloch sphere in 3D.
Here are some ideas and features planned for future versions:
- ✅ Add more noise channels like:
- Generalized Kraus Maps
- ✅ Mobile-friendly responsive design
- ✅ Add "Preset States" menu (e.g., |0⟩, |+⟩, |1⟩)
- ✅ Side panel showing the density matrix in real-time
- ✅ Add plots for Fidelity or Purity as a function of noise
- ✅ Create a blog post/tutorial explaining the theory behind the visualization
- ✅ Add educational tooltips or explanations for sliders & controls
Contributions are welcome!
This project is licensed under the MIT License — see the LICENSE file for details.
