State diagrams to determine tree tensor network operators | Synapse