Skip to content

Commit

Permalink
Set max_workers to ThreadPoolExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
hitomitak committed Jul 2, 2019
1 parent f2bd261 commit 4806447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Fixed
with no identity component. (\#243)
- Fixed 2-qubit depolarizing-only error parameter calculation in
basic_device_noise_model (\#243)
- Set maximum workers to ThreadPoolExecutor in AerJob to limit thread creation (\#259)

[0.2.1](https://github.com/Qiskit/qiskit-aer/compare/0.2.0...0.2.1) - 2019-05-20
================================================================================
Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/aer/aerjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AerJob(BaseJob):
_executor (futures.Executor): executor to handle asynchronous jobs
"""

_executor = futures.ThreadPoolExecutor()
_executor = futures.ThreadPoolExecutor(max_workers=1)

def __init__(self, backend, job_id, fn, qobj, *args):
super().__init__(backend, job_id)
Expand Down

0 comments on commit 4806447

Please sign in to comment.