'[CNOT(i, j), X(j)] == 0.'

def _eval_commutator_XGate(self, other, **hints):

    if (self.targets[0] == other.targets[0]):
        return Integer(0)
    else:
        raise NotImplementedError(('Commutator    not    implemented:    %r' % other))
