Is there anyone who reproduced the Bloch sphere given in the paper QuTiP: An open-source Python framework for the dynamics of open quantum systems by J. R. Johansson, P. D. Nation, Franco Nori? I am trying to reproduce the Figure 10: Bloch sphere representation of the Landau-Zener transition. The code they used is given in the appendix of the paper.

But when I am trying to plot this, I am getting an error:

AttributeError: 'numpy.ndarray' object has no attribute 'indices'

Can anyone please help me to correct this one to get the exact Bloch sphere plot?


1 Answer 1


That is a very old paper, corresponding to version one of the software. It is now on version 4.x. It is best to see the current documentation for how to use the Bloch sphere: http://qutip.org/docs/latest/guide/guide-bloch.html

  • $\begingroup$ Thank you so much $\endgroup$
    – Jack
    Commented Jun 13, 2019 at 11:13
  • $\begingroup$ Can you please help me to find an answer to this question: $\endgroup$
    – Jack
    Commented Jun 19, 2019 at 6:17

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.