From 7e34d27c1be6a4f6fb0327176f50f209c2fccdb2 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Thu, 5 Dec 2024 21:12:31 +0000 Subject: [PATCH] fix offset --- .../lightning_kokkos/gates/BasicGeneratorFunctors.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pennylane_lightning/core/src/simulators/lightning_kokkos/gates/BasicGeneratorFunctors.hpp b/pennylane_lightning/core/src/simulators/lightning_kokkos/gates/BasicGeneratorFunctors.hpp index a2bd75a3a..8c6400a7d 100644 --- a/pennylane_lightning/core/src/simulators/lightning_kokkos/gates/BasicGeneratorFunctors.hpp +++ b/pennylane_lightning/core/src/simulators/lightning_kokkos/gates/BasicGeneratorFunctors.hpp @@ -853,9 +853,9 @@ void applyNCGenDoubleExcitationMinus( auto core_function = KOKKOS_LAMBDA( Kokkos::View *> arr, std::size_t i0011, std::size_t i1100, const KokkosIntVector &indices, - [[maybe_unused]] std::size_t offset) { + std::size_t offset) { [[maybe_unused]] const auto &indices_ = indices; - [[maybe_unused]] const auto i1100_ = i1100; + [[maybe_unused]] const auto offset_ = offset; const auto v0011 = arr(i0011); const auto v1100 = arr(i1100); arr(i0011) = Kokkos::complex{imag(v1100), -real(v1100)};