Skip to main content

Module state_visualization_3d

Module state_visualization_3d 

Source
Expand description

Advanced 3D quantum state visualization.

Provides five visualization types for quantum state vectors:

  • Bloch sphere array: per-qubit Bloch vectors on a sphere grid
  • Q-sphere: Qiskit-style global phase-weighted amplitude map
  • Discrete Wigner: Wootters phase-space function (n=1, 2 only)
  • Husimi Q: SU(2) coherent-state projection on the sphere
  • Density matrix bars: 3D bar plots of Re(ρ) and Im(ρ)

All renderers return Plotly-JSON strings that can be wrapped in a self-contained HTML page or consumed by the Plotly.js library.

Modules§

bloch
Bloch sphere visualization for multi-qubit states.
density_bars
Density matrix 3D bar-plot visualization.
husimi
Husimi Q-distribution visualization for quantum states.
qsphere
Q-sphere visualization (Qiskit-style) for quantum states.
wigner
Discrete Wigner function visualization for n=1 and n=2 qubit states.

Functions§

make_plotly_html
Wraps a Plotly-JSON object in a self-contained HTML page.