def resonator_from_qubit(qubit, g, bare_res):
    """
    Get estimated resonator position based on qubit position,
    qubit resonator coupling and bare resonator position

    Args:
        qubit: qubit frequency
        g: coupling in Hz
        bare_res: resonator position in Hz

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