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

Removing the quimb backend from lightning.tensor #737

Merged
merged 12 commits into from
May 24, 2024
Merged

Conversation

PietropaoloFrisoni
Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni commented May 21, 2024

Context: This PR removes the quimb backend and the corresponding interface from the lightning.tensor device. Instead, a new default.tensor device has been introduced in PennyLane. Due to requirements change, it has been decided to create a default.tensor device and move it to the PennyLane repository.

Description of the Change: As above.

Benefits: Having two separate devices simplifies the distinction between the C++ and the Python components. The relationship between lightning.tensor and default.tensor will be similar to that between lightning.qubit and default.qubit.

Possible Drawbacks: As we are removing an interface from an existing device, all the codes using the quimb interface in lightning.tensor now should use default.tensor, which lives in a different repository.

Related GitHub Issues: None.

Related Shortcut Stories:
[sc-63277]
[sc-62257]

@PietropaoloFrisoni PietropaoloFrisoni changed the title Removed interface Removing the quimb backend from lightning.tensor May 21, 2024
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.96%. Comparing base (0bc81e0) to head (5e00e50).
Report is 79 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (0bc81e0) and HEAD (5e00e50). Click for more details.

HEAD has 27 uploads less than BASE
Flag BASE (0bc81e0) HEAD (5e00e50)
32 5
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #737      +/-   ##
==========================================
- Coverage   88.20%   79.96%   -8.24%     
==========================================
  Files          83       15      -68     
  Lines       11875     1742   -10133     
==========================================
- Hits        10474     1393    -9081     
+ Misses       1401      349    -1052     

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

Copy link
Member

@mlxd mlxd left a comment

Choose a reason for hiding this comment

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

Thanks @PietropaoloFrisoni
Just a quick q or 2:

@PietropaoloFrisoni PietropaoloFrisoni requested a review from mlxd May 21, 2024 18:04
@mlxd
Copy link
Member

mlxd commented May 22, 2024

Once the PR is update and green, I'll approve.

@PietropaoloFrisoni
Copy link
Contributor Author

@mlxd I am updating it now, but I am afraid it will never be green since our friend @codecov will fail anyway (although all lines are covered by tests)

Copy link
Member

@mlxd mlxd 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
Member

@multiphaseCFD multiphaseCFD left a comment

Choose a reason for hiding this comment

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

Thanks @PietropaoloFrisoni ! Looks good to me

PietropaoloFrisoni added a commit to PennyLaneAI/pennylane that referenced this pull request May 23, 2024
…ce in PL lightning (#5699)

**Context:** This PR moves part of the `lightning.tensor` device from
PennyLane lightning to PennyLane. Such a device was introduced
originally in the following pull requests:
[1](PennyLaneAI/pennylane-lightning#671) and
[2](PennyLaneAI/pennylane-lightning#686). Due to
requirements change, it has been decided to create an additional
`default.tensor` device and move it to the PennyLane repository.
Specifically, we move the `quimb` interface and the corresponding Python
implementation of `lightning.tensor` into `default.tensor`. For
reference, the PR removing such a component from `lightning.tensor` is
[here](PennyLaneAI/pennylane-lightning#737).

*Please note that the full documentation for such a device will be added
in a following PR*

**Description of the Change:** As above.

**Benefits:** Having two separate devices simplifies the distinction
between the C++ and the Python components. The relationship between
`lightning.tensor` and `default.tensor` will be similar to that between
`lightning.qubit` and `default.qubit`.

**Possible Drawbacks:** None with the existing code, since this is a new
quantum device.

**Related GitHub Issues:** None.

**Related Shortcut Stories:**
[sc-63256]
[sc-62979]

---------

Co-authored-by: albi3ro <[email protected]>
@mlxd mlxd merged commit 7b0858a into master May 24, 2024
65 of 66 checks passed
@mlxd mlxd deleted the removing_quimb_interface branch May 24, 2024 16:35
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