Skip to content

Commit

Permalink
Lightning Kokkos arg test fix for MacOS (#974)
Browse files Browse the repository at this point in the history
### 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`.

- [x] 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:**

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
  • Loading branch information
josephleekl authored Nov 4, 2024
1 parent 06043d8 commit cf828ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@

### Bug fixes

* Fix Lightning Kokkos test_device for `kokkos_args` fail for MacOS due to `np.complex256`
[(#974)](https://github.com/PennyLaneAI/pennylane-lightning/pull/974)

* Fix PTM stable-latest related to `default.qubit.legacy` and the `latest` flag usage.
[(#961)](https://github.com/PennyLaneAI/pennylane-lightning/pull/961)
[(#966)](https://github.com/PennyLaneAI/pennylane-lightning/pull/966)
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.39.0-rc6"
__version__ = "0.39.0-rc7"
2 changes: 1 addition & 1 deletion tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_create_device_with_unsupported_dtype():
)
def test_create_device_with_unsupported_kokkos_args():
with pytest.raises(TypeError, match="Argument kokkos_args must be of type .* but it is of .*."):
dev = qml.device(device_name, wires=1, kokkos_args=np.complex256)
dev = qml.device(device_name, wires=1, kokkos_args=np.complex128)


@pytest.mark.skipif(
Expand Down

0 comments on commit cf828ac

Please sign in to comment.