Environment: cytnx 1.0.0, Python 3.9
I believe this is a bug.
Contracting a real BlockUniTensor (QN) with a complex one raises an error, but the reverse order succeeds.
Expected behavior: Both Contract(real, complex) and Contract(complex, real) should succeed (or both should fail), regardless of argument order.
I attached an example code.
QN_complex_real_contract.py
Environment: cytnx 1.0.0, Python 3.9
I believe this is a bug.
Contracting a real BlockUniTensor (QN) with a complex one raises an error, but the reverse order succeeds.
Expected behavior: Both Contract(real, complex) and Contract(complex, real) should succeed (or both should fail), regardless of argument order.
I attached an example code.
QN_complex_real_contract.py