Skip to content

Commit 6e9cb1c

Browse files
AmintorDuskochaeyeunparkmlxdmaliasadi
authored
Follow-up for native support for Sparse Hamiltonians expval() (#296)
* add Kokkos building and test options * Auto update version * Auto update version * checking threads in windows * add Kokkos serial test * set Kokkos Serial device for Win and Mac * Increase maximum full-path length allowed in Win * oops wrong size * set Win wheel to be built without Ninja * setup clang-cl for Win * implement methods to apply a sparse matrix to a vector with Kokkos * Implement the expected value calculation of a Sparse Hamiltonian * add tests * Auto update version * improve format * set Kokkos and Kokkos Kernel directories as system type to avoid clang-tidy inspection * add python tests * add python/C++ interface * make Kokkos installations Position Independent Code * Auto update version * Trigger CI * set environment variables for Kokkos * remove set environment variables for Kokkos * long path in Windows * fix windows wheel * codecov * long path * powershell command * default generator for windows * remove ilammy from Win Wheel * powershell command back * comment CMAKE_OBJECT_PATH_MAX * set CMAKE_OBJECT_PATH_MAX * Auto update version * Trigger CI * Reduce character limit * Auto update version * Fix veresion * Add shell=True in cmake subprocess for Windows * Add shell=True in cmake subprocess for Windows * Call cibuildwheel directly from the shell * Revert shell * improve Python bindings * change expval of sparse Hamiltonians to use pointers as input * update the new PL_REQUIRE_THROWS_MATCHES and PL_CHECK_THROWS_MATCHES to work nicely with PL_ABORT_IF * update Measures.hpp safety checks to PL_ABORT_IF * update c++ tests * update Kokkos and Kokkos Kernels version * fix format * improve documentation * simplify cmake file and set Serial device for all cases. * update CHANGELOG * Auto update version * Trigger CI * update CHANGELOG * remove use_csingle * Update .github/CHANGELOG.md Co-authored-by: Lee James O'Riordan <[email protected]> * update python tests and bring use_csingle back * format * update test options * remove use_csingle * remove references ENABLE_THREADS * win64_path_fix: ensure paths are x-platform compatible * win64_path_fix: Manually unpack and modify wheel / Fix pwsh * codefactor * add collaboration * tag windows as latest * uncommenting release line * testing size_t as index type in new Kokkos version and reducing preprocessor statements * set index_type as long int * remove underscore and Enable Kokkos as a compile option * fix typo * removing preprocessor ifdef statements * refactor apply_Sparse_Matrix * move and update some helpers and update tests for measures * places tests for sparse measures in its own file * codefactor * Tidy * fix element placement * Trigger CI * Trigger CI * Default Kokkos to OFF * tidying up test-cpp-kokkos * add Kokkos tests for Linux * default expval to default.qubit in a no-Kokkos scenario * format * codefactor * add maybe unused to no Kokkos apply_Sparse_Matrix * add tests with Kokkos in Windows * clang-cl compiler * improve PL_ABORT message * Enable long path in Win * set location * Auto update version * set a file for sparse measures python tests * expand python tests * expand c++ coverage * format * refactor apply_Sparse_Matrix and expand python test coverage in Linux. * codefactor * add setup install * exclude line in coverage * update tests * remove codecov comment * improve python tests * testing no cover * undo test * test exclude block from codecov analysis * test merge tests and upgrade Linux * update tests_linux * add unit tests for Kokkos Sparse * add control to throwing exception and remove unnecessary atributes * remove unnecessary tests * include Acknowledgements in Readme file * fix readme for wheels * Auto update version * update torch and TensorFlow installations to pick up minor version releases * reverting syntax for torch * Update README.rst Co-authored-by: Ali Asadi <[email protected]> Co-authored-by: Dev version update bot <[email protected]> Co-authored-by: Lee J. O'Riordan <[email protected]> Co-authored-by: Lee James O'Riordan <[email protected]> Co-authored-by: Chae-Yeun Park <[email protected]> Co-authored-by: Ali Asadi <[email protected]>
1 parent debd776 commit 6e9cb1c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/tests_linux.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77

88
env:
9-
TF_VERSION: 2.6
9+
TF_VERSION: 2.6.0
1010
TORCH_VERSION: 1.10.0+cpu
1111
COVERAGE_FLAGS: "--cov=pennylane_lightning --cov-report=term-missing --cov-report=xml:./coverage.xml --no-flaky-report -p no:warnings --tb=native"
1212
OMP_NUM_THREADS: "2"
@@ -251,7 +251,7 @@ jobs:
251251
run: |
252252
pip install --upgrade torch==$TORCH_VERSION -f https://download.pytorch.org/whl/cpu/torch_stable.html
253253
pip install --upgrade "jax[cpu]" # This also installs jaxlib
254-
pip install --upgrade tensorflow==$TF_VERSION keras==$TF_VERSION
254+
pip install --upgrade tensorflow~=$TF_VERSION keras~=$TF_VERSION
255255
256256
- name: Install lightning.qubit device
257257
run: |
@@ -305,7 +305,7 @@ jobs:
305305
run: |
306306
pip install --upgrade torch==$TORCH_VERSION -f https://download.pytorch.org/whl/cpu/torch_stable.html
307307
pip install --upgrade "jax[cpu]" # This also installs jaxlib
308-
pip install --upgrade tensorflow==$TF_VERSION keras==$TF_VERSION
308+
pip install --upgrade tensorflow~=$TF_VERSION keras~=$TF_VERSION
309309
310310
- name: Install lightning.qubit device
311311
run: |

README.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,15 @@ The PennyLane lightning plugin is **free** and **open source**, released under
236236
the `Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>`_.
237237

238238
.. license-end-inclusion-marker-do-not-remove
239+
.. acknowledgements-start-inclusion-marker-do-not-remove
239240
240241
Acknowledgements
241242
================
242243

243244
PennyLane Lightning makes use of the following libraries and tools, which are under their own respective licenses:
244245

245-
- **pybind11:** https://pybind11.readthedocs.io/en/stable/ [`License <https://github.com/pybind/pybind11/blob/master/LICENSE>`_]
246-
- **Kokkos Core:** https://github.com/kokkos/kokkos [`License <https://github.com/kokkos/kokkos/blob/master/LICENSE>`_]
247-
- **Kokkos Kernels:** https://github.com/kokkos/kokkos-kernels [`License <https://github.com/kokkos/kokkos-kernels/blob/master/LICENSE>`_]
246+
- **pybind11:** https://github.com/pybind/pybind11
247+
- **Kokkos Core:** https://github.com/kokkos/kokkos
248+
- **Kokkos Kernels:** https://github.com/kokkos/kokkos-kernels
249+
250+
.. acknowledgements-end-inclusion-marker-do-not-remove

pennylane_lightning/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Version number (major.minor.patch[-label])
1717
"""
1818

19-
__version__ = "0.24.0-dev9"
19+
__version__ = "0.24.0-dev10"

0 commit comments

Comments
 (0)