-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parallel_map for Python3.8 on Mac OSX (#3491)
* Set start method to fork for Mac in order to use python3.8 * Added comments that fork start method is unsafe * Shorten the long line to pass the test * Update qiskit/tools/parallel.py Change start method only in python 3.8 Co-Authored-By: Matthew Treinish <mtreinish@kortar.org> * Fixed import error and too long line to pass the test * Fixed indentation to pass test * Used ProcessPoolExecutor instead of Pool to run on spawn start method. * Set correct circuit name in spawned process * Merge instance calls and remove unnecessary module import * Added workaround to avoid setting duplicated circuite name when using ProcessPoolExecutor in python 3.5 and 3.6 * Remove stray comments Using the fork context for the multiprocessing pool was left in commented out from a previous iteration of the PR branch. This commit removes these leftover lines to prepare this for merging.
- Loading branch information
1 parent
c4809d4
commit af390a8
Showing
2 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters