def _init_from_bool(self, z, x):
if z is None:<EOL><INDENT>raise QiskitError("<STR_LIT>")<EOL><DEDENT>if x is None:<EOL><INDENT>raise QiskitError("<STR_LIT>")<EOL><DEDENT>if len(z) != len(x):<EOL><INDENT>raise QiskitError("<STR_LIT>"<EOL>"<STR_LIT>".format(len(z), len(x)))<EOL><DEDENT>z = _make_np_bool(z)<EOL>x = _make_np_bool(x)<EOL>self._z = z<EOL>self._x = x<EOL>return self<EOL>
Construct pauli from boolean array.

        Args:
            z (numpy.ndarray): boolean, z vector
            x (numpy.ndarray): boolean, x vector

        Returns:
            Pauli: self

        Raises:
            QiskitError: if z or x are None or the length of z and x are different.