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

Speedup binding circuit parameters -- revisited #6112

Merged
merged 4 commits into from
Mar 31, 2021

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Mar 30, 2021

Summary

As suggested by @kdk in #5965 (comment) this PR moves the call to QuantumCircuit._unsorted_parameters outside of the list comprehension where it is used.

Details and comments

This is the profile with the function call in the comprehension (current status)
image

this is the profile with this PR:
image

which is pretty much the same as what it used to be before #5759:
image

@Cryoris Cryoris requested a review from a team as a code owner March 30, 2021 09:42
@Cryoris Cryoris added this to the 0.17 milestone Mar 30, 2021
@Cryoris Cryoris linked an issue Mar 30, 2021 that may be closed by this pull request
@mergify mergify bot merged commit 2d69ee7 into Qiskit:master Mar 31, 2021
@kdk kdk added the Changelog: None Do not include in changelog label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance regression in parameter binding
3 participants