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

Support standalone expr.Var in QPY #11651

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Support standalone expr.Var in QPY #11651

merged 2 commits into from
Apr 30, 2024

Commits on Apr 11, 2024

  1. Support standalone expr.Var in QPY

    This necessitates adding some extra definitions to the circuit header.
    When standalone variables are used, we do not re-encode the entire
    variable (which would take a miniumum of ~20 bytes per variable), but
    instead just emit an index into the order that the variables were
    defined at the top of the circuit.
    
    At present, each control-flow scope will store the `Var` nodes anew, so
    it's not a perfect only-store-once system.  This is consistent with how
    registers are handled, though, and the QPY format isn't particularly
    memory optimised as things stand.
    jakelishman committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    470c0b6 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

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