-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entanglement entropy of pure bipartite states #5306
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5306 +/- ##
==========================================
- Coverage 99.69% 99.69% -0.01%
==========================================
Files 410 412 +2
Lines 38278 38159 -119
==========================================
- Hits 38161 38041 -120
- Misses 117 118 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @astralcai! It looks great to me. I just left a few minor comments. Since this branch is 37 commits behind master, maybe updating it to see if all tests are fine would be appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍
OOOps Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Context:
Quantifying the entanglement for example by determining the entropy of entanglement of bipartite quantum states can be useful for applications of quantum information (e.g., in quantum cryptography).
One way of determining entanglement entropy is to compute the von Neumann entropy of one of the reduced states (see reduced density matrix feature here).
It could be useful to add a user interface for such a measure specifically for the bipartite quantum state case.
Description of the Change:
The von Neumann entanglement entropy feature is now added to
math
andqinfo
.qml.math.vn_entanglement_entropy()
returns the Von Neumann entanglement entropy between two subsystems in a given density matrix.qml.qinfo.vn_entanglement_entropy()
computes the Von Neumann entanglement entropy from aQNode
returning astate()
.Benefits:
It enables users to find the entanglement entropy of a pure bipartite state.
Possible Drawbacks:
The von Neumann entanglement entropy is only defined for pure bipartite states. The current implementation does not perform any checks on if the overall input state is pure or mixed, since such a check would be jax.jit-unfriendly.
Related GitHub Issues:
#3150
Related Shortcut Story
[sc-55206]