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

MPS: Added thresholds to loops that use parallelization #638

Merged
merged 8 commits into from
Mar 2, 2020

Conversation

merav-aharoni
Copy link
Contributor

Summary

Parallelization on for-loops without a threshold caused a severe deterioration of performance in MPS. I added reasonable thresholds that bring the performance back to the previous values. Determining the optimal values should be done in future work, but for now this is good enough.

Details and comments

It would be great to include this in the current release because it dramatically affects performance of MPS. This closes issue #619.

Copy link
Member

@atilag atilag left a comment

Choose a reason for hiding this comment

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

Good to see that we have fixed the performance degradation!
So a comment in general, there's no need for commenting code, we can safely remove it because we can always go back in git history and see the old code.
Could you remove all commented code that you see in the MPS simulator?
Thanks!!

@atilag atilag merged commit 7fb9147 into Qiskit:master Mar 2, 2020
mtreinish pushed a commit to mtreinish/qiskit-aer that referenced this pull request Mar 2, 2020
* Adding conditions on invoking parallelization

(cherry picked from commit 7fb9147)
hhorii pushed a commit to hhorii/qiskit-aer that referenced this pull request Apr 9, 2020
* Adding conditions on invoking parallelization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants