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

Add QPY support for switch statement #9926

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Commits on Apr 6, 2023

  1. Add QPY support for switch statement

    QPY had a somewhat implicit assumption that most classes can be
    reconstructed by doing `type(obj)(*obj.params)`, which `SwitchCaseOp`
    very much does not abide by - to do so would compromise more core parts
    of how it is meant to function.  This commit puts in a special case so
    that instances of `SwitchCaseOp` present their "params" as the
    information necessary to reconstruct the op in the above form, rather
    than actually using the parameters.  That didn't feel _entirely_
    satisfying, but does work fine.
    jakelishman committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    66b331d View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. Configuration menu
    Copy the full SHA
    e2786e7 View commit details
    Browse the repository at this point in the history