Visualization
Tenet
provides a Package Extension for Makie
support. You can just import a Makie
backend and call GraphMakie.graphplot
on a TensorNetwork
.
GraphMakie.graphplot
— Methodgraphplot(tn::TensorNetwork; kwargs...)
graphplot!(f::Union{Figure,GridPosition}, tn::TensorNetwork; kwargs...)
graphplot!(ax::Union{Axis,Axis3}, tn::TensorNetwork; kwargs...)
Plot a TensorNetwork
as a graph.
Keyword Arguments
labels
Iftrue
, show the labels of the tensor indices. Defaults tofalse
.- The rest of
kwargs
are passed toGraphMakie.graphplot
.
graphplot(tn, layout=Stress(), labels=true)