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

Add general SaveState instruction #1164

Merged
merged 5 commits into from
Mar 16, 2021
Merged

Conversation

chriseclectic
Copy link
Member

Summary

Adds SaveState instruction, with save_state circuit method.

This saves the state of the simulator in the appropriate format for the simulation method (ie. statevector, density_matrix, unitary, stabilizer).

Details and comments

Note that for density matrix simulation this is treated as a single data type like for the other simulation methods, rather than average as with the regular save_density_matrix instruction. Hence it is always the state of the simulator at the final shot (unless pershot=True and it is a list of states for each shot).

@chriseclectic chriseclectic added the Changelog: New Feature Include in the Added section of the changelog label Feb 26, 2021
@chriseclectic chriseclectic added this to the Aer 0.8 milestone Feb 26, 2021
@chriseclectic chriseclectic changed the title [WIP] Add general SaveState instruction Add general SaveState instruction Mar 5, 2021
@vvilpas vvilpas requested a review from mtreinish as a code owner March 11, 2021 08:38
@vvilpas vvilpas merged commit 7e6ed61 into Qiskit:master Mar 16, 2021
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