EntangledQuery
  • Threads
  • Categories
  • Users
  • Seminar
  • forum
  • group
  • theaters
  • search
  1. Threads
  2. Qiskit
chevron_left Qiskit

Error when plotting in qiskit: 'Arrow3D' object has no attribute '_path2d'

  • forum 1 reply
  • last reply by JXW April 9, 2022
  • Last
  • link
    Randomizer
    Members 9 posts
    April 1, 2022, 9:46 p.m. April 1, 2022, 9:46 p.m.
    link

    When I plot the block vector in qiskit plot_bloch_vector([0,1,0], title=""New Bloch Sphere""), I keep getting

    AttributeError: 'Arrow3D' object has no attribute '_path2d' 
    

    in my jupyter notebook. Any idea how to fix it?

  • arrow_forward

    Thread has been moved from Quantum Computing Software.

    • By JXW on April 1, 2022, 10:22 p.m..
  • link
    JXW
    Members 19 posts
    April 9, 2022, 11:52 a.m. April 9, 2022, 11:52 a.m.
    link

    Most likely because you are using an old version matplotlib. You can upgrade it in your coding environment by

    pip install --upgrade matplotlib
    

    BTW, regarding to how to create an environment for Qiskit in Jupyter notebook, here is a detailed instruction:
    entangledquery.com/t/how-to-use-qiskit-in-jupyter-notebook/5/#post-11

There are no more posts in this thread.

  • EntangledQuery