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

Allow identifiers in measureExpression #482

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

braised-babbage
Copy link
Contributor

Summary

The current syntax for measurement precludes the usage of defcals with return values, as discussed in this issue: #481

This PR extends measureExpression to allow for general identifiers. For example, this supports the following

measure_iq q;
measure_iq q -> c[0];
c[0] = measure_iq q[0];

Details and comments

This is the smallest change I could think of to support this functionality. There's one wart, which is that measure_iq q; is ambiguous and resolves to a gate application rather than a quantum measurement.

@jlapeyre jlapeyre added the enhance/change spec Semantic changes to language, not clarification label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance/change spec Semantic changes to language, not clarification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants