unlike the laws of classical physics , quantum theory deals with events that occur on the smallest of scales , and explains how subatomic particles form atoms , and how atoms interact when they combine to form chemical compounds .