This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 376
Use parameterized circuits to speed up some algorithms instead of using CircuitCache #693
Merged
woodsp-ibm
merged 24 commits into
qiskit-community:master
from
chunfuchen:parameterized_circuits
Oct 1, 2019
Merged
Use parameterized circuits to speed up some algorithms instead of using CircuitCache #693
woodsp-ibm
merged 24 commits into
qiskit-community:master
from
chunfuchen:parameterized_circuits
Oct 1, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chunfuchen
changed the title
Parameterized circuits
Use parameterized circuits to speed up some algorithms instead of using CircuitCache
Sep 25, 2019
…based on the availability
woodsp-ibm
approved these changes
Oct 1, 2019
mtreinish
pushed a commit
to mtreinish/qiskit-core
that referenced
this pull request
Nov 20, 2020
…arameterized_circuits Use parameterized circuits to speed up some algorithms instead of using CircuitCache
manoelmarques
pushed a commit
to manoelmarques/qiskit-terra
that referenced
this pull request
Nov 23, 2020
…arameterized_circuits Use parameterized circuits to speed up some algorithms instead of using CircuitCache
manoelmarques
pushed a commit
to manoelmarques/qiskit-terra
that referenced
this pull request
Dec 2, 2020
…arameterized_circuits Use parameterized circuits to speed up some algorithms instead of using CircuitCache
manoelmarques
pushed a commit
to manoelmarques/qiskit-terra
that referenced
this pull request
Dec 7, 2020
…arameterized_circuits Use parameterized circuits to speed up some algorithms instead of using CircuitCache
manoelmarques
pushed a commit
to qiskit-community/qiskit-machine-learning
that referenced
this pull request
Feb 27, 2021
…arameterized_circuits Use parameterized circuits to speed up some algorithms instead of using CircuitCache
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Use parameterized circuits to speed up some algorithms instead of using CircuitCache; however, in this case, the parameterized is not an algorithm-agnostic module to support different algorithms, the algorithm needs to handle the stored circuits by its own. Thus, this PR uses parameterized circuits for some algorithms as a starting point, if an algorithm keeps using the circuits with the same topology many times, the algorithm could be re-written in a similar to improve the speed.
Details and comments
VQE
,VQC
andQSVM
via parameterized circuits as a robust alternative toCircuitCache
FeatureMap
andVariationalForm
to indicate whether or not it can takeParameter
. and then use it to construct a template circuit.QuantumInstance
addtranspile
method to accommodate the algorithm needs to store the transpiled and parameterized circuits.