Tensor networks for p-spin models | Synapse