The Different States in the Bloch Sphere
Learn to represent and visualize various qubit states on the Bloch sphere by using spherical coordinates theta and phi. Understand how phase shifts and quantum gates affect qubit states, and apply Python's qutip library to plot these states effectively.
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 ...