The Different States in the Bloch Sphere
Learn the concept of the different states in the Bloch sphere.
Let’s explore different states in the Bloch sphere. We use the Python library qutip
as it allows us to easily play around with other visualizations of the Bloch sphere (see the documentation for details).
The Bloch
class of qutip
works with cartesian coordinates. Let’s write a function that allows us to use the angles and . If we interpret and as spherical coordinates (with the radius is ) we can plot any qubit state on the surface of the Bloch sphere.
Get hands-on with 1200+ tech skills courses.