Extracting the quantum metric tensor through periodic driving | Synapse