Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish authored Jul 25, 2024
1 parent 7d2fa07 commit 142c8ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
12 changes: 4 additions & 8 deletions qiskit/visualization/transition_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

import warnings
from qiskit.utils.deprecation import deprecate_func

warnings.warn(
"qiskit.visualization.transition_visualization module is "
"deprecated since 1.1.1",
category=DeprecationWarning,
stacklevel=2
)

"""
Visualization function for animation of state transitions by applying gates to single qubit.
Expand Down Expand Up @@ -131,7 +124,10 @@ def vector_norm(self):
return np.linalg.norm(v)


@deprecate_func(since="1.1.1", additional_msg="Plan to move to QuSTaR/kaleidoscope")
@deprecate_func(
since="1.2.0",
removal_timeline="in the 2.0 release",
)
def visualize_transition(circuit, trace=False, saveas=None, fpg=100, spg=2):
"""
Creates animation showing transitions between states of a single
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
deprecations_visualization:
- |
The ``qiskit.visualization.transition_visualization`` module has been deprecated
and will be removed in a future release. Refer to
`#9355 <https://github.com/Qiskit/qiskit/issues/9355>`__ for more details.
The :func:`.transition_visualization` function has been deprecated and will
be removed in the 2.0.0 release. This function had a number of limitations
which limited it's utility to only very specific use cases and didn't fit in with
the rest of the Qiskit visualization module.

0 comments on commit 142c8ef

Please sign in to comment.