Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add the
state_vector
,measurement
class andsimulate
method for the LightningGPU with the new device API #892Add the
state_vector
,measurement
class andsimulate
method for the LightningGPU with the new device API #892Changes from 25 commits
120bbed
bdf4daa
b05a6a4
5dac907
bfd0771
a1ff6c6
a0cfb1d
f472471
c7ac82d
6627913
6290953
219262b
bca1a74
0f8f957
a9ccf62
a99b6e8
0399f18
23d5696
585c313
5eee8eb
92089eb
196042a
b4ed1ae
695283b
1729d06
5819efc
2dbc7db
0630edf
3fa8409
af16b8d
0cb050f
54afeb5
ac87663
35270fb
f51cbb9
65e66e9
0472fdd
96728cb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
LGPU has different behaviour in
probs
from LQ and LK. LGPU needs to perform an extra conversion of results due to cuQuantum returns as col-major orderings, so performing transpose on data for bit-index shuffle is needed.Check warning on line 26 in pennylane_lightning/lightning_gpu/_measurements.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_measurements.py#L26
Check warning on line 115 in pennylane_lightning/lightning_gpu/_measurements.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_measurements.py#L112-L115
Check warning on line 156 in pennylane_lightning/lightning_gpu/_measurements.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_measurements.py#L156
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.
A new file and class will be used to keep the device implementation similar between LQ, LK, and LGPU. Also, in case of future implementation of MPI resources in other devices.
Check warning on line 22 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L22
Check warning on line 63 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L62-L63
Check warning on line 66 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L65-L66
Check warning on line 69 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L68-L69
Check warning on line 74 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L74
Check warning on line 79 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L77-L79
Check warning on line 84 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L82-L84
Check warning on line 91 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L91
Check warning on line 97 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L97
Check warning on line 101 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L100-L101
Check warning on line 104 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L103-L104
Check warning on line 110 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L109-L110
Check warning on line 118 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L115-L118
Check warning on line 120 in pennylane_lightning/lightning_gpu/_mpi_handler.py
Codecov / codecov/patch
pennylane_lightning/lightning_gpu/_mpi_handler.py#L120