qit.plot.bloch_sphere¶
- qit.plot.bloch_sphere(ax=None, equator=True)¶
Bloch sphere plot.
Plots a Bloch sphere, a geometrical representation of the state space of a single qubit. Pure states are on the surface of the sphere, nonpure states inside it. The states \(\ket{0}\) and \(\ket{1}\) lie on the north and south poles of the sphere, respectively.
- Parameters
ax (Axes) – axes in which to plot the sphere. If None, a new figure is created.
equator (bool) – if True, plot the equator (intersection with the XY plane) on the sphere
- Returns
axes containing the plot
- Return type
Axes