bsc-quantic / Tenet.jl

Composable Tensor Network library in Julia
https://bsc-quantic.github.io/Tenet.jl/
Apache License 2.0
17 stars 1 forks source link

Add special visualization for `Quantum` types #160

Open jofrevalles opened 5 months ago

jofrevalles commented 5 months ago

Currently, the Chain tensor networks could be visualized using its field and the Tenet.plot(::TensorNetwork) function. Nevertheless, we could enhance this function so that it plots the MPS, MPO, ... networks following the common used diagrams, i.e., fix the tensors in a grid-like structure.

mofeing commented 5 months ago

I would suggest that we can directly implement a stack/grid visualization for all Quantum TNs.

Maybe we could use something like https://juliagraphs.org/NetworkLayout.jl/stable/#pin-Positions-in-Interative-Layouts to manually set tensor positions.