#include "itensor/all.h"
#include "myclass.h"
using namespace itensor;
int
main()
{
auto i = Index(2);
auto j = Index(2);
auto T = randomTensor(i,j);
ITensor U(i),D,V;
svd(T,U,D,V);
PrintData(T);
PrintData(U);
PrintData(D);
PrintData(V);
return 0;
}
This is the code I tried. Thanks for your response.