Repo Added
|
Files
870
|
Badge
README BADGES
|
github
docs(transpiler-plugins): fix layout plugin example for v2.1.2 (#14985) (#14991) * docs(transpiler-plugins): fix layout plugin example for v2.1.2 (#14985) Fixes #14985 issue. Updates the example under `qiskit.transpiler.preset_passmanagers.plugin` so it runs on Qiskit SDK v2.1.2. - Replace `PassManager.append(..., condition=...)` with `ConditionalController`. - Remove usage of `backend_properties` from `PassManagerConfig`. - Pass `target=pass_manager_config.target` to `VF2Layout`. - Add the missing comma in `max_trials=...`. - Guard property_set lookups with `.get(...)` and check against `VF2LayoutStopReason.SOLUTION_FOUND`. Tested with `generate_preset_pass_manager(..., layout_method="vf2lite")` at `optimization_level=1..3` on SDK v2.1.2. * Fix lint error in plugin.py docstring (line too long) * Fix spacing --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit cbe1f20ca)
92275 of 104402 relevant lines covered (88.38%)
541562.24 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|