This repository was archived by the owner on Aug 21, 2023. It is now read-only.
Fixed a code typo in 02_operators_overview.ipynb#1231
Merged
Eric-Arellano merged 5 commits intoQiskit:masterfrom Aug 17, 2023
Merged
Fixed a code typo in 02_operators_overview.ipynb#1231Eric-Arellano merged 5 commits intoQiskit:masterfrom
Eric-Arellano merged 5 commits intoQiskit:masterfrom
Conversation
Fix a typo, in cell with description "# Compose YX in front of the previous operator", the one composed is XZ. Fix XZ to YZ and change the output.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Fixed "an 3-qubit identity" with "a 3-qubit identity"
Fixed some typos print(qc.draw()), should be qc.draw() (or print(qc))
Eric-Arellano
previously approved these changes
Aug 17, 2023
Collaborator
Eric-Arellano
left a comment
There was a problem hiding this comment.
Pardon the late review. Good catch!
Eric-Arellano
approved these changes
Aug 17, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix a typo, in cell with description "# Compose YX in front of the previous operator". The code compose XZ in front of the previous operator, while it should be YX.
Details and comments
op.compose(XZ, qargs=[0, 2], front=True)is changed withop.compose(YX, qargs=[0, 2], front=True), and add the correct output.