def _build_2bdy_operators_spinful() -> list:
    ' Returns spinful two-body operators as a symmetry-reduced list of QubitHamiltonians '
    ops = []
    for p in range(n_SOs):
        for q in range(p):
            for r in range(n_SOs):
                for s in range(r):
                    if (((p * n_SOs) + q) >= ((r * n_SOs) + s)):
                        op_tuple = ((p, 1), (q, 1), (s, 0), (r, 0))
                        op = _get_of_op(op_tuple)
                        ops += [op]
    return ops
Returns spinful two-body operators as a symmetry-reduced list of QubitHamiltonians
def _build_2bdy_operators_spinful() -> list:
    '  '
    ops = []
    for p in range(n_SOs):
        for q in range(p):
            for r in range(n_SOs):
                for s in range(r):
                    if (((p * n_SOs) + q) >= ((r * n_SOs) + s)):
                        op_tuple = ((p, 1), (q, 1), (s, 0), (r, 0))
                        op = _get_of_op(op_tuple)
                        ops += [op]
    return ops