Why does this circuit for Heisenberg XXZ model look like this?

60 Views Asked by At

So for the XXZ Heisenberg model taken form https://www.tensorflow.org/quantum/api_docs/python/tfq/datasets/xxz_chain: enter image description here

why is the X interaction part shown as such (with XX, HI, and CNOT): enter image description here

I wrote out the matrix and it doesn't seem to agree with the nearest neighbor XX interaction? Thank you!