-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
pennylane_lightning/src/simulators/lightning_kokkos/StateVectorKokkos.hpp
Show resolved
Hide resolved
pennylane_lightning/src/simulators/lightning_kokkos/StateVectorKokkos.hpp
Show resolved
Hide resolved
pennylane_lightning/src/simulators/lightning_kokkos/StateVectorKokkos.hpp
Show resolved
Hide resolved
pennylane_lightning/src/simulators/lightning_kokkos/StateVectorKokkos.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/src/simulators/lightning_kokkos/StateVectorKokkos.hpp
Outdated
Show resolved
Hide resolved
...e_lightning/src/simulators/lightning_kokkos/gates/tests/Test_StateVectorKokkos_Generator.cpp
Show resolved
Hide resolved
@@ -75,7 +75,7 @@ TEMPLATE_TEST_CASE("StateVectorKokkos::applyHadamard", | |||
SECTION("Apply directly") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are no longer falling under the Apply directly
signature, since we dynamically look them up. Same with above changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, we can remove a lot of fat here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once all of these are updated to reflect that we no longer do direct applications, or the gate kernels are directly called in place, I am happy to accept.
...ylane_lightning/src/simulators/lightning_kokkos/gates/tests/Test_StateVectorKokkos_Param.cpp
Outdated
Show resolved
Hide resolved
6e24355
to
088f66d
Compare
ce1d6f2
to
daeb04c
Compare
pennylane_lightning/src/simulators/lightning_kokkos/StateVectorKokkos.hpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job here! Thank you for that.
* Fix bug where functor attributes are used as local variables, causing issues in parallel for loop. * Bring LKokkos AdjJac in line with LQubit's. (#27) * Bring LKokkos AdjJac in line with LQubit's. * Remove obsolete comment. --------- Co-authored-by: Amintor Dusko <[email protected]> * Kokkos/sv gates (#26) * Replace gates_ in LKokkos. * Replace generators_ attribute in LKokkos. * Remove all (except multiRZ) specialized methods from SV-LKokkos. * Refactor LKokkos C++ tests not to use specialized apply methods. * Reorganize StateVectorKokkos.hpp. Use base class getNumQubits and getLength. * Add docstring for gate registering methods and map => unordered_map. * Remove duplicate/obsolete apply-directly tests. * Use std::size_t in LKokkos files. --------- Co-authored-by: Amintor Dusko <[email protected]> * Modify multiQubitOp to handle device kernels correclty. --------- Co-authored-by: Amintor Dusko <[email protected]>
In StateVectorKokkos, replace
gates_
andgenerators_
attributes by maps generated from the baseGateOperation
andGeneratorOperation
enums. This improves the readability of the main StateVectorKokkos constructor and removes about 700 lines of specialized methods.