Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each thread needs its own passmanager #4003

Merged
merged 8 commits into from
Mar 25, 2020
Merged

Each thread needs its own passmanager #4003

merged 8 commits into from
Mar 25, 2020

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Mar 20, 2020

Fixes #3925

The problem in #3925 is that a deadlock in the passmanager space. This caa5eff fixes that in a very bold way. The @itoko example from #3925 with this fix can run, but ignores the backend parameter. I'm not sure what it should do there.

This PR is a draft, because I would like to refactor this full parallel/argument-prioritization.

@1ucian0 1ucian0 marked this pull request as ready for review March 24, 2020 13:55
@1ucian0 1ucian0 added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Mar 25, 2020
Copy link
Member

@kdk kdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, the release note isn't needed because #3035 is on master only.

@1ucian0 1ucian0 merged commit e3199ed into Qiskit:master Mar 25, 2020
@1ucian0 1ucian0 deleted the 3925 branch March 25, 2020 15:03
lcapelluto pushed a commit to lcapelluto/qiskit-terra that referenced this pull request Mar 25, 2020
* we already have this problem solved in the passmanager

* test

* lint

* release note

* reduce diff

* windows support

* removing the timeout
1ucian0 pushed a commit to 1ucian0/qiskit-terra that referenced this pull request Apr 1, 2020
mergify bot added a commit that referenced this pull request Apr 2, 2020
…them silently (#4060)

* #4003 (review)

* cast circuit parameter as a list sooner than later

* multiple circuits for passmanager.run

* remove pass_manager from the transpile_args

* set default optimization in a single place

* conflicting args

* lint

* reno

* lint!

* empty pass manager is a pass manager

* other redundant param

* deprecate parameter

* remove deprecated tranpile call from test.python.transpiler

* remove deprecated tranpile call from test.python.compiler

* last fix

* unsed import

* test/python/circuit/test_unitary.py

* unused import

* execute

* lint

* reno

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
faisaldebouni pushed a commit to faisaldebouni/qiskit-terra that referenced this pull request Aug 5, 2020
* we already have this problem solved in the passmanager

* test

* lint

* release note

* reduce diff

* windows support

* removing the timeout
faisaldebouni pushed a commit to faisaldebouni/qiskit-terra that referenced this pull request Aug 5, 2020
…them silently (Qiskit#4060)

* Qiskit#4003 (review)

* cast circuit parameter as a list sooner than later

* multiple circuits for passmanager.run

* remove pass_manager from the transpile_args

* set default optimization in a single place

* conflicting args

* lint

* reno

* lint!

* empty pass manager is a pass manager

* other redundant param

* deprecate parameter

* remove deprecated tranpile call from test.python.transpiler

* remove deprecated tranpile call from test.python.compiler

* last fix

* unsed import

* test/python/circuit/test_unitary.py

* unused import

* execute

* lint

* reno

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

transpile() hung up when running with multiple circuits and custom pass manager
4 participants