Fidelity routines with CUDA