Skip to content

Ankitk108/Quantum-Channel-Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Channel Visualization 🌀

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.


🌐 Live Demo

🔗 View Project


🎯 Features

  • 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.

📸 Screenshot

Quantum Channel Visualization


🧪 Quantum Channels Implemented

  1. Bit Flip Channel
    Simulates noise that flips the qubit state from |0⟩ to |1⟩ or vice versa with probability p.

  2. Phase Flip Channel
    Introduces a relative phase flip (Z gate-like error) with probability p.

  3. Depolarizing Channel
    Randomly applies X, Y, or Z with equal probability p/3, shrinking the Bloch sphere.


📁 Project Structure

Quantum-Channel-Visualization/
├── index.html        # UI layout and script hooks
├── main.js           # Visualization logic and noise simulation
└── style.css         # Styling for the layout

📌 Dependencies

  • Plotly.js — for rendering the Bloch sphere in 3D.

🔮 Future Plans

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!


📜 License

This project is licensed under the MIT License — see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors