Skip to content

Bump min Python from 3.11 to 3.12#1395

Open
JerryChen97 wants to merge 10 commits into
mainfrom
drop-python-311-support
Open

Bump min Python from 3.11 to 3.12#1395
JerryChen97 wants to merge 10 commits into
mainfrom
drop-python-311-support

Conversation

@JerryChen97

@JerryChen97 JerryChen97 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Context:
PennyLane is on the way to drop 3.11 (see this and this. Before that happens, Lightning needs to bump to 3.12 first

Description of the Change:

  • Bump PYTHON3_MIN_VERSION from "11" to "12" in the wheel build matrix.
  • Remove all cp311-* entries from wheel CI workflows (Linux x86_64, Linux aarch64, Linux x86_64 CUDA, Linux aarch64 CUDA, Linux x86_64 ROCm, macOS arm64, Windows x86_64).
  • Update upload-nightly-rc-release.yml to use Python 3.12.
  • Set requires-python = ">=3.12" in pyproject.toml and remove the Programming Language :: Python :: 3.11 classifier.
  • Update version references in setup.py, README.md, and doc/index.rst.

Benefits:
Keeps PennyLane-Lightning in sync with the PennyLane core Python version policy, reducing CI build time and maintenance surface.

Possible Drawbacks:
Users still on Python 3.11 will need to upgrade to 3.12+.

Related GitHub Issues:
[sc-123549]

@JerryChen97 JerryChen97 requested a review from maliasadi June 24, 2026 15:39
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.28%. Comparing base (43332cf) to head (dda13d7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1395      +/-   ##
==========================================
+ Coverage   96.21%   96.28%   +0.06%     
==========================================
  Files         278      329      +51     
  Lines       40023    47017    +6994     
==========================================
+ Hits        38508    45269    +6761     
- Misses       1515     1748     +233     
Flag Coverage Δ
unit_tests 96.28% <100.00%> (+0.06%) ⬆️

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Hello. You may have forgotten to update the changelog!
Please edit .github/CHANGELOG.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@maliasadi maliasadi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JerryChen97!

Pls also update:

  • changelog
  • setup.py
  • readthedocs.yml
  • README

@maliasadi maliasadi added ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request ci:build_wheels Activate wheel building. ci:use-gpu-runner Enable usage of GPU runner for this Pull Request labels Jun 24, 2026
@JerryChen97

Copy link
Copy Markdown
Contributor Author

Thanks @JerryChen97!

Pls also update:

  • changelog
  • setup.py
  • readthedocs.yml
  • README

.readthedocs.yml has already been using 3.12

@JerryChen97

Copy link
Copy Markdown
Contributor Author

Also: Do we want to bump to 3.12 in pyproject.toml as well in this PR @maliasadi

@JerryChen97 JerryChen97 requested a review from josephleekl June 29, 2026 17:39
@josephleekl

Copy link
Copy Markdown
Contributor

can. you update this too

PennyLane supports Python 3.11 and above.

@JerryChen97

Copy link
Copy Markdown
Contributor Author

can. you update this too

PennyLane supports Python 3.11 and above.

@josephleekl Done!

@josephleekl josephleekl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @JerryChen97 !

@JerryChen97 JerryChen97 changed the title remove 3.11 from wheels CI Bump min Python from 3.11 to 3.12 Jun 29, 2026
@JerryChen97 JerryChen97 requested a review from maliasadi June 29, 2026 19:57
@JerryChen97 JerryChen97 self-assigned this Jun 30, 2026
@JerryChen97

Copy link
Copy Markdown
Contributor Author

In case it breaks Catalyst CI drastically and unnecessarily, I'll hold until Catalyst's bump is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:build_wheels Activate wheel building. ci:use-gpu-runner Enable usage of GPU runner for this Pull Request ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants