Recently, with highly developed fabrication techniques and newly designed architecture, superconducting qubit is recognized as one of the most promising candidates for implementation of the on-chip quantum computation [14]. To implement quantum networks and distributed quantum information processing, cavity-assisted coupling is preferred [512], where a microwave photon can be an ideal flying qubit [13]. Moreover, this architecture has several practical advantages including strong coupling strength, immunity to noises, and suppression of spontaneous emission. As it is well known, the ability of controlling qubit–qubit and qubit–cavity interactions is generic to all physical implementation of quantum computer and simulators [1417]. However, the cavity-induced interaction is of the always-on nature, and thus one needs to find practical ways of switching and/or tuning this interaction.

Conventionally, in the circuit QED scenario, the qubit–cavity is effectively tuned off by dispersive interaction [8]. This requires one can tune the energy splitting of the superconducting qubit and/or the cavity. The more severe problem is that this switch will become less effective in the case of more than single qubit in the cavity. In this case, qubits can be effectively interacted with each other by exchange the virtual photon of the cavity [18, 19] and thus may sweep the switch effect. Therefore, one needs more accurate tunable qubit–cavity interaction. With this tunable qubit–cavity interaction, one may achieve tunable qubit–qubit interaction as the coupling strength of which is determined by the qubit–cavity coupling strengths [18]. However, previous investigations [2026] are based on increasing the complexity of their setups to achieve this tunability, e.g. introduce a SQUID serves as a tunable coupler and thus will inevitably introduce additional noise for the qubits. Moreover, there is no investigation in tunable interaction of superconducting qubits in a cavity.

Here, we propose to directly implement tunable interaction for superconducting qubits from the always-on qubit–cavity interaction in circuit QED. To obtain interaction among qubits, we use the dispersive qubit–cavity interaction together with microwave-fields-induced strong driving. In particular, the obtained coupling strength of the superconducting qubits can be tuned in a continuous way by modulating the phase difference of the effective qubit–cavity interaction. The phases come from the external driving fields which can be tuned individually and thus will provide a simple method towards the tunable interaction of superconducting qubits. The superconducting qubits considered here are flux qubits with three energy levels in effect [2729]. The two driving fields of a qubit compete with the qubit–cavity interaction and lead the whole interaction to a collective form, i.e. collective qubit-states-dependent displacement of the cavity field. In this way, the cavity state traverses cyclically and returns to its original state at some intervals and leaves an geometric phase on the collective states of the involved qubits [3036], which avoids the cooling of the cavity to its exact ground state beforehand and results in high-fidelity operation on the qubits.

Fig. 1
figure 1

Coupling configuration of our proposal. a The Delta type of transition is coupled by the cavity field and two microwave fields. b The effective model of (a) is the circuit QED coupling with driving. c The closed trajectory results from the spin-dependent force with the unit being \(\sqrt{2}\eta /\delta \)

We now turn to our proposal. The superconducting qubits are flux qubits with three energy levels in a Lambda configuration labelled by \(|0\rangle \), \(|1\rangle \) and \(|e\rangle \), as illustrated in Fig. 1a. When the external magnetic flux \(\Phi _e\) pierced through the qubit loop is deviated from the symmetry point with \(f=\Phi _e/\Phi _0=1/2\), the selection rules of the qubit will be broken [27], allowing for the coexistence of one- and two-photon processes, i.e. microwave-induced transitions between any two energy levels are possible. In our implementation, \(\left| 0\right\rangle \) and \(\left| 1\right\rangle \) are encoded as our qubit states, which are coupled with a resonant microwave field with strength \(\Omega \). Here, we choose f to be slightly deviated from 1 / 2, which leads the qubit energy splitting \(\omega _q\) to be in the sub-GHz level [27] and the three levels form a Delta type of transition configuration. In addition, the qubits are capacitively coupled to a one-dimensional superconducting cavity forming the typical circuit QED architecture. The transition \(\left| 0\right\rangle \rightarrow \left| e\right\rangle \) (\(\left| 1\right\rangle \rightarrow \left| e\right\rangle \)) with frequency \(\omega _{e0}\) (\(\omega _{e1}\)) is coupled by a superconducting cavity (a microwave field) with frequency \(\omega _{c}\) (\(\omega _{L}\)) and coupling strength G (\(\Omega _L\)). Then, in units of \(\hbar =1\), the system is described by

$$\begin{aligned} H_{S}= & {} H_0 {+}\sum _{j=1}^{N}\left[ {\Omega _j \over 2} e^{-i \omega _q }|1\rangle \langle 0| {+}G _{j} a|e\rangle \langle 0| + \Omega _{L,j}e^{-i(\omega _L+\phi _j)} |e\rangle \langle 1| + \text {H.c.}\right] ,\qquad \end{aligned}$$
(1)

where \(H_0=\omega _c a^{+} a + \sum _i \omega _i |i\rangle \langle i|\) is the free Hamiltonian where \(a^{+}(a)\) is the creation (annihilation) operator of the cavity field and \(\omega _i\) is the frequency of ith energy level with \(i\in \{0, 1, e\}\). Note that both the \(\left| 0\right\rangle \rightarrow \left| e\right\rangle \) and \(\left| 1\right\rangle \rightarrow \left| e\right\rangle \) couplings are far-off resonant from their transition frequencies so that the excited state \(|e\rangle \) state can be adiabatically eliminated [3739] and thus suppress the influence of the spontaneous emission effect to our implementation. Within the rotating-wave approximation, the interaction Hamiltonian in the interaction picture, with respect to \(H_0\), can be written as

$$\begin{aligned} H_{I}=\sum _{j=1}^{N} {\Omega _j \over 2} \sigma _j^x + 2\eta _{j}\left( a\sigma _{j}^{+}e^{i (\delta _{j} t +\phi _j)}+\text {H.c}.\right) , \end{aligned}$$
(2)

where \(\sigma _{j}^{+}=\left| 1_{j}\right\rangle \left\langle 0_{j}\right| \), \(\sigma _{j}^{-}=\left| 0_{j}\right\rangle \left\langle 1_{j}\right| \), and

$$\begin{aligned} \eta _{j}={G_{j}\Omega _{L,j} \over 2} \left( \frac{1}{\Delta _{j}+\delta _{j}}+\frac{1}{\Delta _{j}}\right) \simeq {G_{j}\Omega _{L,j} \over \Delta _j} \end{aligned}$$
(3)

with \(\Delta _{j}=\omega _{e1,j}-\omega _{L,j}\), \(\delta _{j}=\omega _{01,j}+\omega _{L,j}-\omega _{c}\) and \(\Delta _j \gg \delta _j\). Therefore, we realize the circuit QED system with microwave driving, as shown in Fig. 1b, where the effective cavity-induced coupling \(\eta _j\) can be tuned by the \(\Omega _{L,j}\) and detunings. In addition, the phase factors \(\phi _j\) can be tuned individually.

We next detail our further treatments. Assuming \(\eta _{j}=\eta \) and \(\delta _{j}=\delta \), in the interaction picture with respect to the first term, the interacting Hamiltonian in Eq. (2) reads [30]

$$\begin{aligned} H_{1}= & {} \eta \sum _{j=1}^N \left[ a e^{i(\delta t+\phi _j)} + a^\dagger e^{-i(\delta t+\phi _j)} \right] \sigma _{x}^j\nonumber \\&+\, \eta \sum _{j=1}^N \left[ a e^{i(\delta t+\phi _j)} \left( e^{i\Omega t}|+\rangle _j\langle -| -e^{-i\Omega t}|-\rangle _j\langle +|\right) +\text {H.c.}\right] . \end{aligned}$$
(4)

where \(|\pm \rangle =(|0\rangle \pm |1\rangle )/\sqrt{2}\). In the case of strong driving, \(\Omega \gg \{\delta , \eta \}\), we can omit the fast oscillation terms with frequencies \(\Omega \pm \delta \), i.e. the second line of Hamiltonian (4), and then we obtain

$$\begin{aligned} H_{2}= \eta \sum _{j=1}^N \left[ a e^{i(\delta t+\phi _j)} + a^{\dag } e^{-i(\delta t+\phi _j)} \right] \sigma _j^x, \end{aligned}$$
(5)

which is in the form of spin-dependent dipole force for the cavity field. This force will lead the cavity state to return to its original state periodically in phase space. To see this, we consider the case that only the first qubit is subjected to the force in the xp phase space with \(\phi _1=0\). In this case, the Hamiltonian (5) reduces to

$$\begin{aligned} H_{3}= \sqrt{2} \eta \left[ \cos (\delta t)x- \sin (\delta t)p \right] \sigma ^x, \end{aligned}$$
(6)

where we have defined the dimensionless position and momentum operators, \(x=(a^\dagger +a)/ \sqrt{2}\) and \(p=i(a^\dagger -a)/ \sqrt{2}\). In the phase space, the effect of Hamiltonian (6) is to perform the displacements of

$$\begin{aligned} (x_0, p_0)\rightarrow \left( (x_0+x(t))\sigma ^x, (p_0+p(t))\sigma ^x\right) \end{aligned}$$
(7)

with \(x(t)=\sqrt{2}\eta (1-\cos \delta t)/\delta \) and \(p(t)=\sqrt{2}\eta \sin (\delta t)/\delta \), which entangles the cavity with the qubit. Depending on the spin states \(|\pm \rangle \), the cavity is displaced to form a closed trajectory, see Fig. 1c for \(x_0=p_0=0\). When incorporating many qubit, this spin-dependent force can be used to generate many-body entangled state of the qubits, i.e. introduce nontrivial interaction among qubits. As x(t) and p(t) are both periodical functions, the cavity will return to its original state once \(\delta \tau _n=2n\pi \) with \(n=1,2,3...\), i.e. the evolution is insensitive to the cavity field state, and thus one may expect that it is more robust, which mitigates the thermal limitation of the cavity in engineering quantum states. Therefore, at these time intervals, the net effect of Hamiltonian (5) makes the qubit system pick a geometric phase [40] and leads to fast geometric gate of the qubits.

We next exemplify the nontrivial interaction with \(N=2\). When \(\delta \tau _n=2n\pi \) and \(\phi _j=0\), the induced evolution operator for the Hamiltonian in Eq. (5) is [31]

$$\begin{aligned} U(\theta )= \exp \left( - i \theta \sigma _1^x \sigma _2^x \right) , \end{aligned}$$
(8)

where \(\theta =\uplambda \tau _n \cos \varphi _1\) with \(\uplambda =2\eta ^2/\delta \) and \(\varphi _1=\phi _1-\phi _2\). Therefore, the corresponding effective Hamiltonian of the operator in Eq. (8) is

$$\begin{aligned} H_{4}= \uplambda \cos \varphi _1 \sigma _1^x\sigma _2^x, \end{aligned}$$
(9)

where \(\varphi _1\) can be used to tune the effective coupling strength. However, the effective Hamiltonian only holds for the time intervals of \(\tau _n\). When \(\delta \gg \eta \), the effective Hamiltonian will hold at approximately any time due to the fact that \(\tau _n\) will be much smaller than the time scale of the periodicity of the effective Hamiltonian, which is on the order of \(1/\uplambda \). Therefore, our scheme is faster comparing with previous implementations involving large detuned qubit–cavity interaction.

For an initial state of \(|00\rangle \), governed by the Hamiltonian in Eq. (5), the final state will be a maximally entangled Bell-type state when \(\theta =\pi /4\) as

$$\begin{aligned} |\psi _f\rangle = U\left( {\pi \over 4}\right) |00\rangle ={1 \over \sqrt{2}} (|00\rangle +i|11\rangle ). \end{aligned}$$
(10)

When \(\Omega _{L}=2\pi \times 0.1\) GHz and \(\Delta =10\Omega _{L}\), \(\eta \simeq G /10=2\pi \times 10\) MHz for a moderate cavity-assisted coupling strength of \(G=2\pi \times 0.1\) GHz [12]. When \(\Omega \sim \Delta \), the assumption \(\{\Omega , \Delta \} \gg \delta \) is well satisfied. In order to derive Eq. (5), we have discarded the terms in the second line of Eq. (4), which induce Stark shifts on the states of \(|\pm \rangle _j\). In the above example of generating Bell state, this neglection will introduce an infidelity approximately proportional to \((\eta /\Omega )^2\), which is negligible small for large ratio of \(\Omega /\eta \). In addition, \(\theta =\pi /4\) can be realized by choosing \(\delta = 4 \sqrt{n} \eta \), which further leads to \(\tau _n=\sqrt{n}\pi /(2\eta )\). Therefore, for \(n=1\) (\(\delta = 4 \eta \)), the minimal generation time of the entangled state is \(\tau _1 =\pi /(2\eta )\), which is much faster comparing with the usual large detuning schemes (\(\delta \gg \eta \)).

The performance of the entangling gate in Eq. (8) can be evaluated by considering the influence of dissipation using the quantum master equation of

$$\begin{aligned} \dot{\rho }= i[\rho , H_2] +\frac{\kappa }{2} \mathcal {L}(a) + \sum _{j=1}^2 \left[ \frac{\gamma _1}{2} \mathcal {L}(\sigma ^-_j) + \frac{\gamma _2}{2} \mathcal {L}(\sigma ^\text {z}_j\right] , \end{aligned}$$
(11)

where \(\rho \) is the density matrix of the considered system, \(\mathcal {L}(A)=2A\rho A^\dagger -A^\dagger A \rho -\rho A^\dagger A\) is the Lindblad operator, \(\kappa \), \(\gamma _1\) and \(\gamma _2\) are the decay rate of the cavity, the decay and dephasing rates of the qubits, respectively. Nowadays, these rates can all be on the order of kHz level [12], we choose \(\kappa =\gamma _1=\gamma _2=\eta /1000=2\pi \times 10\) kHz for demonstration purpose. We evaluate this generation by the fidelity defined by \(F=\langle \psi _f|\rho _a|\psi _f\rangle \), with \(\rho _a\) being the reduced density matrix of the qubits from \(\rho \). We plot F with \(n=1\) as a function of dimensionless time \(\eta t/ \pi \) with \(\varphi _1=0\), where we have obtained a high fidelity of 99.6 % for \(\delta =4\eta \) at \(t=\tau _1\) as shown in Fig. 2.

Fig. 2
figure 2

The fidelity dynamics of entangling two qubits as a function of \(\eta t/\pi \) with \(\varphi _1=0\), \(n=1\) and \(\kappa =\gamma _1=\gamma _2=\eta /1000\)

Fig. 3
figure 3

The maximum fidelity of entangling four qubits for different \(m=\gamma /\kappa \) with \(\phi _{j,k}=0\), \(\gamma _1=\gamma _2=\gamma \), \(n=1\) and \(\kappa =\eta /1000\)

We proceed to consider the scalability of the effective Hamiltonian in Eq. (9). For the multi-qubit case, the tunability of the corresponding effective Hamiltonian becomes much more complicated as the Hamiltonian will be in the form of

$$\begin{aligned} H_{5} = \uplambda \sum _{1\le j<k\le N} \cos \phi _{j,k}\sigma _j^x\sigma _k^x, \end{aligned}$$
(12)

where \(\phi _{j,k}=\phi _j-\phi _k\). In this case, one qubit will interact with all the others and we cannot control all the pairs of qubits in a tunable way in a simple form as in Eq. (9). Nevertheless, we can use the induced evolution operator to generate multipartite entangled state [41, 42]. That is, for \(\phi _{j,k}=0\), when \(\delta \tau _n=2n\pi \), the induced evolution operator from Eq. (5) is

$$\begin{aligned} U(\theta )= \exp \left[ - i {\theta \over 2} \left( \sum _{j=1}^N \sigma _j^x\right) ^2 \right] , \end{aligned}$$
(13)

which can be used to generate GHZ states when \(\theta =\pi /4\) [41]. For N=4, we also evaluate the performance of this generation by numerically integrate the quantum master equation, as shown in Fig. 3, where we obtain that the fidelity can be \(F_{max}=99\,\%\) with \(n=1\), \(\gamma _1=\gamma _2=\gamma \) and \(\gamma =\kappa =\eta /1000\). It also shows that with the increase in the qubit decay rate \(\gamma =m\kappa \) the maximum fidelity will decrease linearly. Finally, we also note that, if we consider the scenario that each qubit locates in a cavity and different cavities are coupled to form a coupled chain of cavities [43], the induced effective Hamiltonian will be

$$\begin{aligned} H_{6} = \uplambda ' \sum _{1\le j \le N-1} \cos \phi _{j,j+1}\sigma _j^x\sigma _{j+1}^x, \end{aligned}$$
(14)

which can be universal for quantum computation purpose.

In summary, we have proposed to implement tunable interaction of superconducting flux qubits with cavity-assisted interaction and strong driving. The decay of the excited state of the flux qubits can be greatly suppressed due to the effective large detuning. The implemented interaction is insensitive to the cavity field state and can be controlled by modulating the phase difference of the driving fields of the qubits. In particular, our scheme is based on the typical circuit QED setup and thus will provide a simple method towards the tunable interaction of superconducting qubits. Finally, we consider the generation of entangled states from the tunable interaction under typical decoherence effects and show that high-fidelity entangled state can be obtained.