(arg)
return (tmp[0]*sigma_product*com_product)
Help function to evaluate Pauli matrices product
    with symbolic objects

    Parameters
    ==========

    arg: symbolic expression that contains Paulimatrices

    Examples
    ========

    >>> from sympy.physics.paulialgebra import Pauli, evaluate_pauli_product
    >>> from sympy import I
    >>> evaluate_pauli_product(I*Pauli(1)*Pauli(2))
    -sigma3

    >>> from sympy.abc import x,y
    >>> evaluate_pauli_product(x**2*Pauli(2)*Pauli(1))
    -I*x**2*sigma3
Help function to evaluate Pauli matrices product
    with symbolic objects
Help function to evaluate Pauli matrices product with symbolic objects
def evaluate_pauli_product(arg):
    '''Help function to evaluate Pauli matrices product
    with symbolic objects

    Parameters
    ==========

    arg: symbolic expression that contains Paulimatrices

    Examples
    ========

    >>> from sympy.physics.paulialgebra import Pauli, evaluate_pauli_product
    >>> from sympy import I
    >>> evaluate_pauli_product(I*Pauli(1)*Pauli(2))
    -sigma3

    >>> from sympy.abc import x,y
    >>> evaluate_pauli_product(x**2*Pauli(2)*Pauli(1))
    -I*x**2*sigma3
    '''
    tmp = arg.as_coeff_mul()
    sigma_product = 1
    com_product = 1
    for el in tmp[1]:
        if isinstance(el, Pauli):
            sigma_product *= el
        else:
            com_product *= el
    return (tmp[0]*sigma_product*com_product)
def evaluate_pauli_product ( arg ) : tmp = arg . as_coeff_mul ( ) sigma_product = 1 com_product = 1 for el in tmp [ 1 ] : if isinstance ( el , Pauli ) : sigma_product *= el else : com_product *= el return ( tmp [ 0 ] * sigma_product * com_product )