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/91 #92

Closed 1tnguyen closed 3 years ago

1tnguyen commented 3 years ago

It was a copy and paste error when I tried to fix https://github.com/ORNL-QCI/tnqvm/issues/89

I copied the leg pattern from Hadamard gate which was actually not generally correct (okay for H matrix, which is symmetric).

Effectively, it was applying U gates in reverse.

Need to swap the leg order.

Tested by: running both the Python test scripts.

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