Fidelity between unitary operators and the generation of robust gates against off-resonance perturbations | Synapse