def qubit_from_push(g, bare_res, pushed_res):
    """
    Get estimated qubit location given coupling, push on resonator
    and bare resonator position.

    Args:
        g: coupling in Hz
        bare_res: high power resonator position in Hz
        pushed_res: low power resonator position in Hz

    Returns:
        estimated qubit frequency
    """
    push = pushed_res - bare_res
    delta = g**2 / push
    return bare_res - delta