I'm new at QC, and one of the Qiskit quick exercises asks me to plot this ($j$ is the imaginary unit):
$\frac{1}{\sqrt{2}} \begin{bmatrix} j\\1\end{bmatrix}$, so I deduced $\alpha=j$ and beta= 1.

I know this is the equation: $|q\rangle = \cos{\frac{\theta}{2}} |0\rangle + e^{j\phi}\sin{\frac{\theta}{2}} |1\rangle$

I don't know how to plot it, any help would be appreciated, thanks.

EDIT: I'm sorry, I did miss a lot of details in my question, I've already plotted 1, 2, 3, and 4 from the quick exercise. I just don't have a clue how to convert #5 to spherical coordinates in order to plot it.

Quick Exercises

  • $\begingroup$ can you provide the exercises link, or explain more what you want to visualize, there is a lot of visualize method, you can take at look here qiskit.org/documentation/apidoc/… $\endgroup$
    – poig
    Commented Jun 17, 2022 at 9:29
  • $\begingroup$ I just edit my answer $\endgroup$
    – poig
    Commented Jun 18, 2022 at 5:42
  • $\begingroup$ accept the answer will help a lot thank you $\endgroup$
    – poig
    Commented Jun 18, 2022 at 20:15

1 Answer 1


I suggest you can learn to look at Qiskit documentation, and figuring out how to solve the exercises by yourself.

This is the way how I do the 5

from qiskit import QuantumCircuit
from qiskit.visualization import array_to_latex
qc = QuantumCircuit(1)
initi_ = np.array([0.+1j, 1+0.j])/np.sqrt(2)
state = Statevector.from_instruction(qc)

enter image description here
enter image description here
so I know it is:

plot_bloch_vector([1,np.pi/2,np.pi*3/2], title="New Bloch Sphere", coord_type = 'spherical')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.