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

Fix nested parallel performance #1949

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Conversation

doichanj
Copy link
Collaborator

Summary

OpenMP nested parallel simulation for parallel experiments + parallel state update was very slow when using gate fusion.
This occurs when using parameter binding for 15 or more number of qubits.

Details and comments

Inside gate fusion, unitary simulator is called to calculate fused matrix and uses omp region frequently that waste thread resource for nested parallelism. This fix removes parallel regions for gate fusion.

@doichanj doichanj added the Changelog: Bugfix Include in the Fixed section of the changelog label Sep 28, 2023
@doichanj doichanj added this to the Aer 0.13.0 milestone Sep 28, 2023
Copy link
Collaborator

@hhorii hhorii left a comment

Choose a reason for hiding this comment

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

LGTM

@hhorii hhorii added the automerge This PR will automatically merge once its CI has passed label Sep 28, 2023
@mergify mergify bot merged commit 1a5af59 into Qiskit:main Sep 28, 2023
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge This PR will automatically merge once its CI has passed Changelog: Bugfix Include in the Fixed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants