Skip to content
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

Merged
merged 26 commits into from
Apr 26, 2024
Merged

Entanglement entropy of pure bipartite states #5306

merged 26 commits into from
Apr 26, 2024

Conversation

astralcai
Copy link
Contributor

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 and qinfo. 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 a QNode returning a state().

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]

@astralcai astralcai marked this pull request as ready for review March 5, 2024 16:13
@astralcai astralcai requested a review from a team March 5, 2024 19:31
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.69%. Comparing base (9151477) to head (398470e).
Report is 9 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@Alex-Preciado Alex-Preciado requested review from PietropaoloFrisoni and albi3ro and removed request for a team April 2, 2024 15:32
Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni left a 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.

Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni left a comment

Choose a reason for hiding this comment

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

👍👍👍

@astralcai astralcai added this to the v0.36 milestone Apr 25, 2024
@Alex-Preciado Alex-Preciado requested review from mudit2812 and removed request for albi3ro April 26, 2024 15:46
OOOps

Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
@astralcai astralcai requested a review from mudit2812 April 26, 2024 18:04
@astralcai astralcai added the merge-ready ✔️ All tests pass and the PR is ready to be merged. label Apr 26, 2024
@astralcai astralcai merged commit d7342b6 into master Apr 26, 2024
39 checks passed
@astralcai astralcai deleted the entropy branch April 26, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-ready ✔️ All tests pass and the PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants