def find_stab(state, xs, zs):
    """
    Find a stabilizer in the stabilizer group.

    Args:
        state:
        logical_circuit:
        delogical_circuit:

    Returns:

    """
    stabs = state.stabs
    destabs = state.destabs
    possible_antidestabs = set([])
    for q in xs:
        possible_antidestabs.update(destabs.col_z[q])
    for q in zs:
        possible_antidestabs.update(destabs.col_x[q])
    antidestabs = set([])
    for d in possible_antidestabs:
        if (len(xs & destabs.row_z[d]) + len(zs & destabs.row_x[d])) % 2 == 1:
            antidestabs.add(d)
    confirm_xs = set([])
    confirm_zs = set([])
    for d in antidestabs:
        confirm_xs ^= stabs.row_x[d]
        confirm_zs ^= stabs.row_z[d]
    found = confirm_xs == xs and confirm_zs == zs
    return found, antidestabs
