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 reset method to QuantumComputer and QAM to return to initial state #703

Merged
merged 4 commits into from
Nov 19, 2018

Conversation

karalekas
Copy link
Contributor

I was able to put a QPU-backed QuantumComputer object into a weird state by C-c'ing during a call to QuantumComputer.run, so this facility should help.

Bonus: Removed unused _n_shots and _n_bits attributes from the QAM

@mpharrigan
Copy link
Contributor

are those fields unused?

@mpharrigan
Copy link
Contributor

answering my own question: yes. Don't know how they got there to begin with

@mpharrigan mpharrigan merged commit 5cdae9e into master Nov 19, 2018
@mpharrigan mpharrigan deleted the qc-reset-state branch November 19, 2018 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants