Skip to content

Commit

Permalink
raise DeprecationWarning for a targetless timeline drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Dec 24, 2024
1 parent f13673b commit cbc9d5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/visualization/timeline/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def draw(
warnings.warn(
"Target is not specified. In Qiskit 2.0.0 this will be required to get the duration of "
"instructions.",
PendingDeprecationWarning,
DeprecationWarning,
stacklevel=2,
)

Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/followup_13247-9511e4e8d3d88a42.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
deprecations_visualization:
- |
The timeline drawer :func:`~qiskit.visualization.timeline.interface.draw` now needs a ``target``
to get the duration of instructions. From Qiskit 2.0 on, ``target`` will be required and fail if not specified.

0 comments on commit cbc9d5e

Please sign in to comment.