/blochly

Bloch sphere using plotly

Primary LanguagePython

Blochly

Bloch sphere using plotly.


For example, following video contains an example plot of the statevector:

stv = [0.65328148-0.27059805j, 0.65328148+0.27059805j]

using plot_statevector function defined in base.py.

stv is obtained by the simple circuit:

q_0: ----| H |----| Rz(pi/4) |----

bloch_plotly.mp4