Skip to content

Commit 09bd717

Browse files
authored
Deprecate Python 3.9 support (#14543)
This commit deprecates Python 3.9 support. During the deprecation window we will continue to fully support Python 3.9 and test it in CI, but it will emit a warning that we will be removing support for 3.9 in the future to inform users to upgrade to Python 3.10 or newer. The removal will occur during the Qiskit 2.3.0 release as it is the first release scheduled to occur after the upstream Python EoL date in October 2025. [1] On the development side once we create the stable/2.2 branch on the 2.2.0rc1 release, then we can drop Python 3.9 support and raise the minimum Python version to 3.10 (including in CI). [1] https://devguide.python.org/versions/
1 parent c0a07f9 commit 09bd717

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

qiskit/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
" See https://qisk.it/packaging-1-0 for more detail."
4545
)
4646

47+
if sys.version_info < (3, 10):
48+
warnings.warn(
49+
"Using Qiskit with Python 3.9 is deprecated as of the 2.1.0 release. "
50+
"Support for running Qiskit with Python 3.9 will be removed in the "
51+
"2.3.0 release, which coincides with when Python 3.9 goes end of life.",
52+
DeprecationWarning,
53+
)
54+
4755
from . import _accelerate
4856
import qiskit._numpy_compat
4957

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
deprecations:
3+
- |
4+
Support for running Qiskit with Python 3.9 has been deprecated and will
5+
be removed in the Qiskit 2.3.0 release. The 2.3.0 is the first release after
6+
Python 3.9 goes end of life and is no longer supported. [1] This means that
7+
starting in the 2.3.0 release you will need to upgrade the Python version
8+
you're using to Python 3.9 or above.
9+
10+
[1] https://devguide.python.org/versions/

0 commit comments

Comments
 (0)