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

Support Qiskit parametrized circuits #41

Open
josh146 opened this issue Jul 24, 2019 · 2 comments
Open

Support Qiskit parametrized circuits #41

josh146 opened this issue Jul 24, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@josh146
Copy link
Member

josh146 commented Jul 24, 2019

Qiskit now support building parametrized quantum circuits, see https://qiskit.org/documentation/terra/custom_gates.html#parameterized-gates.

The advantage of parametrized circuits is that Qiskit only needs to compile it once, and then can re-use the same parametrized circuit for different parameter values. This can lead to a significant speedup when working with variational quantum circuits.

Once PennyLaneAI/pennylane#221 is implemented in core PennyLane, the plugin will be able to access the dictionary mapping parameters to operations. The Qiskit plugin will then be able to construct a parametrized circuit, and simply reuse this circuit for different parameter values (until the QNode requests a different circuit topology).

@josh146 josh146 added the enhancement New feature or request label Jul 24, 2019
@antalszava
Copy link
Contributor

@josh146 this seems to be available by now, right?

@josh146
Copy link
Member Author

josh146 commented Jul 6, 2021

I don't believe so (unless I am mistaken) -- it looks like the plugin is still simply building a new numeric program every time:

par = operation.parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants