-
Notifications
You must be signed in to change notification settings - Fork 376
VQE construct circuit returns circuits #1121
Conversation
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. |
There was a problem hiding this 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.
* 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>
…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>
…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>
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.