Import the multi-controlled Gates from Terra, not Aqua#3886
Merged
Cryoris merged 2 commits intoFeb 26, 2020
Conversation
Contributor
|
Hi Julien, can these gates be made to behave like other gates in extensions/standard? I would expect them to inherit from ControlledGate. |
Collaborator
Author
Contributor
|
Ok, this seems fine then. Are you also submitting a similar pr for the multi controlled rotation gates? |
Collaborator
Author
|
Yes, the plan is to add these and the multi-controlled Toffolis as
ControlledGates as well.
…On Tue, 25 Feb 2020 at 22:44, ewinston ***@***.***> wrote:
Ok, this seems fine then. Are you also submitting a similar pr for the
multi controlled rotation gates?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3886>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNTVLB6YLMVEUEWQOVJ7DLREWGKXANCNFSM4K3OULNA>
.
|
ajavadia
approved these changes
Feb 26, 2020
faisaldebouni
pushed a commit
to faisaldebouni/qiskit-terra
that referenced
this pull request
Aug 5, 2020
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Several multi-controlled gates (see below) have been copied to Terra, but are not included in any
__init__and therefore only imported through Aqua, where they are included in an__init__file.If they already exist in Terra we should also include them from there, so we can finally remove these duplicate gate implementations from Aqua.
Two files remain in Aqua, namely the multi-control multi-target Toffoli and some boolean logic gates. Is there a reason why only part of the gates have been moved here?
Details and comments
This affects:
These gates exist in Aqua: https://github.com/Qiskit/qiskit-aqua/tree/master/qiskit/aqua/circuits/gates
The three files named above also co-exist in Terra.