push
github
Fix unnecessary serialisation of `PassManager` in serial contexts (#12410) (#12413) * Fix unnecessary serialisation of `PassManager` in serial contexts This exposes the interal decision in `parallel_map` of whether to actually run in serial or not. If not, there's no need for `PassManager` to side-car its `dill` serialisation onto the side of the IPC (we use `dill` because we need to pickle lambdas), which can be an unfortunately huge cost for certain IBM pulse-enabled backends. * Remove new function from public API This makes the patch series safe for backport to 1.1. (cherry picked from commit b12e9ec3c) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
12 of 12 new or added lines in 3 files covered. (100.0%)
25 existing lines in 5 files now uncovered.62245 of 69465 relevant lines covered (89.61%)
229139.96 hits per line