Skip to content

Commit

Permalink
Reword release note
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman authored Mar 6, 2025
1 parent 8d1c83a commit d9b744a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions releasenotes/notes/private-add_control-2367872c0f7136c4.yaml
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.

0 comments on commit d9b744a

Please sign in to comment.