You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ This issue is part of an internal assignment and not meant for external contributors
Context
PennyLane has support for many quantum gates natively at the Python level, but often we may require faster implementations. lightning.kokkos is a Kokkos-based backed simulator library that can be called from PennyLane, with optimal implementations of many highly-used gates. As Kokkos implements a programming model in C++ for writing performance portable applications targeting various HPC platforms, lightning.kokkos can be compiled to run on multi-core CPUs, NVIDIA GPUs and AMD GPUs alike. Implementing more optimized gates in the C++ backend would boost the performance of this simulator.
Requirements
The ISWAP gate has to be implemented in the lightning.kokkos C++ backend. For more information about the ISWAP gate, please refer to PennyLane doc.
Add Python tests in tests/test_gates.py to check the correctness of this gate against PennyLane qml.ISWAP. (you may reuse existing tests, but add some if coverage requires it)
Compare the performance of the ISWAP gate on lightning.kokkos when building Kokkos with SERIAL and OpenMP backends. Please find the installation guideline for building Lightning-Kokkos with different backend kernels.
Create a pull-request in the PennyLane Lightning repository and ensure to complete all the necessary steps outlined for creating the PR before marking it ready for review.
Feel free to ask any questions or raise any concerns regarding the issue. We'll be happy to discuss with you!
The text was updated successfully, but these errors were encountered:
Important Note
Context
PennyLane has support for many quantum gates natively at the Python level, but often we may require faster implementations.
lightning.kokkos
is a Kokkos-based backed simulator library that can be called from PennyLane, with optimal implementations of many highly-used gates. As Kokkos implements a programming model in C++ for writing performance portable applications targeting various HPC platforms,lightning.kokkos
can be compiled to run on multi-core CPUs, NVIDIA GPUs and AMD GPUs alike. Implementing more optimized gates in the C++ backend would boost the performance of this simulator.Requirements
The
ISWAP
gate has to be implemented in thelightning.kokkos
C++ backend. For more information about the ISWAP gate, please refer to PennyLane doc.Implement and register the
ISWAP
gate in lightning_kokkos/gates/BasicGateFunctors.hpp.Add C++ tests for the
ISWAP
gate to Test_StateVectorKokkos_NonParam.cpp. You can follow the same style used for other gates in this test file.Explain how the
ISWAP
C++ Kokkos kernel will be executed concurrently. What can you say about the performance factors?Update the list of supported gates in pennylane_lightning/lightning_kokkos/lightning_kokkos.py.
Add Python tests in tests/test_gates.py to check the correctness of this gate against PennyLane
qml.ISWAP
. (you may reuse existing tests, but add some if coverage requires it)Compare the performance of the
ISWAP
gate onlightning.kokkos
when building Kokkos withSERIAL
andOpenMP
backends. Please find the installation guideline for building Lightning-Kokkos with different backend kernels.Create a pull-request in the PennyLane Lightning repository and ensure to complete all the necessary steps outlined for creating the PR before marking it ready for review.
Feel free to ask any questions or raise any concerns regarding the issue. We'll be happy to discuss with you!
The text was updated successfully, but these errors were encountered: