Researchers at the University of Bristol focused on the role of enzymes in the bacteria, which split the structure of the antibiotic and stop it from working, making the bacteria resistant.
The new findings show that it's possible to test how enzymes react to certain antibiotics.
It's hoped this insight will help scientists to develop new antibiotics with a much lower risk of resistance, and to choose the best medicines for specific outbreaks.
Researchers specifically want to understand the growing resistance to carbapenems, which are known as the 'last resort' antibiotics for many bacterial infections and super bugs such as E coli.
Resistance to carbapenems makes some bacterial infections untreatable, resulting in minor infections becoming very dangerous and potentially deadly, researchers said.
The QM/MM simulations showed that the most important step in the whole process is when the enzyme 'spits out' the broken down antibiotic.
The rate of this 'spitting out' depends on the height of the energy barrier for the reaction - if the barrier is high, it happens slowly; if it's low, it happens much more quickly.
"We've shown that we can use computer simulations to identify which enzymes break down and spit out carbapenems quickly and those that do it only slowly," Professor Adrian Mulholland, from Bristol University's School of Chemistry, said.
The study was published in the journal Chemical Communications.
