If you're simulating the qubit in the lab frame (with a Hamiltonian like
), then the state vector rotates rapidly, which requires high time resolution.Decoherence happens in the rotating frame, but if your simulation is done in the lab frame, the echo envelope is modulated by fast qubit rotation, leading to under-sampling errors.
Shift your simulation to the rotating frame, especially during T₂ and echo experiments.
Redefine the Hamiltonian so that in the rotating frame it becomes something like:
where
during free evolutionIf your simulated data is noisy or undersampled, a simple exponential fit might not extract
correctly.Fit only the envelope of the oscillations.
Use an analytic model for echo decay, or filter out high-frequency oscillations before fitting.