9
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

QuTiPでブロッホ球を描くと歪む

Last updated at Posted at 2021-01-06

内容

  • 単なる作業メモです
  • QuTiPでブロッホ球を書いたときに歪んでレンダリングされたので、それの対応をまとめます。

また、他の量子コンピュータ関係の他の記事は、下記で紹介しています。

問題

  • QuTiPでブロッホ球をレンダリングするとアスペクト比が変で歪む
from qutip import Bloch
b = Bloch()
b.add_vectors([0,0,1])
b.show()

解決策

  • matplotlib 3.3.0の仕様変更による影響の様で、matplotlibのダウングレードで治る。 1

This seems new to Matplotlib 3.3.0. Probably due to the following change:
Axes3D no longer distorts the 3D plot to match the 2D aspect ratio

  • 手元の環境では、3.2.0にダウングレートしたら解消した。
$ conda install matplotlib=3.2.0

やはり、ブロッホ球は丸いほうが落ち着く。以上。

  1. Bloch sphere distortion on Jupyter Lab #1329

9
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?