-
Notifications
You must be signed in to change notification settings - Fork 375
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
MPS: Apply kraus #915
MPS: Apply kraus #915
Conversation
…ce, before the loop over all kraus matrices
src/simulators/matrix_product_state/matrix_product_state_internal.cpp
Outdated
Show resolved
Hide resolved
src/simulators/matrix_product_state/matrix_product_state_internal.cpp
Outdated
Show resolved
Hide resolved
|
||
// it is more efficient to compute the density matrix once rather than computing | ||
// the expectation value in every iteration of the loop | ||
cmatrix_t rho = qreg_.density_matrix(qubits); |
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.
Unrelated to this PR, but if MPS supports computing the density matrix, we should add density matrix snapshot support to the class like we do for the statevector method.
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.
This could also help with testing Kraus noise is being applied correctly
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.
I will open a separate PR to support snapshot_density_matrix in MPS.
@merav-aharoni I forgot to add: can you add a short release note? |
Sure, will do. |
@chriseclectic, please do not merge yet - I think I discovered a problem in the implementation. |
@merav-aharoni when you add the release note make sure you include a bullet point for the snapshot too. |
Summary
Details and comments