Gauge and diffeomorphism invariance from quantum information principles | Synapse