Skip to content

Treat non-zero qubits on release as execution error#217

Merged
swernli merged 5 commits intomainfrom
swernli/release-qubits-zero-check
Apr 27, 2023
Merged

Treat non-zero qubits on release as execution error#217
swernli merged 5 commits intomainfrom
swernli/release-qubits-zero-check

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Apr 26, 2023

This change adds an execution error when qubits are released in a state other than the zero/ground state. This matches the behavior of the legacy simulator and helps with algorithm authoring and education scenarios.

Fixes #201

Copy link
Contributor

@kuzminrobin kuzminrobin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to unblock, but I would recommend at least one more approval.

swernli added 2 commits April 27, 2023 12:59
This change adds an execution error when qubits are released in a state other than the zero/ground state. This matches the behavior of the legacy simulator and helps with algorithm authoring and education scenarios.

Fixes #201
@swernli swernli force-pushed the swernli/release-qubits-zero-check branch from b584749 to dcf3663 Compare April 27, 2023 19:59
@swernli swernli enabled auto-merge (squash) April 27, 2023 20:57
@swernli swernli merged commit 3035607 into main Apr 27, 2023
@swernli swernli deleted the swernli/release-qubits-zero-check branch April 27, 2023 21:56
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.

Qubits should be verified to be in the zero state on release

5 participants