def K2BDES(K, quad_length, energy):
<EOL>K           = _np.float_(K)<EOL>quad_length = _np.float_(quad_length)<EOL>energy      = _np.float_(energy)<EOL>Brho = energy/_np.float_(<NUM_LIT>)<EOL>BDES = K*Brho*quad_length<EOL>logger.log(level=loggerlevel, msg='<STR_LIT>'.format(<EOL>bdes        = BDES        ,<EOL>quad_length = quad_length ,<EOL>energy      = energy      ,<EOL>K           = K<EOL>)<EOL>)<EOL>return BDES<EOL>
Returns the BDES for a quadrupole with geometric strength *K* and length *quad_length* for a beam with a given *energy*.
Converts a geometric focusing strength :math:`K` into a quadrupole :math:`B_des`.

Parameters
----------
K : float
    The geometric focusing strength :math:`K`.
quad_length : float
    The length of the quadrupole in meters.
energy : float
    The design energy of the beam in GeV.

Returns
-------
bdes : float
    The magnet value of :math:`B_des`.