The calculated distance (air line) between Hamadān and Qazvin is approximately 132 miles respectively 212 kilometers.
By car or train, the actual journey to Qazvin is certainly longer, as only the direct route (as the crow flies) between Hamadān and Qazvin has been calculated here.