def int2str(i, n):
    """
    Returns string representation of product state.

    Parameters
    ----------
    i : int
        Product state.
    n : int
        Total number of spin-orbitals in the system.

    """
    s = bin(i)[2:]
    s = "0"*(n - len(s)) + s
    return s