Skip to content
This repository was archived by the owner on Aug 19, 2023. It is now read-only.

Add benchmarks for bind_parameters#896

Merged
nonhermitian merged 7 commits intoQiskit:masterfrom
mtreinish:bind-param-benchmarks
Apr 25, 2020
Merged

Add benchmarks for bind_parameters#896
nonhermitian merged 7 commits intoQiskit:masterfrom
mtreinish:bind-param-benchmarks

Conversation

@mtreinish
Copy link
Copy Markdown
Member

Summary

This commit adds a synthetic benchmark for running bind_parameters on a
parameterized circuit. It is basically a dual of the circuit
construction benchmark except that it adds a sweep on the number of
parameters.

Details and comments

This commit adds a synthetic benchmark for running bind_parameters on a
parameterized circuit. It is basically a dual of the circuit
construction benchmark except that it adds a sweep on the number of
parameters.
@mtreinish mtreinish requested a review from kdk April 22, 2020 19:40
Copy link
Copy Markdown
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.

This looks good. If we have the the runtime, a nice addition would be a benchmark timing bind_parameters over a circuit containing composite instructions (to trigger QuantumCircuit._rebind_definition), which would be closer to the aqua use-case, and likely quite a bit slower.

@mtreinish
Copy link
Copy Markdown
Member Author

We probably will have the runtime after Qiskit/qiskit#4227 and Qiskit/qiskit#4232 merge. Prior to that though the parameterized circuit construction time will take too long. With 0.13.0 the run time of these benchmarks locally with asv dev (so a single iteration) took almost an hour. Actually we might want to either wait or decrease the permutations (or remove the larger parameter numbers) prior to merging this

@nonhermitian nonhermitian merged commit 217107d into Qiskit:master Apr 25, 2020
@mtreinish mtreinish deleted the bind-param-benchmarks branch April 26, 2020 11:34
jakelishman pushed a commit to jakelishman/qiskit-terra that referenced this pull request Aug 1, 2023
* Add benchmarks for bind_parameters

This commit adds a synthetic benchmark for running bind_parameters on a
parameterized circuit. It is basically a dual of the circuit
construction benchmark except that it adds a sweep on the number of
parameters.

* Reduce number of permutations

* Add parameterized construction bench and fix lint

Co-authored-by: Paul Nation <[email protected]>
Co-authored-by: Jay Gambetta <[email protected]>
jakelishman pushed a commit to jakelishman/qiskit-terra that referenced this pull request Aug 11, 2023
* Add benchmarks for bind_parameters

This commit adds a synthetic benchmark for running bind_parameters on a
parameterized circuit. It is basically a dual of the circuit
construction benchmark except that it adds a sweep on the number of
parameters.

* Reduce number of permutations

* Add parameterized construction bench and fix lint

Co-authored-by: Paul Nation <[email protected]>
Co-authored-by: Jay Gambetta <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants