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

Update Pybind11 version for NP2.0 compatibility #816

Merged
merged 6 commits into from
Aug 23, 2024
Merged

Conversation

mlxd
Copy link
Member

@mlxd mlxd commented Jul 25, 2024

Before submitting

Please complete the following checklist when submitting a PR:

  • All new features must include a unit test.
    If you've fixed a bug or added code that should be tested, add a test to the
    tests directory!

  • All new functions and code must be clearly commented and documented.
    If you do make documentation changes, make sure that the docs build and
    render correctly by running make docs.

  • Ensure that the test suite passes, by running make test.

  • Add a new entry to the .github/CHANGELOG.md file, summarizing the
    change, and including a link back to the PR.

  • Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Context: Pybind11's 2.12 release is the first version to officially support Numpy 2.0. This PR updates Lightning's pybind11 version to ensure compatibility to/from numpy arrays.

Description of the Change: Updates Pybind11 version to the latest (2.13.5)

Benefits: Ensures direct compatibility with numpy 2.x

Possible Drawbacks: None.

Related GitHub Issues:

Copy link
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.

@mlxd
Copy link
Member Author

mlxd commented Jul 25, 2024

[sc-61400]

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.86%. Comparing base (ae735d6) to head (01085b2).
Report is 77 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (ae735d6) and HEAD (01085b2). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ae735d6) HEAD (01085b2)
9 8
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #816       +/-   ##
===========================================
- Coverage   97.10%   81.86%   -15.25%     
===========================================
  Files         117       17      -100     
  Lines       18642     1991    -16651     
===========================================
- Hits        18103     1630    -16473     
+ Misses        539      361      -178     

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


🚨 Try these New Features:

@mlxd mlxd requested a review from maliasadi July 26, 2024 13:22
Copy link
Member

@maliasadi maliasadi left a comment

Choose a reason for hiding this comment

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

🙌

Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

Small PR, but could you update the change log nevertheless?

@mlxd mlxd requested a review from vincentmr August 23, 2024 13:38
Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mlxd .

@mlxd mlxd merged commit dd5dca1 into master Aug 23, 2024
78 of 79 checks passed
@mlxd mlxd deleted the update/pybind11 branch August 23, 2024 14:23
multiphaseCFD pushed a commit that referenced this pull request Sep 8, 2024
Please complete the following checklist when submitting a PR:

- [x] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to
the
      [`tests`](../tests) directory!

- [x] All new functions and code must be clearly commented and
documented.
If you do make documentation changes, make sure that the docs build and
      render correctly by running `make docs`.

- [x] Ensure that the test suite passes, by running `make test`.

- [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing
the
      change, and including a link back to the PR.

- [x] Ensure that code is properly formatted by running `make format`.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.

------------------------------------------------------------------------------------------------------------

**Context:** Pybind11's 2.12 release is the first version to officially
support Numpy 2.0. This PR updates Lightning's pybind11 version to
ensure compatibility to/from numpy arrays.

**Description of the Change:** Updates Pybind11 version to the latest
(2.13.5)

**Benefits:** Ensures direct compatibility with numpy 2.x

**Possible Drawbacks:** None.

**Related GitHub Issues:**

---------

Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants