Use a verified Grover promise test. Since , . Choose
This is a nearest integer to , so . Run the Grover search algorithm for iterations and measure the candidate . Make one further oracle query with input and measure the answer bit . Declare that a marked entry exists exactly when this bit is one.
In the zero case the verification always returns zero, so the decision is correct with certainty. In the single-marked-entry case, verification returns one exactly when the candidate is , and
Finally, on gives . Hence
The verification query is necessary for this decision rule: an unverified search-register label does not itself say whether it is marked.