Hello,
I get the error “The fidelity of a state with itself should be one.”. Despite writing what I believe to be a correct implementation (it works for the following codercises)
##################
# YOUR CODE HERE #
##################
# RETURN THE FIDELITY
return np.abs(np.inner(phi, psi))
Thanks