def __imul__(self, other):
if len(self) != len(other):<EOL><INDENT>raise QiskitError("<STR_LIT>"<EOL>"<STR_LIT>".format(len(self), len(other)))<EOL><DEDENT>self._z = np.logical_xor(self._z, other.z)<EOL>self._x = np.logical_xor(self._x, other.x)<EOL>return self<EOL>
Multiply two Paulis.

        Returns:
            Pauli: the multiplied pauli and save to itself, in-place computation.

        Raises:
            QiskitError: if the number of qubits of two paulis are different.