Skip to content

Commit

Permalink
Correct deprecation warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Jan 8, 2024
1 parent ef65637 commit 4add053
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions qiskit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ def __init__(self):
def __bool__(self):
if self.aer is None:
warnings.warn(
"The qiskit.Aer entry point will be deprecated in a future release and "
"subsequently removed. Instead you should use this "
"directly from the root of the qiskit-aer package.",
"The 'qiskit.Aer' entry point is deprecated and will be removed in Qiskit 1.0."
" You should use 'qiskit_aer.Aer' directly instead.",
DeprecationWarning,
stacklevel=2,
)
Expand All @@ -120,9 +119,8 @@ def __bool__(self):
def __getattr__(self, attr):
if not self.aer:
warnings.warn(
"The qiskit.Aer entry point will be deprecated in a future release and "
"subsequently removed. Instead you should use this "
"directly from the root of the qiskit-aer package.",
"The 'qiskit.Aer' entry point is deprecated and will be removed in Qiskit 1.0."
" You should use 'qiskit_aer.Aer' directly instead.",
DeprecationWarning,
stacklevel=2,
)
Expand Down

0 comments on commit 4add053

Please sign in to comment.