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

Add var support to LTensor #804

Merged
merged 71 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
9a0604a
init commit
multiphaseCFD Jul 16, 2024
a3059ff
make format
multiphaseCFD Jul 16, 2024
9e83c44
add unit tests for HermitianObs
multiphaseCFD Jul 17, 2024
a929928
initial commit
multiphaseCFD Jul 15, 2024
1490267
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 17, 2024
3af11ac
Auto update version from '0.38.0-dev9' to '0.38.0-dev10'
ringo-but-quantum Jul 17, 2024
425126b
make format
multiphaseCFD Jul 17, 2024
99c3b9e
Add GPU device compute capability check for LTensor (#803)
multiphaseCFD Jul 17, 2024
6da1e25
Auto update version from '0.38.0-dev10' to '0.38.0-dev11'
ringo-but-quantum Jul 17, 2024
9046199
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 18, 2024
3877ebf
Auto update version from '0.38.0-dev11' to '0.38.0-dev12'
ringo-but-quantum Jul 18, 2024
1b12733
make format
multiphaseCFD Jul 18, 2024
afa67c9
add more complex Hermitian matrix
multiphaseCFD Jul 18, 2024
49e529f
add python and pybind layer
multiphaseCFD Jul 18, 2024
e97107e
add more py unit tests
multiphaseCFD Jul 18, 2024
85a9bd5
add more unit tests
multiphaseCFD Jul 18, 2024
93ff20f
add changelog
multiphaseCFD Jul 18, 2024
fa2c8fb
tidy up C++
multiphaseCFD Jul 18, 2024
0cdc3d0
further clean C++ layer
multiphaseCFD Jul 18, 2024
fca24d3
switch on more python unit tests
multiphaseCFD Jul 18, 2024
19dbedc
tidy up python layer
multiphaseCFD Jul 18, 2024
2737df1
tidy up linaralg and add more unit tests
multiphaseCFD Jul 18, 2024
976da4d
Add var support to multi-terms Hamiltionian
multiphaseCFD Jul 20, 2024
ad8d9bd
tidy up code
multiphaseCFD Jul 22, 2024
3ac6211
Auto update version from '0.38.0-dev12' to '0.38.0-dev13'
ringo-but-quantum Jul 22, 2024
255e341
remove square_matrix_cuda_device
multiphaseCFD Jul 22, 2024
7b44e8a
further tidy up
multiphaseCFD Jul 22, 2024
00beafa
fix typo
multiphaseCFD Jul 22, 2024
48f74b5
initial commit
multiphaseCFD Jul 15, 2024
cdb4606
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 22, 2024
6afbc37
quick fix
multiphaseCFD Jul 22, 2024
8a588e6
Auto update version from '0.38.0-dev12' to '0.38.0-dev13'
ringo-but-quantum Jul 22, 2024
2103fa0
add more docstrings
multiphaseCFD Jul 22, 2024
bb85c54
typo fix
multiphaseCFD Jul 22, 2024
20113a0
add more unit tests
multiphaseCFD Jul 26, 2024
3f24ca2
Auto update version from '0.38.0-dev13' to '0.38.0-dev18'
ringo-but-quantum Jul 26, 2024
646e2e1
initial commit
multiphaseCFD Jul 15, 2024
635b469
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 26, 2024
208e679
add more unit tests
multiphaseCFD Jul 26, 2024
194d87f
tidy up
multiphaseCFD Jul 26, 2024
6aeb802
initial commit
multiphaseCFD Jul 15, 2024
59b1ade
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 26, 2024
408dcb2
revert changes
multiphaseCFD Jul 26, 2024
83c1316
Auto update version from '0.38.0-dev18' to '0.38.0-dev19'
ringo-but-quantum Jul 26, 2024
c83fa7a
remove some unit tests
multiphaseCFD Jul 26, 2024
afb2831
set ref result with 8 significant figures
multiphaseCFD Jul 26, 2024
1cdb538
update `ObservableTNCudaOperator`
multiphaseCFD Jul 29, 2024
c9d430e
Auto update version from '0.38.0-dev19' to '0.38.0-dev20'
ringo-but-quantum Jul 29, 2024
ea68235
unify private data for ObservableTNCudaOperator
multiphaseCFD Jul 29, 2024
03c2628
initial commit
multiphaseCFD Jul 15, 2024
2ea72e1
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 29, 2024
b1aea01
revert some changes
multiphaseCFD Jul 29, 2024
89deb72
Auto update version from '0.38.0-dev20' to '0.38.0-dev21'
ringo-but-quantum Jul 29, 2024
e30ff89
update C++ unit tests and changelog
multiphaseCFD Jul 31, 2024
28f0b47
Auto update version from '0.38.0-dev21' to '0.38.0-dev22'
ringo-but-quantum Jul 31, 2024
fea0770
further tidy up the code
multiphaseCFD Jul 31, 2024
c69f0ba
update getPauliPauli with rotation of one Pauli
multiphaseCFD Jul 31, 2024
b283480
Merge branch 'master' into add_var_tensornet
multiphaseCFD Jul 31, 2024
42fe47e
Auto update version from '0.38.0-dev21' to '0.38.0-dev22'
ringo-but-quantum Jul 31, 2024
4fba502
resolve more comments
multiphaseCFD Aug 1, 2024
4f62281
resolve more comments
multiphaseCFD Aug 1, 2024
b2c8c2b
further tidy up code
multiphaseCFD Aug 1, 2024
63cd387
refactor ObservableTNCudaOperator ctor
multiphaseCFD Aug 1, 2024
bf670fc
update python layer
multiphaseCFD Aug 1, 2024
cbb0d8d
mark pauli_map_ as static
multiphaseCFD Aug 1, 2024
7c35f9c
move two paulis obskey construction to helper methods as well
multiphaseCFD Aug 1, 2024
fb1d7bc
add unit tests to cover exceptions
multiphaseCFD Aug 1, 2024
17d3af3
tidy up code
multiphaseCFD Aug 2, 2024
2bd7f45
Auto update version from '0.38.0-dev22' to '0.38.0-dev23'
ringo-but-quantum Aug 2, 2024
e6f3ccd
Merge branch 'master' into add_var_tensornet
multiphaseCFD Aug 2, 2024
2a98634
Auto update version from '0.38.0-dev22' to '0.38.0-dev23'
ringo-but-quantum Aug 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
2 changes: 1 addition & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### New features since last release

* Add `var` support to `lightning.tensor`. Note that `var` support is added via `obs^2` and this implementation scales `O(num_obs^2)`.
* Add `var` support to `lightning.tensor`. Note that `var` support is added via `obs**2` and this implementation scales `O(num_obs**2)`.
[(#804)](https://github.com/PennyLaneAI/pennylane-lightning/pull/804)

### Breaking changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ TEMPLATE_TEST_CASE("Test var value of HamiltonianObs", "[MPSTNCuda_Var]", float,
using HamiltonianObsT = HamiltonianTNCuda<TensorNetT>;

SECTION("Using TensorProd") {
std::size_t bondDim = GENERATE(2);
std::size_t bondDim = GENERATE(2, 3, 4, 5);
constexpr std::size_t num_qubits = 5;
constexpr std::size_t num_paulis = 5;
constexpr std::size_t num_obs_terms = 6;
Expand Down Expand Up @@ -266,7 +266,7 @@ TEMPLATE_TEST_CASE("Test var value of HamiltonianObs", "[MPSTNCuda_Var]", float,
}

SECTION("Using 1 Hermitian") {
std::size_t bondDim = GENERATE(2);
std::size_t bondDim = GENERATE(2, 3, 4, 5);
std::size_t num_qubits = 3;
std::size_t maxBondDim = bondDim;

Expand Down Expand Up @@ -305,7 +305,7 @@ TEMPLATE_TEST_CASE("Test var value of HamiltonianObs", "[MPSTNCuda_Var]", float,
}

SECTION("Using 2 Hermitians") {
std::size_t bondDim = GENERATE(2);
std::size_t bondDim = GENERATE(2, 3, 4, 5);
std::size_t num_qubits = 3;
std::size_t maxBondDim = bondDim;

Expand Down
Loading
Loading