From d37d360d38001cc4457194217e81a9a295771a04 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Mon, 4 Nov 2024 16:21:57 -0500 Subject: [PATCH 1/2] fix LK macos arg --- pennylane_lightning/core/_version.py | 2 +- tests/test_device.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index e3612df3c..b5d5a365d 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.39.0-rc6" +__version__ = "0.39.0-rc7" diff --git a/tests/test_device.py b/tests/test_device.py index 8474deec9..50b631862 100644 --- a/tests/test_device.py +++ b/tests/test_device.py @@ -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( From 24d2207581a0a3d2aa0f17c46fa44b5bf4683f27 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Mon, 4 Nov 2024 16:25:11 -0500 Subject: [PATCH 2/2] update changelog --- .github/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 17065b3d5..337612005 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -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)