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
5 changes: 5 additions & 0 deletions qiskit/visualization/transition_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import numpy as np

from qiskit.exceptions import MissingOptionalLibraryError
from qiskit.utils.deprecation import deprecate_func


def _normalize(v, tolerance=0.00001):
Expand Down Expand Up @@ -121,6 +122,10 @@ def vector_norm(self):
return np.linalg.norm(v)


@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
@@ -0,0 +1,7 @@
---
deprecations_visualization:
- |
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.
Loading