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

MPS: Apply kraus #915

Merged
merged 23 commits into from
Sep 29, 2020
Merged

MPS: Apply kraus #915

merged 23 commits into from
Sep 29, 2020

Conversation

merav-aharoni
Copy link
Contributor

Summary

Details and comments


// 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);
Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

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 merav-aharoni changed the title [WIP] MPS: Apply kraus MPS: Apply kraus Sep 8, 2020
chriseclectic
chriseclectic previously approved these changes Sep 9, 2020
@chriseclectic
Copy link
Member

@merav-aharoni I forgot to add: can you add a short release note?

@chriseclectic chriseclectic added the Changelog: New Feature Include in the Added section of the changelog label Sep 9, 2020
@merav-aharoni
Copy link
Contributor Author

Sure, will do.

@merav-aharoni
Copy link
Contributor Author

@chriseclectic, please do not merge yet - I think I discovered a problem in the implementation.

@chriseclectic chriseclectic added the on hold Can not fix yet label Sep 9, 2020
@chriseclectic chriseclectic added this to the Aer 0.7 milestone Sep 15, 2020
@merav-aharoni merav-aharoni changed the title MPS: Apply kraus [WIP] MPS: Apply kraus Sep 24, 2020
@merav-aharoni merav-aharoni changed the title [WIP] MPS: Apply kraus MPS: Apply kraus Sep 24, 2020
@chriseclectic chriseclectic removed the on hold Can not fix yet label Sep 25, 2020
@chriseclectic
Copy link
Member

@merav-aharoni when you add the release note make sure you include a bullet point for the snapshot too.

@chriseclectic chriseclectic merged commit 5258ce6 into Qiskit:master Sep 29, 2020
@merav-aharoni merav-aharoni deleted the apply_kraus branch November 4, 2020 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the Added section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants