-
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.
Add
should_run_in_parallel
to public API
The function was added in a stable manner to enable backport to the 1.1 series, but from 1.2 onwards, we want this to be part of the public interface so that others can rely on it too.
- Loading branch information
1 parent
b12e9ec
commit 0bdea9c
Showing
3 changed files
with
10 additions
and
2 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
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/parallel-check-public-7faed5f3e20e1d03.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
features_misc: | ||
- | | ||
A new function, :func:`qiskit.utils.should_run_in_parallel`, is available to determine whether | ||
:func:`.parallel_map` will choose to run in parallel or degrade to running in serial. This | ||
decision is dependent on how many CPUs are available to Qiskit, what the :mod:`multiprocessing` | ||
start method is, how many processes were requested. |