diff --git a/qiskit/algorithms/factorizers/shor.py b/qiskit/algorithms/factorizers/shor.py index 3b79f5554aa7..67d2722eb881 100644 --- a/qiskit/algorithms/factorizers/shor.py +++ b/qiskit/algorithms/factorizers/shor.py @@ -57,10 +57,9 @@ class Shor: """ @deprecate_function( - """The Shor class is deprecated as of Qiskit Terra 0.22.0 and will be removed - no sooner than 3 months after the release date. - It is replaced by the tutorial at https://qiskit.org/textbook/ch-algorithms/shor.html - """, + "The Shor class is deprecated as of Qiskit Terra 0.22.0 and will be removed " + "no sooner than 3 months after the release date. It is replaced by the tutorial " + "at https://qiskit.org/textbook/ch-algorithms/shor.html", since="0.22.0", ) def __init__(self, quantum_instance: Optional[Union[QuantumInstance, Backend]] = None) -> None: diff --git a/qiskit/algorithms/linear_solvers/hhl.py b/qiskit/algorithms/linear_solvers/hhl.py index 9b3a4f622f81..97cdf09cb86d 100644 --- a/qiskit/algorithms/linear_solvers/hhl.py +++ b/qiskit/algorithms/linear_solvers/hhl.py @@ -107,10 +107,9 @@ class HHL(LinearSolver): """ @deprecate_function( - """The HHL class is deprecated as of Qiskit Terra 0.22.0 and will be removed - no sooner than 3 months after the release date. - It is replaced by the tutorial at https://qiskit.org/textbook/ch-applications/hhl_tutorial.html" - """, + "The HHL class is deprecated as of Qiskit Terra 0.22.0 and will be removed " + "no sooner than 3 months after the release date. It is replaced by the tutorial at " + "https://qiskit.org/textbook/ch-applications/hhl_tutorial.html", since="0.22.0", ) def __init__( diff --git a/qiskit/algorithms/phase_estimators/phase_estimation_result.py b/qiskit/algorithms/phase_estimators/phase_estimation_result.py index 7a10bb3bf20d..1872fb73caa8 100644 --- a/qiskit/algorithms/phase_estimators/phase_estimation_result.py +++ b/qiskit/algorithms/phase_estimators/phase_estimation_result.py @@ -68,9 +68,9 @@ def circuit_result(self) -> Result: @property @deprecate_function( - """The 'PhaseEstimationResult.most_likely_phase' attribute - is deprecated as of 0.18.0 and will be removed no earlier than 3 months - after the release date. It has been renamed as the 'phase' attribute.""", + "The 'PhaseEstimationResult.most_likely_phase' attribute is deprecated as of 0.18.0 and " + "will be removed no earlier than 3 months after the release date. It has been renamed as " + "the 'phase' attribute.", since="0.18.0", ) def most_likely_phase(self) -> float: