jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
484 stars 108 forks source link

quimb.tensor.tensor_builder.MPO_ham_ising #155

Closed Miao-JQ closed 1 year ago

Miao-JQ commented 1 year ago

What happened?

https://github.com/jcmgray/quimb/blob/develop/quimb/tensor/tensor_builder.py#L2763 In this line, “=1/2” should be deleted. Otherwise, the input S won't work, so that MPO_ham_ising result won't change when S changes.

jcmgray commented 1 year ago

Thanks for finding this! Should be fixed.