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

Avoid using circuit.extend and combine #1389

Merged
merged 32 commits into from
Mar 31, 2021

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Oct 26, 2020

Summary

The register based methods QuantumCircuit.extend and combine are to be deprecated. Instead, we can just use append or compose (or tensor, which is to be added but I don't think it's necessary in the use-cases in Aqua).

Details and comments

WIP because

  • check tests
  • double check if all occurrences are replaced
  • reno missing maybe a reno is not necessary, since this is not a user facing change

@Cryoris Cryoris added this to the 0.9 milestone Oct 26, 2020
@woodsp-ibm
Copy link
Member

@Cryoris What is the status of the work on this

@Cryoris
Copy link
Contributor Author

Cryoris commented Jan 15, 2021

I think I missed some occurrences, it needs a bit more time invested!

@woodsp-ibm
Copy link
Member

Reference to PR in Terra to deprecate extend & combine Qiskit/qiskit#4208

@woodsp-ibm
Copy link
Member

@Cryoris Any thoughts on this - since we are now emitting deprecation warnings in this regard it might be good to add any places that are not fixed and get this merged - I have not looked at the algos that are now moved to Terra - did anything there need updating or was that already done?

@Cryoris
Copy link
Contributor Author

Cryoris commented Mar 29, 2021

Yeah it would be good to get this in, now that these two commands are deprecated. The algos in Terra are already updated accordingly.

manoelmarques
manoelmarques previously approved these changes Mar 29, 2021
@manoelmarques manoelmarques self-requested a review March 30, 2021 15:07
@manoelmarques manoelmarques dismissed their stale review March 30, 2021 15:12

Waiting for removal of WIP status

@Cryoris Cryoris changed the title [WIP] Avoid using circuit.extend and combine Avoid using circuit.extend and combine Mar 30, 2021
@manoelmarques manoelmarques merged commit f42e944 into qiskit-community:master Mar 31, 2021
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.

3 participants