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

VQE construct circuit returns circuits #1121

Merged
merged 14 commits into from
Jul 31, 2020
Merged

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Jul 18, 2020

Summary

Fixes #1019: Make VQE return circuits on construct circuit.

Details and comments

Uses the expectation constructed in the previous construct_circuit and recursively extracts the circuits.

@Cryoris Cryoris changed the title [WIP] VQE construct circuit returns circuits VQE construct circuit returns circuits Jul 18, 2020
@Cryoris Cryoris added this to the 0.8 milestone Jul 18, 2020
@CLAassistant
Copy link

CLAassistant commented Jul 28, 2020

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ Cryoris
❌ Manoel Marques


Manoel Marques seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@woodsp-ibm woodsp-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. An enhancement whereby the basis change and measurement gates are appended in a named block including that includes the Pauli string/group label for ease of identification of cct correspondence to the operator paulis, as we had in the past would be nice. But this can be done in a separate PR since it really changes only the visualization of the circuits not the circuits themselves.

@Cryoris Cryoris merged commit 358874b into qiskit-community:master Jul 31, 2020
@Cryoris Cryoris deleted the vqe-cc branch July 31, 2020 11:05
pbark pushed a commit to pbark/qiskit-aqua that referenced this pull request Sep 16, 2020
* VQE construct circuit to return circuits

* add reno

* add test

* fix spell

* return all circuits from expression (also duplicates)

Co-authored-by: Manoel Marques <manoel@us.ibm.com>
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
mtreinish pushed a commit to mtreinish/qiskit-core that referenced this pull request Nov 20, 2020
…1121)

* VQE construct circuit to return circuits

* add reno

* add test

* fix spell

* return all circuits from expression (also duplicates)

Co-authored-by: Manoel Marques <manoel@us.ibm.com>
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
manoelmarques added a commit to manoelmarques/qiskit-terra that referenced this pull request Dec 7, 2020
…1121)

* VQE construct circuit to return circuits

* add reno

* add test

* fix spell

* return all circuits from expression (also duplicates)

Co-authored-by: Manoel Marques <manoel@us.ibm.com>
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
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.

VQE construct_circuit does not return a circuit
4 participants