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 initial_layout in transpile with loose qubits (backport #10153) #10157

Merged
merged 1 commit into from
May 24, 2023

Commits on May 24, 2023

  1. Fix initial_layout in transpile with loose qubits (#10153)

    The previous logic around building a `Layout` object from an
    `initial_layout` was still couched in the "registers own bits" model, so
    could not cope with loose bits.  It's most convenient to just build the
    mapping ourselves during the parsing, since the logic is quite specific
    to the form of the `initial_layout` argument, rather than being
    something that's inherently tied to the `Layout` class.
    
    (cherry picked from commit 716b648)
    jakelishman authored and mergify[bot] committed May 24, 2023
    Configuration menu
    Copy the full SHA
    f8ed13c View commit details
    Browse the repository at this point in the history