We theoretically model and simulate the dynamics of a hybrid quantum system consisting of two non-local ensembles of nitrogen-vacancy center and a superconducting transmon qubit mediated by two transmission line resonators. We apply a time-dependent external field to enhance this system's speed and fidelity to function as a controlled-phase gate. Our simulation result shows that a high-fidelity entangled state of two non-local NV spins is 92%. It is achievable under realistic parameter regimes within a timescale of 1.1 nanoseconds. Our result paves the way to improving potential quantum computing and sensing applications.