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 PassManagerConfig.from_backend with BackendV1 and no CouplingMap (backport #10172) #10181

Merged
merged 1 commit into from
May 30, 2023

Commits on May 30, 2023

  1. Fix PassManagerConfig.from_backend with BackendV1 and no CouplingMap (#…

    …10172)
    
    * Fix PassManagerConfig.from_backend with BackendV1 and no CouplingMap
    
    This commit fixes an issue in the PassManagerConfig.from_backend
    constructor method when using BackendV1 based simulator backends. The
    pass was incorrectly handling the case when the backend configuration
    didn't have a coupling map defined and incorrectly creating a coupling
    map with 0 qubits instead of using None to indicate the lack of
    connectivity. This has been fixed so the coupling map creation is
    skipped if there is no coupling map attribute in the backend's
    configuration.
    
    Fixes #10171
    
    * Fix tests
    
    (cherry picked from commit 4762e26)
    mtreinish authored and mergify[bot] committed May 30, 2023
    Configuration menu
    Copy the full SHA
    2cb96b0 View commit details
    Browse the repository at this point in the history