Skip to content

Lower duration and stretch #2611

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

idavis
Copy link
Collaborator

@idavis idavis commented Jul 17, 2025

This PR attempts to lower duration, and stretch values in OpenQASM to try to make them spec 'compliant'. The duration and stretch types are supposed to be compile-time constant which would imply they are actually const decls but not declared in const decl statements.

This is complicated by the durationof which is supposed to return a duration. The durationof call will accumulate the durations of boxes, gate calls, and delays.

@idavis idavis requested a review from orpuente-MS July 17, 2025 19:39
@idavis idavis self-assigned this Jul 17, 2025
@idavis idavis force-pushed the iadavis/lower-delay-stretch-durationof branch from 0b130a8 to fb6c167 Compare July 18, 2025 18:09
@idavis idavis marked this pull request as ready for review July 18, 2025 18:30
@idavis idavis force-pushed the iadavis/lower-delay-stretch-durationof branch from 05523c3 to 83ce53b Compare July 23, 2025 14:10
@idavis idavis force-pushed the iadavis/lower-delay-stretch-durationof branch from 83ce53b to 025d58e Compare July 24, 2025 22:43
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.

1 participant