Message Boards Message Boards


[?] Plot tensor networks diagrams?

Posted 1 year ago
2 Replies
4 Total Likes

I am trying to draw useful tensor networks in Mathematica (for ex: two of these are shown below). I was not sure that people use Mathematica for this until I came across

GraphPlot[Table[1, {10}, {10}], Method -> "CircularEmbedding", VertexLabeling -> False]

which is a good start. So, I figured there must be some way of taking it from there. I would appreciate any help on this. Thanks. enter image description here

enter image description here

2 Replies

You can do something similar. Take a look at the following function:

    FilterRules[{opts}, Options[KaryTree]],

To understand how it works look up in docs every single function from this definition starting with KaryTree. Example with different branches and levels:

Grid[Table[diagramsJHA[b, l], {b, 2, 5}, {l, 4}]]

enter image description here

Example of a large diagram:

diagramsJHA[5, 5, ImageSize -> 1000]

enter image description here

Posted 1 year ago

Thank you @Vitaliy Kaurov for your answer. It is very helpful!

Useful link to play around with branches and levels of the tree -

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract