Skip to content

TTTensor Chop not working as intended

  • Number of external indices of left and right side is wrong in the operator case.
  • same functionality can be obtained by simply contracting the component tensors as nodes[i].tensorObject(i&1,j) * nodes[i+1].tensorObject(j,k&1), so why the hassle of manually counting dimensions?
  • one could argue that this function is rather specific to one purpose and thus rather a part of the ALS it is being written for, than an important part of tttensor :P (alternatively this function should be less specific. eg. by allowing to remove several nodes inbetween to allow dmrg implementations to use it)