Hi, I’m just starting to be interested in quantum computing. I got stuck on the first question. Why is my code not working? Thanks!
##################
# YOUR CODE HERE #
##################
z=abs(alpha)
x=abs(beta)
a = alpha/z
b = beta/x
# CREATE A VECTOR [a', b'] BASED ON alpha AND beta SUCH THAT |a'|^2 + |b'|^2 = 1
vector= np.array([a,b])
return vector
# RETURN A VECTOR