Skip to content

Conversation

@KetpuntoG
Copy link
Contributor

@KetpuntoG KetpuntoG commented Oct 22, 2024


Context:

In this PR we are adding MPSPrep, a template that will be used to prepare quantum states from an MPS representation

Description of the Change:

The work will be developed in the Lightning repository. This template creates in pennylane a template in order to send them the mps object

Benefits:

We unlocked the work for the performance team so they can get the template working in lightning.tensor

Possible Drawbacks:

Until the changes are added to PennyLane lightning, this template will be useless

sc
[sc-77844]

@github-actions
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.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.
@codecov
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.64%. Comparing base (32236c1) to head (a62b889).
Report is 286 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6431   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files         468      469    +1     
  Lines       44254    44301   +47     
=======================================
+ Hits        44096    44143   +47     
  Misses        158      158           

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@soranjh soranjh added the do not merge ⚠️ Do not merge the pull request until this label is removed label Nov 13, 2024
@DSGuala DSGuala self-requested a review November 20, 2024 17:09
KetpuntoG and others added 2 commits November 21, 2024 18:28
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
@KetpuntoG KetpuntoG requested review from Jaybsoni and soranjh December 2, 2024 19:40
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @KetpuntoG, left my final comments.

KetpuntoG and others added 4 commits December 2, 2024 15:36
[skip-ci]

Co-authored-by: Soran Jahangiri <40344468+soranjh@users.noreply.github.com>
@KetpuntoG KetpuntoG requested a review from soranjh December 2, 2024 21:47
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @KetpuntoG, left some minor comments.

KetpuntoG and others added 2 commits December 2, 2024 17:04
Co-authored-by: Soran Jahangiri <40344468+soranjh@users.noreply.github.com>
@KetpuntoG KetpuntoG removed the do not merge ⚠️ Do not merge the pull request until this label is removed label Dec 4, 2024
Copy link
Contributor

@DSGuala DSGuala left a comment

Choose a reason for hiding this comment

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

Looks good overall. Approved pending a few comments 🙂

@KetpuntoG KetpuntoG merged commit 968e1fb into master Dec 6, 2024
46 checks passed
@KetpuntoG KetpuntoG deleted the mps_state_prep branch December 6, 2024 21:40
LuisAlfredoNu added a commit to PennyLaneAI/pennylane-lightning that referenced this pull request Dec 20, 2024
**Context:**
Optimize `lightning.tensor` by adding direct MPS sites data set

**Description of the Change:**
Adding the `MPSPrep` gate to be able to pass an MPS directly to the
Tensor Network.
The `MPSPrep` gate frontend was developed on this
[PR](PennyLaneAI/pennylane#6431)

**Benefits:**
Avoid the decomposition from state vector to MPS sites which are
expensive and inefficient

**Possible Drawbacks:**

**Related GitHub Issues:**
[sc-74709]

---------

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

4 participants