# randomly create a 2-dimensional quantum state
from math import cos, sin, pi
from random import randrange
def random_quantum_state2():
    angle_degree = randrange(360)
    angle_radian = 2*pi*angle/360
    return [cos(angle_radian),sin(angle_radian)]

# include our predefined functions
%run qlatvia.py

# draw the axes
draw_qubit()

for i in range(6):
    [x,y]=random_quantum_state2()
    draw_quantum_state(x,y,"|v"+str(i)+">")

# include our predefined functions
%run qlatvia.py

# draw the axes
draw_qubit()

for i in range(100):
    [x,y]=random_quantum_state2()
    draw_quantum_state(x,y,"")

