The calculated distance (air line) between Bābolsar and Qom is approximately 174 miles respectively 279 kilometers.
By car or train, the actual journey to Qom is certainly longer, as only the direct route (as the crow flies) between Bābolsar and Qom has been calculated here.