-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d1c83a
commit d9b744a
Showing
1 changed file
with
3 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
upgrade_circuits: | ||
- | | ||
The internal function ``qiskit.circuit.add_control.add_control`` was removed and inlined, as it is not part of the | ||
public API. User that had been wrongly using it as ``add_control(SomeGate(...), ...)`` should change their code to | ||
``SomeGate(...).control(...)`` instead. | ||
The internal function ``qiskit.circuit.add_control.add_control`` was removed, as it is not part of the | ||
public API. It had fragile preconditions to uphold and was a common source of bugs. Uses of ``add_control(SomeGate(...), ...)`` | ||
should change to ``SomeGate(...).control(...)`` using :meth:`.Gate.control` instead, which is far safer. |