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 #10172

Merged
merged 3 commits into from
May 30, 2023

Commits on May 26, 2023

  1. 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 Qiskit#10171
    mtreinish committed May 26, 2023
    Configuration menu
    Copy the full SHA
    36115ee View commit details
    Browse the repository at this point in the history
  2. Fix tests

    mtreinish committed May 26, 2023
    Configuration menu
    Copy the full SHA
    4f36589 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8adfb55 View commit details
    Browse the repository at this point in the history