Skip to content

Clarify CNOT control, target, and basis ordering - #5625

Open
Henry Zou (henryzou50) wants to merge 1 commit into
mainfrom
fix-cnot
Open

Clarify CNOT control, target, and basis ordering#5625
Henry Zou (henryzou50) wants to merge 1 commit into
mainfrom
fix-cnot

Conversation

@henryzou50

Copy link
Copy Markdown
Collaborator

Clarifies the CNOT explanation in “Get started with Qiskit in the classroom” to distinguish control/target argument order from Qiskit’s ket ordering.

  • Explicitly identifies the control, target, and ordered matrix basis.
  • Replaces the ambiguous input/output equation with the actual CNOT transformation.
  • Links to the bit-ordering guide.

The existing matrix is correct and remains unchanged, along with code and notebook outputs.

Validation: Verified the matrix and all four basis-state mappings with Qiskit. Markdown, spelling, and internal-link checks passed.

Fixes #5622.

Distinguish gate argument order from Qiskit's ket ordering and replace
the ambiguous equation with the explicit CNOT transformation.
Preserve the correct matrix, code, and notebook outputs.

Fixes #5622
@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

@qiskit-bot

Copy link
Copy Markdown
Contributor

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

@abbycross abbycross left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kaelynj

Copy link
Copy Markdown
Collaborator

cc christopherporter1

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.

problem on CNOT Gate

4 participants