Mediated tunable coupling of flux qubits