!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)
▼ ワンコインAI無料お試し
▼ DeepRecommendから限定情報を受け取る