Could not create a Bloch Sphere!

0 views
Skip to first unread message

Abdulsalam Odofin

unread,
Jul 20, 2024, 11:18:22 AM (2 days ago) Jul 20
to QuTiP: Quantum Toolbox in Python
Hello,

I am trying to create a Bloch sphere with QuTiP, but could not. I will be glad if you could help me out. Here is my code; Thank you!
from qutip import *
import numpy as np
import matplotlib.pyplot as plt
b = qutip.Bloch()
b.make_sphere()
pnt = [1/np.sqrt(3), 1/np.sqrt(3), 1/np.sqrt(3)]
b.add_points(pnt)
b.render()

Reply all
Reply to author
Forward
0 new messages