Update unit tests, also add some helper functions to compute expected values of the simulation.
Fix examples to compile. Note: I don't try to fix the XASM source code in those examples since we'll create new examples for the ExaTN backend anyway; hence don't want to invest too much time on this.
Tested by: compilation (there are two flags: TNQVM_BUILD_EXAMPLES and TNQVM_BUILD_TESTS to enable examples and unit tests build) + unit tests.
Changes:
Edit CMakeLists.txt files to be more readable.
Update unit tests, also add some helper functions to compute expected values of the simulation.
Fix examples to compile. Note: I don't try to fix the XASM source code in those examples since we'll create new examples for the ExaTN backend anyway; hence don't want to invest too much time on this.
Tested by: compilation (there are two flags: TNQVM_BUILD_EXAMPLES and TNQVM_BUILD_TESTS to enable examples and unit tests build) + unit tests.