Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Use parameterized circuits to speed up some algorithms instead of using CircuitCache #693

Merged
merged 24 commits into from
Oct 1, 2019

Conversation

chunfuchen
Copy link
Contributor

@chunfuchen chunfuchen commented Sep 25, 2019

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

  1. Re-write VQE, VQC and QSVM via parameterized circuits as a robust alternative to CircuitCache
  2. Add a flag in FeatureMap and VariationalForm to indicate whether or not it can take Parameter. and then use it to construct a template circuit.
  3. QuantumInstance add transpile method to accommodate the algorithm needs to store the transpiled and parameterized circuits.
  4. Remove circuit cache.
  5. The travis CI won't pass until this issue is fixed Support unary operand for ParamterExpression Qiskit/qiskit#3098.
  6. I think QGAN could be sped up by parameterized circuits.

@chunfuchen chunfuchen changed the title Parameterized circuits Use parameterized circuits to speed up some algorithms instead of using CircuitCache Sep 25, 2019
@woodsp-ibm woodsp-ibm merged commit 0c81706 into qiskit-community:master 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support unary operand for ParamterExpression
3 participants