Qiskit, Quantum Computing, Grovers Algorithm, Quantum Algorithms, Algorithms.
is just every state that isn’t ‘w’, we know there are ‘n-1’ states in ‘s′’. So the probability of measuring ‘s′’ from the equal superposition is ‘(n-1)/n’. From there, we can just square root the probabilities to find probability amplitudes. Then apply those amplitudes to the linear combination: