An experimental ultracold potassium atom simulator tested baryogenesis—the cosmological mechanism explaining why matter dominates antimatter in the observable universe—by engineering quantum phase transitions analogous to the early universe's electroweak phase transition under Sakharov's non-equilibrium conditions.