Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #9355 deprecate visualize_transition #12287

Merged
merged 10 commits into from
Jul 26, 2024
11 changes: 11 additions & 0 deletions qiskit/visualization/transition_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
# 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
)
mtreinish marked this conversation as resolved.
Show resolved Hide resolved

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


@deprecate_func(since="1.1.1", additional_msg="Plan to move to QuSTaR/kaleidoscope")
mtreinish marked this conversation as resolved.
Show resolved Hide resolved
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
@@ -0,0 +1,6 @@
---
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.
mtreinish marked this conversation as resolved.
Show resolved Hide resolved
Loading