Skip to content

Better feedback on incorrect syntax for qubit allocation#2897

Merged
swernli merged 2 commits intomainfrom
swernli/qubit-use-guidance
Feb 2, 2026
Merged

Better feedback on incorrect syntax for qubit allocation#2897
swernli merged 2 commits intomainfrom
swernli/qubit-use-guidance

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Jan 27, 2026

This adds some additional help messages when code is known to be incorrectly performing qubit allocation. This addresses the remaining items from and fixes #331.

image image

This adds some additional help messages when code is known to be incorrectly performing qubit allocation. This addresses the remaining items from and fixes #331.
@swernli swernli enabled auto-merge February 2, 2026 19:45
Copy link
Member

@billti billti left a comment

Choose a reason for hiding this comment

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

Nice! Even after all these years, I still often try and use let to allocate qubits :(

@swernli swernli added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 7ebc428 Feb 2, 2026
18 checks passed
@swernli swernli deleted the swernli/qubit-use-guidance branch February 2, 2026 21:11
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.

More actionable error messages for common mistakes

2 participants