-
Notifications
You must be signed in to change notification settings - Fork 575
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
[QIM-1] Create a qml.math.density_matrix
for state vectors
#2554
Conversation
Hello. You may have forgotten to update the changelog!
|
qml.math.density_matrix
for state vectorsqml.math.density_matrix
for state vectors
Codecov Report
@@ Coverage Diff @@
## master #2554 +/- ##
=======================================
Coverage 99.60% 99.60%
=======================================
Files 249 249
Lines 20294 20307 +13
=======================================
+ Hits 20213 20226 +13
Misses 81 81
Continue to review full report at Codecov.
|
qml.math.density_matrix
for state vectorsqml.math.density_matrix
for state vectors
qml.math.density_matrix
for state vectorsqml.math.density_matrix
for state vectors
qml.math.density_matrix
for state vectorsqml.math.density_matrix
for state vectors
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.
Looking great, with some comments here and there. 🚀
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.
Looking good @rmoyard! Just have a couple of minor suggestions.
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.
Looks good! 🎉 🚀 Worth starting an entry in the changelog.
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 for the updates! Remember a changelog entry.
[sc-19608] |
Co-authored-by: Christina Lee <christina@xanadu.ai>
…aneAI/pennylane into density_matrix_from_array
Quantum Information module PR # 1
Context:
Currently the way to get the (reduced) density matrix from a state vector is a function in the device
default.qubit
.Description of the Change:
We add
_density_matrix_from_state_vector
internal function that takes 1-d tensors for all interfaces as input and returns the density matrix. It also createsstate_to_density_matrix
which will be the user facing function that accepts state vectors, density matrices and QNodes returning states.We also move the density matrix capabilities for state vector to the
math
module.Benefits:
The density matrix capabilities for state vectors are now in the math module and it becomes a function accessible across the whole code base.