2. Normalizing a Quantum State. Quantum state vectors must be normalized, meaning that their magnitude squared should sum to 1.
You can compute a state vector's magnitude in numpy
using np.linalg.norm(state_vector)
.
Normalize the following quantum state vector: [1, 1].