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

Unify gate memory layout for lgpu and ltensor #959

Merged
merged 77 commits into from
Nov 8, 2024

Conversation

multiphaseCFD
Copy link
Member

@multiphaseCFD multiphaseCFD commented Oct 23, 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:

[sc-77874]

Excitation gates' memory layout was col-major for LGPU, while they are row-major for LTensor. This PR unify memory layout for both, which will improve the maintainability of Lightning.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@multiphaseCFD multiphaseCFD changed the base branch from master to applyControlledMatrix_LGPU October 29, 2024 14:50
Base automatically changed from applyControlledMatrix_LGPU to master November 7, 2024 03:17
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.97%. Comparing base (f594f29) to head (832eb8e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #959      +/-   ##
==========================================
+ Coverage   97.90%   97.97%   +0.07%     
==========================================
  Files         221      255      +34     
  Lines       33178    38495    +5317     
==========================================
+ Hits        32484    37717    +5233     
- Misses        694      778      +84     

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

@multiphaseCFD multiphaseCFD added ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request ci:use-gpu-runner Enable usage of GPU runner for this Pull Request labels Nov 7, 2024
@multiphaseCFD multiphaseCFD marked this pull request as ready for review November 7, 2024 21:03
@multiphaseCFD multiphaseCFD requested a review from a team November 7, 2024 21:05
@multiphaseCFD multiphaseCFD added the urgent Mark a pull request as high priority label Nov 7, 2024
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.

Nice work! Thank you for that!

Copy link
Contributor

@josephleekl josephleekl left a comment

Choose a reason for hiding this comment

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

Nice one! Thanks @multiphaseCFD for this

@multiphaseCFD multiphaseCFD merged commit 0419cdb into master Nov 8, 2024
97 checks passed
@multiphaseCFD multiphaseCFD deleted the unify_gate_memory_layout_lgpu_ltensor branch November 8, 2024 14:27
@josephleekl
Copy link
Contributor

Sorry @AmintorDusko I accidentally pressed to ask for re-review from you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 urgent Mark a pull request as high priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants