Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Fix typos in density-matrix.ipynb #51

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Conversation

amorphedstar
Copy link
Contributor

No description provided.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@CLAassistant
Copy link

CLAassistant commented Jun 21, 2023

CLA assistant check
All committers have signed the CLA.

Comment on lines -889 to +890
"rho_B = qi.partial_trace(rho_AB,[0])\n",
"rho_A = qi.partial_trace(rho_AB,[1])\n",
"rho_B = qi.partial_trace(rho_AB,[1])\n",
"rho_A = qi.partial_trace(rho_AB,[0])\n",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In section 2, qubit 0 is specified to correspond to $B$, and 1 to $A$. So rho_B is obtained by tracing over qubit $A$, or 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the same ordering is intended for $C$ and $D$ in section 5, those lines should probably be reversed, too.

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

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

Thank you!

@frankharkins frankharkins merged commit 71ab8a3 into Qiskit:main Jul 4, 2023
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants