-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only apply MCMT plugin on
MCMTGate
(#13596)
* Only apply MCMT plugin on MCMTGate * add checks for other gates * fix reno * use == instead of equiv
- Loading branch information
Showing
5 changed files
with
120 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug where any instruction called ``"mcmt"`` would be passed into the high-level | ||
synthesis routine for a :class:`.MCMTGate`, which causes a failure or invalid result. | ||
In particular, this could happen accidentally when handling the :class:`.MCMT` _circuit_, | ||
named ``"mcmt"``, and implicitly converting it into an instruction e.g. when appending | ||
it to a circuit. | ||
Fixed `#13563 <https://github.com/Qiskit/qiskit/issues/13563>`__. | ||
upgrade_synthesis: | ||
- | | ||
The plugins for :class:`.LinearFunction` no longer raise an error if another object | ||
than :class:`.LinearFunction` is passed into the ``run`` method. Instead, ``None`` is | ||
returned, which is consistent with the other plugins. If you relied on this error being raised, | ||
you can manually perform an instance-check. |
This file contains 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
This file contains 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
This file contains 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