Skip to content

Fix Grover's algorithm answer - #5502

Open
lukedev45 wants to merge 2 commits into
Qiskit:mainfrom
lukedev45:fix-grovers-hadamard-answer
Open

Fix Grover's algorithm answer#5502
lukedev45 wants to merge 2 commits into
Qiskit:mainfrom
lukedev45:fix-grovers-hadamard-answer

Conversation

@lukedev45

Copy link
Copy Markdown

Fix incorrect answer in Grover's algorithm "check your understanding"

Fixes #5500

The check-your-understanding question asks readers to derive, from the Hadamard gate definition, that a second application of H undoes a superposition (i.e. $H^2=I$). The posted answer instead discussed applying X to $|+\rangle$/$|-\rangle$ and computing an expectation value, content from a different question (the same paragraph appears correctly in superposition-with-qiskit.ipynb), not this one.

Replaced the answer with a derivation showing $H(H|0\rangle)=|0\rangle$ and $H(H|1\rangle)=|1\rangle$ from the stated gate definitions, matching what the question actually asks.

@lukedev45
lukedev45 requested a review from a team August 11, 2026 20:54
@qiskit-bot

Copy link
Copy Markdown
Contributor

Thanks for contributing to Qiskit documentation!

Before your PR can be merged, it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. Thanks! 🙌

One or more of the following people are relevant to this code:

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Incorrect Answer to Grover's Algorithm Question

2 participants