Gauging tensor networks with belief propagation | Synapse