def _eval_anticommutator_XGate(self, other, **hints): return Integer(2)*IdentityGate(self.targets[0])