# DEMO $$ \sum_i A^j_i \psi^i = \phi^j $$ ## Top to Bottom ```graphviz digraph { subgraph left { start0 [label="", shape=point, color=blue] A [label="A", shape=box] psi [label="ψ", shape=triangle, orientation=180] start0 -> A [label=" j"] A -> psi [label=" i"] } subgraph equal { X [shape=point, color=white] Y [shape=point, color=white] X -> Y [label="=", color=white] } subgraph right { phi [label="φ", shape=triangle, orientation=180] start1 [label="", shape=point, color=blue] start1 -> phi [label=" j"] } } ``` ## Right to Left (Quantum Circuit) ```graphviz digraph { rankdir=RL; subgraph left { start0 [label="", shape=point, color=blue] A [label="A", shape=box] psi [label="ψ", shape=triangle, orientation=90] start0 -> A [label=" j"] A -> psi [label=" i"] } subgraph equal { X [shape=point, color=white] Y [shape=point, color=white] X -> Y [label="=", color=white] } subgraph right { phi [label="φ", shape=triangle, orientation=90] start1 [label="", shape=point, color=blue] start1 -> phi [label=" j"] } } ``` ## Left to Right (Tensor Network) ```graphviz digraph { rankdir=LR; subgraph left { start0 [label="", shape=point, color=blue] A [label="A", shape=box] psi [label="ψ", shape=triangle, orientation=-90] start0 -> A [label=" j"] A -> psi [label=" i"] } subgraph equal { X [shape=point, color=white] Y [shape=point, color=white] X -> Y [label="=", color=white] } subgraph right { phi [label="φ", shape=triangle, orientation=-90] start1 [label="", shape=point, color=blue] start1 -> phi [label=" j"] } } ```