forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove psutil as a dependency (Qiskit#11336)
* initial commit * fixed missing import * set sabreswap test trials to 2 * added check to determin number of cpus * formatting error * unittest excetion for hardware detection * formatting error * Fix handling of non-linux default CPU usage * Update release note * Expand testing * Remove unused import * Update mock to work on non-linux platforms * Fix lint --------- Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
1 parent
fdc18d4
commit b5aaffb
Showing
8 changed files
with
75 additions
and
30 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
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
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/psutil-dependancy-removed-bf5366f516d92378.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,14 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The dependency on `psutil <https://pypi.org/project/psutil/>`__ has been removed. The | ||
psutil library was previously only used for detecting the number of physical CPUs and | ||
total system memory, however this information provided does not add sufficient value | ||
to justify the additional dependencies and overhead so it has been removed. This does | ||
mean that the default number of processes used by :func:`.parallel_map` and functions that | ||
internally can use :func:`.parallel_map` such as :func:`.transpile` and :meth:`.PassManager.run` | ||
may use more or less parallel processes than in previous releases. If you'd like to adjust the | ||
number of processes used you can use the ``QISKIT_NUM_PROCS`` environment variable or | ||
``num_processes`` field in a user configuration file (see the | ||
`local configuration guide <https://docs.quantum.ibm.com/start/configure-qiskit-local>`__ | ||
for more details) if you need to adjust the number of processes that Qiskit potentially uses. |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
rustworkx>=0.13.0 | ||
numpy>=1.17,<2 | ||
psutil>=5 | ||
scipy>=1.5 | ||
sympy>=1.3 | ||
dill>=0.3 | ||
|
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