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 C++ unit tests for Exact Tensor Network backends #998

Merged
merged 32 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c2b89a0
Test gates exatn
LuisAlfredoNu Nov 13, 2024
5f1997a
Added gate tests
LuisAlfredoNu Nov 14, 2024
1362f5d
added measurement test
LuisAlfredoNu Nov 18, 2024
2b6cdec
apply format
LuisAlfredoNu Nov 18, 2024
069bb28
Cmake fix
LuisAlfredoNu Nov 18, 2024
565d1c3
Merge branch 'master' into add_exatn_cpp_test
multiphaseCFD Nov 18, 2024
cc405b7
Merge branch 'add_exatn_cpp' into add_exatn_cpp_test
LuisAlfredoNu Nov 18, 2024
a597a16
Added unify test for exatn and mpstn
LuisAlfredoNu Nov 20, 2024
b1126b8
apply format
LuisAlfredoNu Nov 20, 2024
7bd46a1
TNCuda test Param
LuisAlfredoNu Nov 20, 2024
786543d
delete duplicated test
LuisAlfredoNu Nov 20, 2024
f0e8e17
Replace MPS and ExaTN by TN
LuisAlfredoNu Nov 26, 2024
28ae9f6
new line
LuisAlfredoNu Nov 26, 2024
5c86522
correct format
LuisAlfredoNu Nov 26, 2024
d37d11f
Add mps final
LuisAlfredoNu Nov 26, 2024
3027d0a
Add mps final param
LuisAlfredoNu Nov 26, 2024
510b416
using Pennylane::Util::approx
LuisAlfredoNu Nov 26, 2024
c59060f
apply format
LuisAlfredoNu Nov 27, 2024
71503b2
Shuli Amintor comments
LuisAlfredoNu Nov 27, 2024
d31853b
update test
LuisAlfredoNu Nov 27, 2024
de80dfc
Apply format
LuisAlfredoNu Nov 27, 2024
238483b
cmake format
LuisAlfredoNu Nov 27, 2024
9fe3695
added PL_ABORT_IF
LuisAlfredoNu Nov 27, 2024
a3927cc
shuli suggestion
LuisAlfredoNu Nov 27, 2024
e88e48a
independent MPO test
LuisAlfredoNu Nov 27, 2024
9f31130
apply format
LuisAlfredoNu Nov 27, 2024
d25dbfd
double check for tn_state_append_mps_final_state
LuisAlfredoNu Nov 27, 2024
cf98f5b
delete comment
LuisAlfredoNu Nov 27, 2024
41717ef
apply format
LuisAlfredoNu Nov 27, 2024
9763e31
fix bug on cutoff test
LuisAlfredoNu Nov 27, 2024
b23900d
remove comment
LuisAlfredoNu Nov 28, 2024
de2855e
add changelog
LuisAlfredoNu Nov 28, 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
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ endif()
foreach(COMP ${COMPONENT_SUBDIRS})
add_subdirectory(${COMP})
endforeach()

if (BUILD_TESTS)
enable_testing()
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ FetchAndIncludeCatch()
################################################################################

add_library(${PL_BACKEND}_gates_tests INTERFACE)
target_link_libraries(${PL_BACKEND}_gates_tests INTERFACE Catch2::Catch2
${PL_BACKEND}_gates
${PL_BACKEND}
)
target_link_libraries(${PL_BACKEND}_gates_tests INTERFACE Catch2::Catch2
${PL_BACKEND}_gates
${PL_BACKEND}
${PL_BACKEND}_tncuda_utils)

ProcessTestOptions(${PL_BACKEND}_gates_tests)

Expand All @@ -27,9 +27,9 @@ target_sources(${PL_BACKEND}_gates_tests INTERFACE runner_${PL_BACKEND}_gates.cp
################################################################################
# Define targets
################################################################################
set(TEST_SOURCES Test_MPSTNCuda_NonParam.cpp
Test_ExaTNCuda_NonParam.cpp
Test_MPSTNCuda_Param.cpp)
set(TEST_SOURCES Test_TNCuda_NonParam.cpp
Test_TNCuda_Param.cpp
Test_TNCuda_MPO.cpp)

add_executable(${PL_BACKEND}_gates_test_runner ${TEST_SOURCES})
target_link_libraries(${PL_BACKEND}_gates_test_runner PRIVATE ${PL_BACKEND}_gates_tests)
Expand Down

This file was deleted.

Loading
Loading