def deembed_qfactor(q_net, q_remove):
    """Deembed Q-factor.

    Args:
        q_net (float): overall Q-factor
        q_remove (float): Q-factor to deembed

    Returns:
        float: overall Q-factor with qremove Q-factor removed

    """

    return 1 / (1 / q_net - 1 / q_remove)