Open rezah opened 8 years ago
Bug reproduced.
Swig should have mapped the list of integers to a std::vector<int>
but somehow it didn't generate the code. One workaround is to explicitly typecast it
mpo_uni10=uni10.UniTensor([bdi, bdi, bdo,bdo],uni10.int_arr([0,1,2,3]), "uni10")
which solves the issue.
The following is not allowed!!! mpo_uni10=uni10.UniTensor([bdi, bdi, bdo,bdo],[0,1,2,3], "uni10")
Please see the attached.... R2.py.tar.gz