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

Show no quantum state when debugging code with no qubits #1953

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Oct 8, 2024

Instead of showing a single bit zero state, this change makes the debugger quantum state view show a message when no qubits are allocated on the system:
image

Fixes #1922

Instead of showing a single bit zero state, this change makes the debugger quantum state view show a message when no qubits are allocated on the system:

Fixes #1922
Copy link
Member

@minestarks minestarks left a comment

Choose a reason for hiding this comment

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

Do we need to make the same fix in the DumpMachine output in Python and the Playground?

Copy link
Member

@minestarks minestarks left a comment

Choose a reason for hiding this comment

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

Debugger fix LGTM, consider fixing in other places. Thanks!

@swernli
Copy link
Collaborator Author

swernli commented Oct 14, 2024

Do we need to make the same fix in the DumpMachine output in Python and the Playground?

Yeah, I think you are right and it's worth filing follow up issue(s). I'll add those to the backlog!

@swernli
Copy link
Collaborator Author

swernli commented Oct 14, 2024

Do we need to make the same fix in the DumpMachine output in Python and the Playground?

Yeah, I think you are right and it's worth filing follow up issue(s). I'll add those to the backlog!

#1961 for Python and #1962 for the playground.

@swernli swernli added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit 2856c76 Oct 16, 2024
18 checks passed
@swernli swernli deleted the swernli/issue1922 branch October 16, 2024 16:16
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.

When debugging code with no qubits, quantum state in Variables view is reported as |0>
3 participants