def fqx_calc_u1_u2_s1_s2(mul_f, x1_t, y1_t, z1_t, x2_t, y2_t, z2_t):
    """x, y, z inputs of type fq2, returning tuple of fq2 tuples"""
    u1 = mul_f(mul_f(x1_t, z2_t), z2_t)
    u2 = mul_f(mul_f(x2_t, z1_t), z1_t)
    s1 = mul_f(mul_f(mul_f(y1_t, z2_t), z2_t), z2_t)
    s2 = mul_f(mul_f(mul_f(y2_t, z1_t), z1_t), z1_t)
    return u1, u2, s1, s2
