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

DumpMachine output in Python and console should be empty with no qubits allocated #1984

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Oct 30, 2024

This change updates the display of quantum state when no qubits are allocated to show a message rather than the same output as one qubit in the zero state. This matches the updated debugger behavior. Note that I've tried to ensure this is NOT a breaking change for consumers of the WASM/npm package by extending the data type rather than changing the behavior or contents of existing fields, and verifyied this by leaving the dev playground unchanged and confirming it preserved the old behavior there (playground will be updated in a follow up PR and is tracked by a separate issue).

Fixes #1961

image

…bits allocated

This change updates the display of quantum state when no qubits are allocated to show a message rather than the same output as one qubit in the zero state. This matches the updated debugger behavior. Note that I've tried to ensure this is NOT a breaking change for consumers of the WASM/npm package by extending the data type rather than changing the behavior or contents of existing fields, and verifyied this by leaving the dev playground unchanged and confirming it preserved the old behavior there (playground will be updated in a follow up PR and is tracked by a separate issue).

Fixes #1961
@swernli swernli added this pull request to the merge queue Oct 31, 2024
@swernli swernli removed this pull request from the merge queue due to a manual request Oct 31, 2024
@swernli swernli added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit 0c5ae2c Oct 31, 2024
18 checks passed
@swernli swernli deleted the swernli/issue1961 branch October 31, 2024 17:54
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.

DumpMachine output in Python and console should be empty with no qubits allocated
3 participants