The de novo computational design of proteins with predefined three-dimensional structure is becoming much more routine due to advancements in both force fields and algorithms. However, creating designs with functions beyond folding is more challenging. In that regard, the recent design of small beta barrel proteins that activate the fluorescence of an exogenous small molecule chromophore (DFHBI) is particularly noteworthy(1,2). These proteins, termed mini Fluorescence Activating Proteins (mFAPs), have been shown to increase the brightness of the chromophore more than 100-fold upon binding to the designed ligand pocket. The design process created a large library of variants with different brightness levels but gave no rational explanation for why one variant was brighter than another. Here we use quantum mechanics and molecular dynamics (MD) simulations to reveal how molecular flexibility in the ground and excited states determines brightness(3). We show that the ability of the protein to resist dihedral angle rotation of the chromophore is critical for predicting brightness. Our simulations indicate that the mFAP/DFHBI complex has a rough energy landscape, with an ensemble of macrostates each having widely varying function. This roughness suggests that mFAP protein function can be enhanced by reshaping the energy landscape towards conformations that better resist DFHBI bond rotation. We have found that the presence of specific side chain rotamers is particularly important for determining how well a given macrostate stabilizes the DFHBI. Through directed MD simulations, we have shown that the relationship involves causation and not merely correlation. To enable reshaping of the energy landscape towards highly functional macrostates, we have developed a novel design algorithm coupling MD simulations with Rosetta sequence design calculations. We report on our progress towards using this algorithm to create new mFAP designs and experimentally validate them. The approach and algorithm are very general, with applications not only in this system but also to the prediction of allosterically acting second- and third-shell mutations and eventually enzyme design.