You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
now that we have forms and all that, it would be nice to have it shown when we print an mps. We could print also the info on the bond dimension (see #181 ) , maybe on the physical dimension as well
linkdims(psi) = [size(psi,link) for link in inds(psi, set=:inner)]
maxlinkdim(psi) = maximum(linkdims(psi))
function Base.show(io::IO, tn::T) where {T<:Tenet.AbstractQuantum}
return print(io, "$T (inputs=$(nsites(tn; set=:inputs)), outputs=$(nsites(tn; set=:outputs))), chimax=$(maxlinkdim(tn)), form=$(form(psi))")
end
Ideally even printing linkdims(psi) (so the bond dimension on all tensors) would be useful, but right now if I just print them like this it returns it in sparse ordering, which I don't like (should sort it appropriately but I'm not too sure how )
I like the idea of prettier printing for MPS, MPO and other types in general.
About printing all the physical and virtual dimensions is not sth that I'm convinced because it will be big when we have a lot sites. But we should have sth like the following working:
now that we have forms and all that, it would be nice to have it shown when we print an mps. We could print also the info on the bond dimension (see #181 ) , maybe on the physical dimension as well
Ideally even printing linkdims(psi) (so the bond dimension on all tensors) would be useful, but right now if I just print them like this it returns it in sparse ordering, which I don't like (should sort it appropriately but I'm not too sure how )
The text was updated successfully, but these errors were encountered: