Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration of lightning.gpu device to the new device API #853

Merged
merged 271 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 239 commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
a54ab3f
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Jul 26, 2024
39fb65f
Auto update version from '0.38.0-dev18' to '0.38.0-dev19'
ringo-but-quantum Jul 26, 2024
8dc5004
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Jul 29, 2024
90d1d6e
Auto update version from '0.38.0-dev19' to '0.38.0-dev20'
ringo-but-quantum Jul 29, 2024
80277d9
Add the simulate class for the new device (#817)
LuisAlfredoNu Jul 30, 2024
a15b018
Auto update version from '0.38.0-dev20' to '0.38.0-dev21'
ringo-but-quantum Jul 30, 2024
09d02dc
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Jul 30, 2024
06a8d2b
Auto update version from '0.38.0-dev20' to '0.38.0-dev21'
ringo-but-quantum Jul 30, 2024
aa052ad
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 1, 2024
180a065
Auto update version from '0.38.0-dev21' to '0.38.0-dev22'
ringo-but-quantum Aug 1, 2024
6eb6eba
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 2, 2024
319cacc
Auto update version from '0.38.0-dev22' to '0.38.0-dev23'
ringo-but-quantum Aug 2, 2024
5b99da7
Add the support class for the Adjoint Jacobian to the new device (#829)
LuisAlfredoNu Aug 2, 2024
3eea0d1
Auto update version from '0.38.0-dev23' to '0.38.0-dev25'
ringo-but-quantum Aug 2, 2024
35bcab6
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 5, 2024
3588b9d
Auto update version from '0.38.0-dev25' to '0.38.0-dev26'
ringo-but-quantum Aug 5, 2024
f9ab86f
Add (check) full support for sampling in full parity with Lightning (…
LuisAlfredoNu Aug 9, 2024
0d1dd71
Auto update version from '0.38.0-dev26' to '0.38.0-dev27'
ringo-but-quantum Aug 9, 2024
ac9ed86
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 9, 2024
9a20ee1
Auto update version from '0.38.0-dev26' to '0.38.0-dev27'
ringo-but-quantum Aug 9, 2024
244e0a1
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 12, 2024
873656c
Auto update version from '0.38.0-dev28' to '0.38.0-dev29'
ringo-but-quantum Aug 12, 2024
c5e0600
Start the migration of LGPU to the new device API
LuisAlfredoNu Aug 13, 2024
fe0954a
Update unit/integration tests for the new device (#840)
LuisAlfredoNu Aug 13, 2024
286ea30
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 13, 2024
3cb37be
Auto update version from '0.38.0-dev32' to '0.38.0-dev33'
ringo-but-quantum Aug 13, 2024
1bd9adc
Solve conflict with master
LuisAlfredoNu Aug 13, 2024
9ebbefc
check pylint
LuisAlfredoNu Aug 13, 2024
86316bc
trigger CIs
LuisAlfredoNu Aug 13, 2024
5c6b97d
trigger CIs
LuisAlfredoNu Aug 14, 2024
0293b29
remove verbose from CI kcuda
LuisAlfredoNu Aug 14, 2024
e310fef
Update CHANGELOG
LuisAlfredoNu Aug 14, 2024
9478c50
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 14, 2024
bbc6448
Auto update version from '0.38.0-dev33' to '0.38.0-dev34'
ringo-but-quantum Aug 14, 2024
d46eb64
Auto update version from '0.38.0-dev30' to '0.38.0-dev34'
ringo-but-quantum Aug 14, 2024
11d9e4d
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Aug 14, 2024
629eaea
Auto update version from '0.38.0-dev33' to '0.38.0-dev34'
ringo-but-quantum Aug 14, 2024
b586e21
Apply suggestions from code review - remove debug comments
LuisAlfredoNu Aug 15, 2024
00b6eb6
Auto update version from '0.38.0-dev34' to '0.38.0-dev35'
ringo-but-quantum Aug 15, 2024
7acfa17
apply format
LuisAlfredoNu Aug 15, 2024
d1845dc
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Aug 15, 2024
3f3a48d
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 15, 2024
84795f5
Auto update version from '0.38.0-dev34' to '0.38.0-dev35'
ringo-but-quantum Aug 15, 2024
4a71c88
Created the base mock
LuisAlfredoNu Aug 16, 2024
29484c5
Auto update version from '0.38.0-dev34' to '0.38.0-dev36'
ringo-but-quantum Aug 16, 2024
9db622b
tmp fix for pylint
LuisAlfredoNu Aug 16, 2024
841cc54
Merge branch 'gpuNewAPI_backend' of github.com:PennyLaneAI/pennylane-…
LuisAlfredoNu Aug 16, 2024
86c918e
tmp fix for pylint
LuisAlfredoNu Aug 16, 2024
9e04f1c
tmp fix for pylint
LuisAlfredoNu Aug 16, 2024
5de2a3a
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Aug 16, 2024
9ddadcb
remove local backup file
LuisAlfredoNu Aug 16, 2024
300624a
Merge branch 'gpuNewAPI_backend' of github.com:PennyLaneAI/pennylane-…
LuisAlfredoNu Aug 16, 2024
6c701b4
Auto update version from '0.38.0-dev35' to '0.38.0-dev36'
ringo-but-quantum Aug 16, 2024
9a4b724
correct naming
LuisAlfredoNu Aug 16, 2024
0859063
Add adjoint file
LuisAlfredoNu Aug 16, 2024
630b40d
apply format
LuisAlfredoNu Aug 19, 2024
f9768a5
Comment PL base tests
LuisAlfredoNu Aug 19, 2024
0f29d53
Auto update version from '0.38.0-dev36' to '0.38.0-dev38'
ringo-but-quantum Aug 19, 2024
5f04d16
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Aug 19, 2024
ada68c3
Auto update version from '0.38.0-dev37' to '0.38.0-dev38'
ringo-but-quantum Aug 19, 2024
6dbb9fe
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 19, 2024
620a021
Auto update version from '0.38.0-dev37' to '0.38.0-dev38'
ringo-but-quantum Aug 19, 2024
7ae3360
Apply Amintor's commests
LuisAlfredoNu Aug 19, 2024
4a91c6f
Apply format
LuisAlfredoNu Aug 19, 2024
ebc503c
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 20, 2024
c93f1c5
Auto update version from '0.38.0-dev38' to '0.38.0-dev39'
ringo-but-quantum Aug 20, 2024
519ce4a
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 21, 2024
794c166
Auto update version from '0.38.0-dev39' to '0.38.0-dev40'
ringo-but-quantum Aug 21, 2024
168a406
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 21, 2024
63ee6fd
fix issues with the unitary tests
LuisAlfredoNu Aug 21, 2024
3608945
Auto update version from '0.38.0-dev40' to '0.38.0-dev41'
ringo-but-quantum Aug 21, 2024
2ce52c3
Apply format
LuisAlfredoNu Aug 21, 2024
9bcd0fc
Merge branch 'kokkosNewAPI_backend' of github.com:PennyLaneAI/pennyla…
LuisAlfredoNu Aug 21, 2024
a9b253f
first verion of unify devices clases
LuisAlfredoNu Aug 21, 2024
8041450
Merge branch 'kokkosNewAPI_backend' into kokkosNewAPI_unify
LuisAlfredoNu Aug 21, 2024
a8f4ec2
Using the attribute new_API
LuisAlfredoNu Aug 21, 2024
cc67c16
Auto update version from '0.38.0-dev41' to '0.38.0-dev42'
ringo-but-quantum Aug 21, 2024
81fd864
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 21, 2024
c0d6e11
Auto update version from '0.38.0-dev41' to '0.38.0-dev42'
ringo-but-quantum Aug 21, 2024
330cc9c
Using the attribute new_API
LuisAlfredoNu Aug 21, 2024
e59baa1
Using the attribute new_API
LuisAlfredoNu Aug 21, 2024
c41b69a
Delete commented line
LuisAlfredoNu Aug 22, 2024
ee2c01a
Auto update version from '0.38.0-dev42' to '0.38.0-dev43'
ringo-but-quantum Aug 22, 2024
b1d4cad
Using the attribute new_API
LuisAlfredoNu Aug 22, 2024
32cf4a6
Using the attribute new_API
LuisAlfredoNu Aug 22, 2024
57dfbca
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 22, 2024
d046ad9
Auto update version from '0.38.0-dev42' to '0.38.0-dev43'
ringo-but-quantum Aug 22, 2024
c2079f9
Changes from PR review
LuisAlfredoNu Aug 22, 2024
2a7e58a
Merge branch 'kokkosNewAPI_backend' of github.com:PennyLaneAI/pennyla…
LuisAlfredoNu Aug 22, 2024
3402e10
apply format
LuisAlfredoNu Aug 22, 2024
cc0f209
reduce the number of shots for testing and add class definitons on co…
LuisAlfredoNu Aug 23, 2024
8d5e198
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 23, 2024
aa98b93
Auto update version from '0.38.0-dev47' to '0.38.0-dev48'
ringo-but-quantum Aug 23, 2024
e706192
Merge branch 'kokkosNewAPI_backend' of github.com:PennyLaneAI/pennyla…
LuisAlfredoNu Aug 23, 2024
5aced15
apply format
LuisAlfredoNu Aug 23, 2024
4ed563a
solve complains about CodeFactor
LuisAlfredoNu Aug 23, 2024
ea412bb
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 23, 2024
5363361
Fix issue with the Hamiltonians
LuisAlfredoNu Aug 23, 2024
37fdbe2
Auto update version from '0.38.0-dev49' to '0.38.0-dev50'
ringo-but-quantum Aug 23, 2024
818093e
Fix error of lgpu importError
LuisAlfredoNu Aug 26, 2024
bd5ebf8
fix ImportError tensor
LuisAlfredoNu Aug 26, 2024
f64edf0
apply format
LuisAlfredoNu Aug 26, 2024
bef41b6
fix importError in test for lTensor
LuisAlfredoNu Aug 26, 2024
3e60948
Auto update version from '0.38.0-dev50' to '0.38.0-dev51'
ringo-but-quantum Aug 26, 2024
4b8b9a7
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 26, 2024
6e9a6a3
Auto update version from '0.38.0-dev50' to '0.38.0-dev51'
ringo-but-quantum Aug 26, 2024
2dc1bc8
check flaky on CI
LuisAlfredoNu Aug 26, 2024
8bff10c
Merge branch 'kokkosNewAPI_backend' into kokkosNewAPI_unify
LuisAlfredoNu Aug 26, 2024
7e57ec2
trigger CIs
LuisAlfredoNu Aug 26, 2024
956538e
Simple unification of Lightning devices LK and LQ
LuisAlfredoNu Aug 27, 2024
ab56233
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Aug 27, 2024
43b3724
Auto update version from '0.38.0-dev51' to '0.38.0-dev52'
ringo-but-quantum Aug 27, 2024
c57f78f
Define LBase without dispatcher
LuisAlfredoNu Aug 27, 2024
d2f415f
add code style and doctrings
LuisAlfredoNu Aug 27, 2024
cca6de2
apply format
LuisAlfredoNu Aug 28, 2024
2f1d9d7
Pass local pylint
LuisAlfredoNu Aug 28, 2024
bdbc180
Apply format
LuisAlfredoNu Aug 28, 2024
73b5fcc
update docstring
LuisAlfredoNu Aug 28, 2024
7353064
Increase shots number for measurement
LuisAlfredoNu Aug 28, 2024
e967baf
add abstractmethod
LuisAlfredoNu Aug 30, 2024
d922d26
Update year of licence
LuisAlfredoNu Aug 30, 2024
c415d26
Update lightning docstring with proper device names
LuisAlfredoNu Aug 30, 2024
32dac95
Apply suggestions from code review: update doctring with correct names
LuisAlfredoNu Aug 30, 2024
cd26966
correct docstring
LuisAlfredoNu Aug 30, 2024
9c04fb0
apply format
LuisAlfredoNu Aug 30, 2024
00d01c8
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Sep 3, 2024
4af7af9
Auto update version from '0.38.0-dev53' to '0.38.0-dev54'
ringo-but-quantum Sep 3, 2024
b1703e1
trigger CIs
LuisAlfredoNu Sep 3, 2024
47b4860
remove temporary change
LuisAlfredoNu Sep 3, 2024
cf9302b
Update .github/CHANGELOG.md
LuisAlfredoNu Sep 3, 2024
b21d176
Merge branch 'kokkosNewAPI_unify' into gpuNewAPI_backend
LuisAlfredoNu Sep 3, 2024
848675a
apply format
LuisAlfredoNu Sep 3, 2024
f84cdcf
Merge branch 'master' into kokkosNewAPI_backend
LuisAlfredoNu Sep 4, 2024
0252f8a
Auto update version from '0.39.0-dev0' to '0.39.0-dev1'
ringo-but-quantum Sep 4, 2024
5561277
Increase the number of shots for measurenment test
LuisAlfredoNu Sep 4, 2024
2f7ede0
Use the base class for a device
LuisAlfredoNu Sep 4, 2024
420544a
Merge branch 'kokkosNewAPI_backend' into kokkosNewAPI_unify
LuisAlfredoNu Sep 4, 2024
46b774e
added the return for simulate method class
LuisAlfredoNu Sep 4, 2024
6359e0a
apply format
LuisAlfredoNu Sep 4, 2024
47d0af3
trigger CIs
LuisAlfredoNu Sep 4, 2024
2e9191f
solve merge conflict
LuisAlfredoNu Sep 4, 2024
31ff5da
Auto update version from '0.39.0-dev1' to '0.39.0-dev2'
ringo-but-quantum Sep 4, 2024
c5a3e4c
remove pass from abstract methods
LuisAlfredoNu Sep 4, 2024
465e0fe
solve issues with pylint
LuisAlfredoNu Sep 4, 2024
2df631a
solve issues with pylint
LuisAlfredoNu Sep 4, 2024
2730a01
solve issues with pylint
LuisAlfredoNu Sep 4, 2024
cac4474
solve issues with pylint
LuisAlfredoNu Sep 4, 2024
36e064c
solve issues with pylint
LuisAlfredoNu Sep 4, 2024
6007e80
fix bug of inheritance order
LuisAlfredoNu Sep 4, 2024
96e0a84
remove double parent class
LuisAlfredoNu Sep 4, 2024
9aac6b5
Merge branch 'kokkosNewAPI_unify' into gpuNewAPI_backend
LuisAlfredoNu Sep 4, 2024
32374ec
Merge branch 'master' into kokkosNewAPI_unify
LuisAlfredoNu Sep 4, 2024
d34b7e9
Auto update version from '0.39.0-dev2' to '0.39.0-dev3'
ringo-but-quantum Sep 4, 2024
df374eb
Merge branch 'master' into kokkosNewAPI_unify
LuisAlfredoNu Sep 5, 2024
dfd8d1d
solve conflict
LuisAlfredoNu Sep 5, 2024
634ea1d
apply format
LuisAlfredoNu Sep 5, 2024
fe4c8d9
solve issues with pylint
LuisAlfredoNu Sep 5, 2024
28fc8cb
apply format
LuisAlfredoNu Sep 5, 2024
1927480
Auto update version from '0.39.0-dev4' to '0.39.0-dev5'
ringo-but-quantum Sep 5, 2024
50c4af5
Merge branch 'kokkosNewAPI_unify' into gpuNewAPI_backend
LuisAlfredoNu Sep 5, 2024
992e2f6
Merge branch 'master' into kokkosNewAPI_unify
LuisAlfredoNu Sep 5, 2024
20a6920
Auto update version from '0.39.0-dev5' to '0.39.0-dev6'
ringo-but-quantum Sep 5, 2024
d9488d0
Apply suggestions from Vincent's code review
LuisAlfredoNu Sep 6, 2024
d6a99e8
Merge branch 'master' into kokkosNewAPI_unify
LuisAlfredoNu Sep 6, 2024
442fed5
apply review comments
LuisAlfredoNu Sep 6, 2024
74df35d
Apply format
LuisAlfredoNu Sep 6, 2024
4d6b70f
Added raise for batch_obs in LK
LuisAlfredoNu Sep 6, 2024
6b61467
apply format
LuisAlfredoNu Sep 6, 2024
e00ae2f
remove use_mpi from docstrings
LuisAlfredoNu Sep 6, 2024
3ca8b9a
Ali's review comments
LuisAlfredoNu Sep 6, 2024
2431b35
Merge branch 'kokkosNewAPI_unify' of github.com:PennyLaneAI/pennylane…
LuisAlfredoNu Sep 6, 2024
7fd4f2f
skip test for batch_obs in LK
LuisAlfredoNu Sep 6, 2024
3a3f59d
apply format
LuisAlfredoNu Sep 6, 2024
7d523c7
Merge branch 'master' into kokkosNewAPI_unify
LuisAlfredoNu Sep 6, 2024
a1cac8e
Auto update version from '0.39.0-dev6' to '0.39.0-dev7'
ringo-but-quantum Sep 6, 2024
fbba326
revert batch_obs False
LuisAlfredoNu Sep 9, 2024
31fd852
Merge branch 'master' into kokkosNewAPI_unify
LuisAlfredoNu Sep 9, 2024
ba67cca
remove unused-import
LuisAlfredoNu Sep 9, 2024
452b8e6
Merge branch 'kokkosNewAPI_unify' of github.com:PennyLaneAI/pennylane…
LuisAlfredoNu Sep 9, 2024
efa3005
Added changelog
LuisAlfredoNu Sep 9, 2024
bd495fd
Merge branch 'kokkosNewAPI_unify' into gpuNewAPI_backend
LuisAlfredoNu Sep 10, 2024
8fea292
Auto update version from '0.39.0-dev7' to '0.39.0-dev17'
ringo-but-quantum Sep 10, 2024
1e52889
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Sep 11, 2024
209199d
Auto update version from '0.39.0-dev17' to '0.39.0-dev18'
ringo-but-quantum Sep 11, 2024
b375dd3
fix error of merge
LuisAlfredoNu Sep 11, 2024
da75534
Add the `state_vector`, `measurement` class and `simulate` method for…
LuisAlfredoNu Sep 16, 2024
fdc3f32
Auto update version from '0.39.0-dev18' to '0.39.0-dev25'
ringo-but-quantum Sep 16, 2024
76f481c
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Sep 17, 2024
9ec4f87
Auto update version from '0.39.0-dev24' to '0.39.0-dev25'
ringo-but-quantum Sep 17, 2024
a7c4b09
Add the support class for the Adjoint Jacobian to the new device (#907)
LuisAlfredoNu Sep 17, 2024
b67eb2b
Add (check) full support for sampling in full parity with Lightning. …
LuisAlfredoNu Sep 18, 2024
f288123
Auto update version from '0.39.0-dev25' to '0.39.0-dev27'
ringo-but-quantum Sep 18, 2024
662f650
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Sep 18, 2024
5fba41b
Auto update version from '0.39.0-dev26' to '0.39.0-dev27'
ringo-but-quantum Sep 18, 2024
a5e4dd4
Add support for multi-GPU state-vector (#914)
LuisAlfredoNu Sep 21, 2024
b658ef7
Auto update version from '0.39.0-dev27' to '0.39.0-dev32'
ringo-but-quantum Sep 21, 2024
7ddc296
Add support for multi-GPU measurement and Adjoint Jacobian processes …
LuisAlfredoNu Sep 26, 2024
086eb9d
Auto update version from '0.39.0-dev32' to '0.39.0-dev33'
ringo-but-quantum Sep 26, 2024
356fd59
Update unit/integration tests for the new device (#923)
LuisAlfredoNu Sep 26, 2024
cac1f20
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Sep 26, 2024
2c67bc3
Auto update version from '0.39.0-dev32' to '0.39.0-dev33'
ringo-but-quantum Sep 26, 2024
09d1f9e
solve pylint
LuisAlfredoNu Sep 26, 2024
1a639b0
apply format
LuisAlfredoNu Sep 26, 2024
e9c4efa
solve pylint and apply format
LuisAlfredoNu Sep 27, 2024
84d1b8c
solve pylint and apply format
LuisAlfredoNu Sep 27, 2024
dfbbc69
solve pylint and apply format
LuisAlfredoNu Sep 27, 2024
e3d9411
remove pylint tmp extra disabler
LuisAlfredoNu Sep 27, 2024
76a9d15
solve pylint and apply format
LuisAlfredoNu Sep 27, 2024
7eb1ccb
solve pylint and apply format
LuisAlfredoNu Sep 27, 2024
13d4b9b
restore args to keep consistency with the other devices
LuisAlfredoNu Sep 27, 2024
2a74924
solve pylint issue
LuisAlfredoNu Sep 27, 2024
07317d1
solve pylint issue
LuisAlfredoNu Sep 27, 2024
04e343f
solve pylint issue
LuisAlfredoNu Sep 27, 2024
6260abc
solve pylint issue
LuisAlfredoNu Sep 27, 2024
2d6fe7e
shuli suggestions
LuisAlfredoNu Sep 27, 2024
5b1ce43
solve CI errors
LuisAlfredoNu Sep 27, 2024
d3e54ab
apply format
LuisAlfredoNu Sep 27, 2024
a1246bc
solve error CI
LuisAlfredoNu Sep 27, 2024
14b7930
shuli sugestions
LuisAlfredoNu Sep 27, 2024
5d920aa
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Sep 30, 2024
683c638
Auto update version from '0.39.0-dev33' to '0.39.0-dev34'
ringo-but-quantum Sep 30, 2024
e97ff81
remove the mpi arguments from functions
LuisAlfredoNu Oct 1, 2024
2e0c5d9
Auto update version from '0.39.0-dev34' to '0.39.0-dev35'
ringo-but-quantum Oct 1, 2024
d26e06d
apply format
LuisAlfredoNu Oct 1, 2024
345c36b
Merge branch 'gpuNewAPI_backend' of github.com:PennyLaneAI/pennylane-…
LuisAlfredoNu Oct 1, 2024
c6b3374
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Oct 1, 2024
45907fa
Auto update version from '0.39.0-dev34' to '0.39.0-dev35'
ringo-but-quantum Oct 1, 2024
a72cba8
update changelog and apply format
LuisAlfredoNu Oct 1, 2024
dd315d4
fix pylint complaints
LuisAlfredoNu Oct 1, 2024
6bfd420
remove useless sync
LuisAlfredoNu Oct 1, 2024
bc85e56
update tests
LuisAlfredoNu Oct 1, 2024
2052fc3
update tests
LuisAlfredoNu Oct 1, 2024
258aeb6
remove async form MPI in resetstate
LuisAlfredoNu Oct 1, 2024
116be19
apply format
LuisAlfredoNu Oct 1, 2024
f97eac5
fix bug mpitest
LuisAlfredoNu Oct 1, 2024
2a66aff
fix bug on test suite
LuisAlfredoNu Oct 1, 2024
0c634f5
trigger CIs
LuisAlfredoNu Oct 1, 2024
e71cc3d
solve Identity bug for MPI
LuisAlfredoNu Oct 1, 2024
d7ff516
apply format
LuisAlfredoNu Oct 1, 2024
696ee51
fix pylint commensts
LuisAlfredoNu Oct 1, 2024
a58a93f
apply format
LuisAlfredoNu Oct 1, 2024
32b2f77
Ali's suggestion
LuisAlfredoNu Oct 2, 2024
7db45c2
Auto update version from '0.39.0-dev35' to '0.39.0-dev36'
ringo-but-quantum Oct 2, 2024
2902e99
Merge branch 'master' into gpuNewAPI_backend
LuisAlfredoNu Oct 2, 2024
0780d3f
Auto update version from '0.39.0-dev35' to '0.39.0-dev36'
ringo-but-quantum Oct 2, 2024
43874aa
Shuli's suggestions
LuisAlfredoNu Oct 2, 2024
286b7eb
Merge branch 'gpuNewAPI_backend' of github.com:PennyLaneAI/pennylane-…
LuisAlfredoNu Oct 2, 2024
b3fbb74
apply format
LuisAlfredoNu Oct 2, 2024
96ea03d
Shuli's suggestion 2
LuisAlfredoNu Oct 2, 2024
8659b2e
update doc
LuisAlfredoNu Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/wheel_noarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
if: ${{ matrix.pl_backend == 'lightning_qubit'}}
uses: actions/checkout@v4


- uses: actions/setup-python@v5
if: ${{ matrix.pl_backend == 'lightning_qubit'}}
with:
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include cmake/*
include requirements.txt
include .github/CHANGELOG.md
include pennylane_lightning/lightning_qubit/lightning_qubit.toml
include pennylane_lightning/lightning_qpu/lightning_gpu.toml
include pennylane_lightning/lightning_gpu/lightning_gpu.toml
include pennylane_lightning/lightning_kokkos/lightning_kokkos.toml
include pennylane_lightning/core/_version.py
graft pennylane_lightning/core/src/
27 changes: 25 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ help:
@echo " test-cpp [verbose=1] to run the C++ test suite (requires CMake)"
@echo " use with 'verbose=1' for building with verbose flag"
@echo " test-cpp [target=?] to run a specific C++ test target (requires CMake)."
@echo " test-cpp-mpi [backend=?] to run the C++ test suite with MPI (requires CMake and MPI)"
@echo " Default: lightning_gpu"
@echo " test-python [device=?] to run the Python test suite"
@echo " Default: lightning.qubit"
@echo " wheel [backend=?] to configure and build Python wheels
@echo " wheel [backend=?] to configure and build Python wheels"
@echo " Default: lightning_qubit"
@echo " coverage [device=?] to generate a coverage report for python interface"
@echo " Default: lightning.qubit"
Expand Down Expand Up @@ -98,7 +100,7 @@ coverage-cpp:
lcov --directory . -b ../pennylane_lightning/core/src/ --capture --output-file coverage.info; \
genhtml coverage.info --output-directory out

.PHONY: test-python test-builtin test-suite test-cpp
.PHONY: test-python test-builtin test-suite test-cpp test-cpp-mpi
test-python: test-builtin test-suite

test-builtin:
Expand All @@ -124,6 +126,27 @@ else
cmake --build ./BuildTests $(VERBOSE) --target test
endif

test-cpp-mpi:
rm -rf ./BuildTests
cmake -BBuildTests -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTS=ON \
-DENABLE_WARNINGS=ON \
-DPL_BACKEND=lightning_gpu \
-DENABLE_MPI=ON \
$(OPTIONS)
ifdef target
cmake --build ./BuildTests $(VERBOSE) --target $(target)
mpi -np 2 ./BuildTests/$(target)
LuisAlfredoNu marked this conversation as resolved.
Show resolved Hide resolved
else
cmake --build ./BuildTests $(VERBOSE)
for file in ./BuildTests/*_test_runner_mpi; do \
echo "Running $$file"; \
mpirun -np 2 $$file ; \
done
endif


.PHONY: format format-cpp format-python
format: format-cpp format-python

Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ PennyLane-Lightning high performance simulators include the following backends:
* ``lightning.gpu``: is a state-vector simulator based on the `NVIDIA cuQuantum SDK <https://developer.nvidia.com/cuquantum-sdk>`_. It notably implements a distributed state-vector simulator based on MPI.
* ``lightning.kokkos``: is a state-vector simulator written with `Kokkos <https://kokkos.github.io/kokkos-core-wiki/index.html>`_. It can exploit the inherent parallelism of modern processing units supporting the `OpenMP <https://www.openmp.org/>`_, `CUDA <https://developer.nvidia.com/cuda-toolkit>`_ or `HIP <https://docs.amd.com/projects/HIP/en/docs-5.3.0/index.html>`_ programming models.
* ``lightning.tensor``: is a tensor network simulator based on the `NVIDIA cuQuantum SDK <https://developer.nvidia.com/cuquantum-sdk>`_ (requires NVIDIA GPUs with SM 7.0 or greater). The supported method is Matrix Product State (MPS).

.. header-end-inclusion-marker-do-not-remove

The following table summarizes the supported platforms and the primary installation mode:
Expand Down
7 changes: 7 additions & 0 deletions mpitests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ def get_device():
# Device specification
if device_name == "lightning.gpu":
from pennylane_lightning.lightning_gpu import LightningGPU as LightningDevice
from pennylane_lightning.lightning_gpu._measurements import (
LightningGPUMeasurements as LightningMeasurements,
)
from pennylane_lightning.lightning_gpu._state_vector import (
LightningGPUStateVector as LightningStateVector,
)

else:
raise qml.DeviceError(f"The MPI tests do not apply to the {device_name} device.")

Expand Down
Loading
Loading