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

Parse modified gphase to asg::ModfiedGPhaseCall #99

Merged
merged 4 commits into from
Feb 4, 2024
Merged

Conversation

jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Feb 4, 2024

This PR adds support for gphase calls with gate modifiers.
gpahse calls without modifiers are, as before, represented by
asg::Stmt::GPhaseCall.
gphase calls with modifiers are represented by
asg::Stmt::ModifiedGPhaseCall. The latter has the same accessor
arg() as GPhaseCall. But it adds modifiers().

Closes #88

This commit adds support for gphase calls with gate modifiers.
gpahse calls *without* modifiers are, as before, represented by
`asg::Stmt::GPhaseCall`.
gphase calls *with* modifiers are represented by
`asg::Stmt::ModifiedGPhaseCall`. The latter has the same accessor
`arg()` as `GPhaseCall`. But it adds `modifiers()`.

Closes #88
@jlapeyre jlapeyre merged commit 762ee88 into main Feb 4, 2024
7 checks passed
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.

gphase expression cannot have gate modifiers applied
1 participant