jcmgray / quimb

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

Unitizing Complex TensorNetworks #144

Closed yuxuanzhang1995 closed 1 year ago

yuxuanzhang1995 commented 1 year ago

What is your issue?

Hi quimb team,

I'm having trouble with the 'TensorNetwork.unitize' while working with complex matrices; it seems to be working fine for the real ones but I'm trying to do some optimizations with complex entrees. Any quick idea on what the issue might be?

Thanks! Yuxuan

jcmgray commented 1 year ago

Hi @yuxuanzhang1995, could you maybe provide minimal example? There are some issues with the stability of autodiff gradients through some of the unitize method + backend combinations. Complex matrices potentially sets these off as well.