Max truncation error of apply?

Hello,
I wanted to ask if there is a way to obtain the max truncation error which arises by using the function apply with a certain cutoff or max link dimension. I had a look in the documentation but I couldn’t figure out a possible solution.
Thanks!

Unfortunately that has been on our list of things to add for a very long time now and no one has gotten around to doing it.

Yes, as Matt said this is a more general kind of capability we have plans to add in the future, which is a general-purpose way to monitor or collect data from inside various algorithms. But we haven’t added it at this time.

If you are comfortable with editing the ITensors.jl source code, then as a workaround you could insert some printing statements inside the function product defined in src/mps/abstractmps.jl around lines 1760 or so, to print out the bond or link dimensions of the MPS as it is being processed.

Ok, thanks