Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Pin lightning.qubit dep to v0.31.0 #135

Closed
wants to merge 12 commits into from
Closed

Pin lightning.qubit dep to v0.31.0 #135

wants to merge 12 commits into from

Conversation

mlxd
Copy link
Member

@mlxd mlxd commented Aug 22, 2023

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: With the new design for lightning.qubit, until lightning.gpu can be merged into the new structure, we aim to pin to the previous LQ design. This PR pins lightning.gpu CI builds to based on the v0.31.0 release tag of `lightning.qubit.

Description of the Change: As above.

Benefits: Ensures builds work for the next release.

Possible Drawbacks:

Related GitHub Issues:

@github-actions
Copy link

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 the ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request label Aug 22, 2023
@mlxd mlxd marked this pull request as ready for review August 22, 2023 14:34
.github/CHANGELOG.md Outdated Show resolved Hide resolved
@AmintorDusko
Copy link
Contributor

AmintorDusko commented Aug 22, 2023

Here we are updating lightning to the most recent (master) version. By tackling this, and similar others, we should avoid such errors.

.github/CHANGELOG.md Outdated Show resolved Hide resolved
@@ -188,7 +188,7 @@ def test_pauli_rotation_gradient(self, G, theta, tol, isBatch_obs, request):
dev_cpu = qml.device("default.qubit", wires=3)

with qml.tape.QuantumTape() as tape:
qml.QubitStateVector(np.array([1.0, -1.0]) / np.sqrt(2), wires=0)
qml.StatePrep(np.array([1.0, -1.0]) / np.sqrt(2), wires=0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we could parametrize the test over the state prep op since QubitStateVector should still be supported. If we go forward with #134, I will do that there.

pennylane_lightning_gpu/lightning_gpu.py Show resolved Hide resolved
@AmintorDusko
Copy link
Contributor

Here we are updating lightning to the most recent (master) version. By tackling this, and similar others, we should avoid such errors.

Python tests are passing, nothing more to add, nice job!

@mlxd mlxd closed this Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ci:use-multi-gpu-runner Enable usage of Multi-GPU runner for this Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants