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

Ensure inline templated func hit with arith types only #936

Merged
merged 11 commits into from
Oct 8, 2024

Conversation

mlxd
Copy link
Member

@mlxd mlxd commented Oct 7, 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: Closes #935

Description of the Change: Adds concept restrictions to the ConstMult function definition for scalar-time-complex only instantiations.

Benefits: Removes the given build failure.

Possible Drawbacks:

Related GitHub Issues:

@mlxd mlxd marked this pull request as ready for review October 7, 2024 18:33
@mlxd mlxd requested a review from maliasadi October 7, 2024 18:33
Copy link
Contributor

github-actions bot commented Oct 7, 2024

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 mlxd added ci:build_wheels Activate wheel building. urgent Mark a pull request as high priority labels Oct 7, 2024
@mlxd mlxd requested a review from AmintorDusko October 7, 2024 18:37
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.65%. Comparing base (c6f3f3f) to head (8080d27).
Report is 57 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #936      +/-   ##
==========================================
- Coverage   96.24%   93.65%   -2.59%     
==========================================
  Files         215      169      -46     
  Lines       29468    20752    -8716     
==========================================
- Hits        28361    19435    -8926     
- Misses       1107     1317     +210     

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

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.

Thanks @mlxd! Happy to approve after resolving the comments

pennylane_lightning/core/src/utils/Util.hpp Show resolved Hide resolved
.github/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@AmintorDusko AmintorDusko left a comment

Choose a reason for hiding this comment

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

Concepts are beatiful! Thank you, @mlxd!

@mlxd mlxd requested a review from maliasadi October 8, 2024 18:37
mlxd and others added 2 commits October 8, 2024 15:30
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
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.

🥳

@mlxd mlxd merged commit 6062a75 into master Oct 8, 2024
120 of 122 checks passed
@mlxd mlxd deleted the restrict_inline_util branch October 8, 2024 20:48
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. urgent Mark a pull request as high priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lightning utilities failing to hit correct inline function with +OMP -BLAS under clang
4 participants