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

Add exact tensor network C++ backend to LT #977

Merged
merged 61 commits into from
Dec 5, 2024
Merged

Conversation

multiphaseCFD
Copy link
Member

@multiphaseCFD multiphaseCFD commented Nov 5, 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-72879]

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Copy link
Contributor

github-actions bot commented Nov 5, 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.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 99.80080% with 3 lines in your changes missing coverage. Please review.

Project coverage is 92.01%. Comparing base (17bf594) to head (bfcc9cc).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
.../src/simulators/lightning_tensor/tncuda/TNCuda.hpp 98.11% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #977      +/-   ##
==========================================
- Coverage   95.84%   92.01%   -3.84%     
==========================================
  Files         230      113     -117     
  Lines       38823    17017   -21806     
==========================================
- Hits        37211    15658   -21553     
+ Misses       1612     1359     -253     

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

@multiphaseCFD multiphaseCFD added the ci:use-gpu-runner Enable usage of GPU runner for this Pull Request label Nov 6, 2024
@multiphaseCFD multiphaseCFD marked this pull request as ready for review November 6, 2024 21:14
@multiphaseCFD multiphaseCFD added the do not merge Do not merge PR until this label is removed label Nov 6, 2024
@multiphaseCFD multiphaseCFD removed the ci:use-gpu-runner Enable usage of GPU runner for this Pull Request label Nov 6, 2024
@multiphaseCFD multiphaseCFD added the urgent Mark a pull request as high priority label Nov 12, 2024
multiphaseCFD and others added 4 commits November 18, 2024 21:43
### 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`](../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:**
Lightning.tensor device adding TN backend

**Description of the Change:**
* Unit tests for gate support
* Unit tests for measurements

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

[sc-77835]

---------

Co-authored-by: Shuli Shu <[email protected]>
@josephleekl
Copy link
Contributor

do we want to change this method string to exacttn?

@josephleekl
Copy link
Contributor

Thanks for the awesome addition of exact tensor network! @multiphaseCFD Just added some questions/comments, happy to approve once answered!

@multiphaseCFD multiphaseCFD added ci:use-gpu-runner Enable usage of GPU runner for this Pull Request and removed do not merge Do not merge PR until this label is removed labels Dec 3, 2024
@multiphaseCFD multiphaseCFD requested review from josephleekl and removed request for josephleekl December 4, 2024 14:15
Copy link
Contributor

@LuisAlfredoNu LuisAlfredoNu left a comment

Choose a reason for hiding this comment

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

Thank you @multiphaseCFD!
Nice code. Just a couple of comments but feel free to ignore them if you need.

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.

Thanks @multiphaseCFD for this, looks good to me!

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.

Awesome! Happy to approve ⚡️

@multiphaseCFD multiphaseCFD merged commit 5448c8a into master Dec 5, 2024
77 of 79 checks passed
@multiphaseCFD multiphaseCFD deleted the add_exatn_cpp branch December 5, 2024 21:31
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 urgent Mark a pull request as high priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants