Tangle tensor operator
TODO update
StateSum optimization
StateSum optimization