early-stage code intended to implement tensor networks