ORNL-QCI / tnqvm

Tensor Network QPU Simulator for Eclipse XACC
43 stars 10 forks source link

Fixes for https://github.com/ORNL-QCI/tnqvm/issues/89 #90

Closed 1tnguyen closed 3 years ago

1tnguyen commented 3 years ago

The test script is using ITensor-based visitor and the U3 impl. is not accurate. Hence, fixed by using the direct matrix form of U3 (should be faster).

Also, it turns out I didn't forward U3 parameters to exatn-based visitors as well. Fixed accordingly.

Tested by: running the Python test case and comparing the result w/ qpp.

Signed-off-by: Thien Nguyen nguyentm@ornl.gov