Skip to content

Speedup binding circuit parameters -- revisited#6112

Merged
mergify[bot] merged 4 commits into
Qiskit:masterfrom
Cryoris:speedup-circuit-params
Mar 31, 2021
Merged

Speedup binding circuit parameters -- revisited#6112
mergify[bot] merged 4 commits into
Qiskit:masterfrom
Cryoris:speedup-circuit-params

Conversation

@Cryoris
Copy link
Copy Markdown
Collaborator

@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 the GitHub Release 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 the GitHub Release changelog. performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance regression in parameter binding

3 participants