In this codercise, you are given an unnormalized vector
We can turn this into an equivalent, valid quantum state normalize_state
so that, given
What we must do here is essentially rescale the coefficients of the state
vector such that it has unit length. That is, there must be some complex number
real-valued vector; then determine how to manipulate the amplitudes in the complex case.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: