Quantum information transfer with superconducting flux qubits coupled to a resonator