布罗奇球在cirq

https://youtu.be/A25ntzRO7fY
!pip install cirq
!pip install cirq-web
import cirq
from cirq_web import BlochSphere

zero_state = [1+0j, 0+0j]
state_vector = cirq.to_valid_state_vector(zero_state)

sphere = BlochSphere(state_vector=state_vector)
display(sphere)