Skip to content

vbhavsar/bloch-sphere-simulator

 
 

Repository files navigation

A web based Bloch sphere simulator, intended to help people understand and visualize single qubit state transitions when applying quantum logic gates.

No installation required — visit https://vbhavsar.github.io/bloch-sphere-simulator/

Features

  • Animated gate application with rotation trail
  • Quantum gates: X, Y, Z, H, S, S†, T, T†, Rx, Ry, Rz
  • State presets: |0⟩, |1⟩, |+⟩, |−⟩, |+i⟩, |−i⟩
  • Draggable camera (yaw/pitch)
  • Three themes: paper, ink, blueprint
  • Gate history log

Running locally

No build step or dependencies needed. Just serve the repo root as a static site:

python3 -m http.server

Then open http://localhost:8000 in your browser.

Tech stack

  • React 18 — UI (loaded via CDN)
  • Babel Standalone — JSX transpilation in-browser
  • SVG — Bloch sphere rendering (orthographic projection, no WebGL required)

About

A simple web based Bloch sphere simulator, intended to help people to understand and visualize transition of single qubit state on applying different Quantum logic gates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.1%
  • HTML 3.9%