Groups
Sign in
Groups
QuTiP: Quantum Toolbox in Python
Conversations
About
Send feedback
Help
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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