PennyLaneAI / pennylane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
https://pennylane.ai
Apache License 2.0
2.29k stars 590 forks source link

Add `VnEntanglementEntropyMP` measurement process #6270

Closed mudit2812 closed 1 week ago

mudit2812 commented 2 weeks ago

Context: With the qinfo deprecations in progress, it makes sense to have users still be able to easily access the VN entanglement entropy.

Description of the Change: Add a VnEntanglementEntropyMP and associated qml.vn_entanglement_entropy function

Benefits:

Possible Drawbacks:

Related GitHub Issues:

mudit2812 commented 2 weeks ago

[sc-67446]

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 98.64865% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.69%. Comparing base (cbc5a9d) to head (5ed5f7c). Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pennylane/devices/_qubit_device.py 93.33% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6270 +/- ## ========================================== - Coverage 99.69% 99.69% -0.01% ========================================== Files 443 444 +1 Lines 42022 42095 +73 ========================================== + Hits 41894 41966 +72 - Misses 128 129 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mudit2812 commented 1 week ago

[sc-73936]