LoginSignup
1
0

More than 1 year has passed since last update.

!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から限定情報を受け取る

1
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
1
0