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

Fix transpile() with a Target containing an ideal Measure (backport #8995) #9020

Merged
merged 1 commit into from
Oct 28, 2022

Commits on Oct 28, 2022

  1. Fix transpile() with a Target containing an ideal Measure (#8995)

    This commit fixes an oversight in the transpile() function when running
    with a Target (either directly or via a backend) that contains a
    Measurement operation that is ideal (either globally or locally) with no
    properties defined. This was not handled correctly in the function used
    to convert a Target to a BackendProperties payload for passes that are
    not yet target aware and this would cause an exception to be raised.
    This commit fixes this edge case and excludes readout properties from
    the generated BackendProperties in this case.
    
    Fixes #8969
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    (cherry picked from commit 72ba2ee)
    mtreinish authored and mergify[bot] committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    41aae94 View commit details
    Browse the repository at this point in the history