Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quantum-kittens
GitHub Repository: quantum-kittens/platypus
Path: blob/main/notebooks/ch-quantum-hardware/transmon-physics.ipynb
3855 views
Kernel: Python 3

Introduction to Transmon Physics

1. Multi-level Quantum Systems as Qubits

Studying qubits is fundamentally about learning the physics of two-level systems. One such example of a purely two-level system is the spin of an electron (or any other spin-1/21/2 particle): it can either point up or down, and we label these states 0|0\rangle and 1|1\rangle, respectively. Historically, the reason the 0|0\rangle state is at the "north pole" of the Bloch sphere is that this is the lower-energy state when a magnetic field is applied in the +z^+\hat{z} direction.

Another such two-level system occurs in the first type of superconducting qubit discovered: the Cooper Pair Box. The reason there is no electrical resistance in superconductors is that electrons combine as Cooper pairs, which take energy to break up (and that energy is not available thermally at low temperatures), because they are effectively attracted to each other. This situation is quite counterintuitive, because electrons are both negatively-charged, they should repel each other! However, in many material systems effective interactions can be mediated by collective effects: one can think of the electrons as being attracted to the wake of other electrons in the lattice of positive charge. The Cooper Pair Box consists of a superconducting island that possesses an extra Cooper pair of charge 2e2e (0|0\rangle) or does not (1|1\rangle). These states can be manipulated by voltages on tunnel junctions, and is periodic with "gate" voltage control, so it is indeed a two-level system.

Qubits encoded as charge states are particularly sensitive to charge noise, and this is true of the Cooper Pair Box, which is why it fell out of favor with researchers. Many other quantum systems are not two-level systems, such as atoms that each feature unique spectral lines (energy transitions) that are used by astronomers to determine the composition of our universe. By effectively isolating and controlling just two levels, such as the ground and first excited state of an atom, then you could treat it as a qubit. But what about using other types of superconducting circuits as qubits? The solution to the charge noise problem of the Cooper Pair Box hedged on designing a qubit with higher-order energy levels: the transmon. (The name is derived from transmission-line shunted plasma oscillation qubit). By sacrificing anharmonicity (the difference between the 01|0\rangle \to |1\rangle and 12|1\rangle \to |2\rangle transition frequencies, see section on Accessing Higher Energy States), charge noise is suppressed while still allowing the lowest two levels to be addressed as a qubit. Now the quantum states are encoded in oscillations of Cooper Pairs across a tunnel junction between two superconducting islands, with the excited 1|1\rangle state oscillating at a high frequency than the ground 0|0\rangle.

2. Hamiltonians of Quantum Circuits

The Hamiltonian is a function that equals the total energy of a system, potential and kinetic. This is true in classical mechanics, and the quantum Hamiltonian is found by promoting the variables to operators. By comparing classical Poisson brackets to quantum commutators, it is found that they do not commute, meaning they cannot be observed simultaneously, as in Heisenberg's uncertainty principle.

We'll first consider a linear LCLC circuit, where LL is the inductance and CC is the capacitance. The Hamiltonian is the sum of the kinetic energy (represented by charge variable QQ) and potential energy (represented by flux variable Φ\Phi), H=Q22C+Φ22L \mathcal{H} = \frac{Q^2}{2C} + \frac{\Phi^2}{2L}

Branch-Flux Method for Linear Circuits (click here to expand)

Hamiltonians and Lagrangians are functions involving the energies of massive objects and have a rich history in the dynamics of classical systems. They still serve as a template for "quantizing" objects, including the transmon. The method consists of writing the Lagrangian in terms of generalized coordinate: we will choose a quantity called flux that is defined by the history of voltages, classically one often chooses position in 3-dimensional space. The conjugate variable to our generalized coordinate is then calculated, and will end up being charge in our case (usually momentum in the classical case). By way of a Legendre transformation, the Hamiltonian is calculated, which represents the sum of energies of the system.

The circuit Hamiltonian can be found by considering the capacitative and inductive energies using the branch-flux method, which itself is based on classical Lagrangian mechanics. Defining the flux and charge to be time integrals of voltage and current, respectively, Φ(t)=tV(t)dtandQ(t)=tI(t)dt \Phi(t) = \int_{-\infty}^t V(t')\,dt' \quad {\rm and} \quad Q(t) = \int_{-\infty}^t I(t')\,dt' we will work with flux Φ\Phi as our generalized coordinate, where V(t)V(t') and I(t)I(t') are the voltage and current flowing across the transmon at time tt'. In electric circuits, voltage functions much like potential energy and current like kinetic energy. The instantaneous energy across the transmon at time tt is E(t)=tV(t)I(t)dt. E(t) = \int_{-\infty}^t V(t') I(t')\,dt'. The voltage and current across a capacitor (with capacitance CC) and inductor (with inductance LL), are related to each other by V=LdI/dtV=L dI/dt and I=CdV/dtI = C dV/dt, respectively. In circuits, capacitors store charge and inductors store flux (current). We will work with the flux as our "coordinate" of choice. Then because inductors store flux, the potential energy is represented as UL(t)=tLdI(t)dtI(t)dt=12LI(t)2=12LΦ2becauseΦ(t)=tLdI(t)dtdt=LI(t) U_L(t) = \int_{-\infty}^t L\frac{dI(t')}{dt'} I(t')\, dt' = \frac{1}{2} LI(t)^2 = \frac{1}{2L}\Phi^2 \quad {\rm because} \quad \Phi(t) = \int_{-\infty}^t L \frac{dI(t')}{dt'}\,dt' = LI(t) by integration by parts. Similarly, voltage is the rate of change of flux, so it corresponds to the kinetic energy τC(t)=tCdV(t)dtV(t)dt=12CV(t)2=12CΦ˙2whereΦ˙=dΦdt \tau_C(t) = \int_{-\infty}^t C\frac{dV(t')}{dt'} V(t')\, dt' = \frac{1}{2} CV(t)^2 = \frac{1}{2}C\dot{\Phi}^2 \quad {\rm where} \quad \dot{\Phi} = \frac{d\Phi}{dt} is the common way to denote time derivatives in Lagrangian mechanics. The Lagrangian is defined as the difference between the kinetic and potential energies and is thus L=τCUL=12CΦ˙212LΦ2. \mathcal{L} = \tau_C - U_L = \frac{1}{2} C \dot{\Phi}^2 - \frac{1}{2L} \Phi^2. The dynamics are determined by the Euler-Lagrange equation 0LΦddt(LΦ˙)=ΦL+CΦ¨, 0 \equiv \frac{\partial\mathcal{L}}{\partial\Phi} - \frac{d}{dt} \left(\frac{\partial\mathcal{L}}{\partial\dot{\Phi}}\right) = \frac{\Phi}{L} + C\ddot{\Phi}, which describes a harmonic oscillator in Φ\Phi with angular frequency ω=1/LC\omega = 1/\sqrt{LC} (now two dots corresponds to the second time derivative, Φ¨=d2Φ/dt2\ddot{\Phi} = d^2\Phi/dt^2). However, we wish to move to the Hamiltonian framework and quantize from there. While the conjugate coordinate to flux Φ\Phi is defined by dLdΦ˙=CΦ˙=CVQ \frac{d\mathcal{L}}{d\dot{\Phi}} = C \dot{\Phi} = CV \equiv Q it is exactly the same for charge defined above due to the definition of capacitance. Now, the Hamiltonian is defined in terms of the Lagrangian as H=QΦ˙L\mathcal{H} = Q\dot{\Phi} - \mathcal{L}, and one arrives at the equation above.

3. Quantizing the Hamiltonian

The quantum harmonic oscillator (QHO) is what we get when we quantize the Hamiltonian of an LCLC circuit. Promote the conjugate variables to operators, QQ^Q \to \hat{Q}, ΦΦ^\Phi \to \hat{\Phi}, so that the quantized Hamiltonian is H^=Q^22C+Φ^22L, \hat{H} = \frac{\hat{Q}^2}{2C} + \frac{\hat{\Phi}^2}{2L}, where the "hats" remind us that these are quantum mechanical operators. Then make an association between the Poisson bracket of classical mechanics and the commutator of quantum mechanics via the correspondence {A,B}=δAδΦδBδQδBδΦδAδQ1i[A^,B^]=1i(A^B^B^A^), \{A,B\} = \frac{\delta A}{\delta \Phi} \frac{\delta B}{\delta Q} - \frac{\delta B}{\delta \Phi} \frac{\delta A}{\delta Q} \Longleftrightarrow \frac{1}{i\hbar} [\hat{A},\hat{B}] = \frac{1}{i\hbar}\left(\hat{A}\hat{B} - \hat{B}\hat{A}\right), where the δ\delta's here represent functional derivates and the commutator reflects that the order of operations matter in quantum mechanics. Inserting our variables/operators, we arrive at {Φ,Q}=δΦδΦδQδQδQδΦδΦδQ=10=1[Φ^,Q^]=i. \{\Phi,Q\} = \frac{\delta \Phi}{\delta \Phi}\frac{\delta Q}{\delta Q} - \frac{\delta Q}{\delta \Phi}\frac{\delta \Phi}{\delta Q} = 1-0=1 \Longrightarrow [\hat{\Phi}, \hat{Q}] = i\hbar. This implies, that just like position and momentum, charge and flux also obey a Heisenberg Uncertainty Principle ([x^,p^]=i[\hat{x},\hat{p}] = i\hbar, as well). This means that they are not simultaneous observables, and are in fact, conjugate variables defined in the same way with the same properties. This result has been used over the history of superconducting qubits to inform design decisions and classify the types of superconducting qubits.

The above quantized Hamiltonian is usually written in a friendlier form using the reduced charge n^=Q^/2e\hat{n} = \hat{Q}/2e and phase ϕ^=2πΦ^/Φ0\hat{\phi} = 2\pi\hat{\Phi}/\Phi_0, where Φ0=h/2e\Phi_0 = h/2e is the flux quanta, corresponding to the operators for the number of Cooper pairs and the phase across the Josephson junction, respectively. Then, the quantized Hamiltonian becomes

H^QHO=4Ecn^2+12ELϕ^2,\hat{H}_{\rm QHO}= 4E_c\hat{n}^2 + \frac{1}{2} E_L \hat{\phi}^2,

where Ec=e2/2CE_c = e^2/2C is the charging energy (the 4 in front corresponds to the fact we're dealing with Cooper pairs, not single electrons) and EL=(Φ0/2π)2/LE_L = (\Phi_0/2\pi)^2/L is the inductive energy.

Click to Expand: The Quantum Harmonic Oscillator

The Hamiltonian above represents a simple harmonic oscillator, and taking ϕ^\hat{\phi} as the position variable, then we can define creation and annihilation operators in terms of the zero-point fluctuations of the charge and phase,

n^=inzpf(a^a^)andϕ^=ϕzpf(a^+a^),wherenzpf=(EL32Ec)1/4andϕzpf=(2EcEL)1/4.\hat{n} = i n_{\mathrm zpf}(\hat{a}^\dagger - \hat{a}) \quad \mathrm{and} \quad \hat{\phi} = \phi_{\mathrm zpf}(\hat{a}^\dagger + \hat{a}), \qquad \mathrm{where} \quad n_\mathrm{zpf} = \left( \frac{E_L}{32 E_c} \right)^{1/4} \quad \mathrm{and} \quad \phi_{\mathrm{zpf}} = \left(\frac{2E_c}{E_L}\right)^{1/4}.

The Hamiltonian is then that of a harmonic oscillator,

HQHO=ω(a^a^+12)withω=8ELEc/=1/LC.H_{\mathrm{QHO}} = \hbar \omega \left( \hat{a}^\dagger \hat{a} + \frac{1}{2} \right) \qquad \mathrm{with} \qquad \omega = \sqrt{8 E_L E_c}/\hbar = 1/\sqrt{LC}.

Here we see that the energy spacing of the QHO corresponds to the classical resonance frequency ω=1/LC\omega=1/\sqrt{LC} of an LCLC oscillator.

4. The Quantized Transmon

Making the same variable substitutions as for the QHO, we can rewrite the transmon Hamiltonian in familiar form H^tr=4Ecn^2EJcosϕ^, \hat{H}_{\rm tr} = 4E_c \hat{n}^2 - E_J \cos \hat{\phi}, where the Josephson energy EJ=I0Φ0/2πE_J = I_0\Phi_0/2\pi replaces the inductive energy from the QHO. Note that the functional form of the phase is different from the QHO due to the presence of the Josephson junction instead of a linear inductor. Often n^n^ng\hat{n} \to \hat{n} - n_g to reflect a gate offset charge, but this is not important in the transmon regime. Now we can approach the quantization similarly to the QHO, where we define the creation and annihilation operators in terms of the zero-point fluctuations of charge and phase n^=inzpf(c^c^)andϕ^=ϕzpf(c^+c^),wherenzpf=(EJ32Ec)1/4andϕzpf=(2EcEJ)1/4, \hat{n} = i n_{\mathrm zpf}(\hat{c}^\dagger - \hat{c}) \quad \mathrm{and} \quad \hat{\phi} = \phi_{\mathrm zpf}(\hat{c}^\dagger + \hat{c}), \qquad \mathrm{where} \quad n_\mathrm{zpf} = \left( \frac{E_J}{32 E_c} \right)^{1/4} \quad \mathrm{and} \quad \phi_{\mathrm{zpf}} = \left(\frac{2 E_c}{E_J}\right)^{1/4}, where the Josephson energy EJE_J has replaced the linear inductive energy ELE_L of the QHO. Here we use c^=jj+1jj+1\hat{c} = \sum_j \sqrt{j+1} |j\rangle\langle j+1| to denote the transmon annihilation operator and distinguish it from the evenly-spaced energy modes of a^\hat{a}. Now, noting that ϕ1\phi \ll 1 because in the transmon regime EJ/Ec1E_J/E_c \gg 1, we can take a Taylor expansion of cosϕ^\cos \hat{\phi} to approximate the Hamiltonian H=4Ecnzpf2(c^c^)2EJ(112ϕzpf2(c^+c^)2+124ϕzpf4(c^+c^)4+)8EcEJ(c^c^+12)EJEc12(c^+c^)4, H = -4E_c n_{zpf}^2 (\hat{c}^\dagger - \hat{c})^2 - E_J\left(1 - \frac{1}{2} \phi_{zpf}^2 (\hat{c}^\dagger + \hat{c})^2 + \frac{1}{24} \phi_{zpf}^4(\hat{c}^\dagger+\hat{c})^4 + \ldots \right) \\ \approx \sqrt{8 E_c E_J} \left(\hat{c}^\dagger \hat{c} + \frac{1}{2}\right) - E_J - \frac{E_c}{12}(\hat{c}^\dagger + \hat{c})^4, where it is helpful to observe 8Ecnzpf2=EJϕzpf2=2EcEJ8 E_c n_{\rm zpf}^2 = E_J\phi_{zpf}^2 = \sqrt{2 E_c E_J}. Expanding the terms of the transmon operator c^\hat{c} and dropping the fast-rotating terms (i.e. those with an uneven number of c^\hat{c} and c^\hat{c}^\dagger), neglecting constants that have no influence on transmon dynamics, and defining ω0=8EcEJ\omega_0 = \sqrt{8 E_c E_J} and identifying δ=Ec\delta = -E_c as the transmon anharmonicity, we have H^tr=ω0c^c^+δ2((c^c^)2+c^c^)=(ω0+δ2)c^c^+δ2(c^c^)2 \hat{H}_{\rm tr} = \omega_0 \hat{c}^\dagger \hat{c} + \frac{\delta}{2}\left((\hat{c}^\dagger \hat{c})^2 + \hat{c}^\dagger \hat{c}\right) = \left(\omega_0 + \frac{\delta}{2}\right) \hat{c}^\dagger \hat{c} + \frac{\delta}{2}(\hat{c}^\dagger \hat{c})^2 which is the Hamiltonian of a Duffing oscillator. Defining ωω0+δ\omega \equiv \omega_0+\delta, we see that the transmon levels have energy spacings that each differ by the anharmonicity, as ωj+1ωj=ω+δj\omega_{j+1}-\omega_j = \omega + \delta j, so that ω\omega corresponds to "the frequency" of the transmon qubit (the transition ω1ω0\omega_1-\omega_0). From the definition of the transmon operator, c^c^=jjjj\hat{c}^\dagger \hat{c} = \sum_j j |j\rangle \langle j|, we arrive at H^tr=ωc^c^+δ2c^c^(c^c^1)=j((ωδ2)j+δ2j2)jjjωjjj \hat{H}_{\rm tr} = \omega \hat{c}^\dagger \hat{c} + \frac{\delta}{2} \hat{c}^\dagger \hat{c} (\hat{c}^\dagger \hat{c} - 1) = \sum_j \left(\left(\omega-\frac{\delta}{2}\right)j + \frac{\delta}{2} j^2\right) |j\rangle\langle j| \equiv \sum_j \omega_j |j\rangle \langle j| so that ωj=(ωδ2)j+δ2j2 \omega_j = \left(\omega-\frac{\delta}{2}\right)j + \frac{\delta}{2} j^2 are the energy levels of the transmon.

5. Comparison of the Transmon and the Quantum Harmonic Oscillator

The QHO has even-spaced energy levels and the transmon does not, which is why we can use it as a qubit. Here we show the difference in energy levels by calculating them from their Hamiltonians using QuTiP.

import numpy as np import matplotlib.pyplot as plt E_J = 20e9 w = 5e9 anharm = -300e6 N_phis = 101 phis = np.linspace(-np.pi,np.pi,N_phis) mid_idx = int((N_phis+1)/2) # potential energies of the QHO & transmon U_QHO = 0.5*E_J*phis**2 U_QHO = U_QHO/w U_transmon = (E_J-E_J*np.cos(phis)) U_transmon = U_transmon/w
# import QuTiP, construct Hamiltonians, and solve for energies from qutip import destroy N = 35 N_energies = 5 c = destroy(N) H_QHO = w*c.dag()*c E_QHO = H_QHO.eigenenergies()[0:N_energies] H_transmon = w*c.dag()*c + (anharm/2)*(c.dag()*c)*(c.dag()*c - 1) E_transmon = H_transmon.eigenenergies()[0:2*N_energies]
print(E_QHO[:4]) print(E_transmon[:8])
[0.0e+00 5.0e+09 1.0e+10 1.5e+10] [0.00e+00 1.70e+09 5.00e+09 6.60e+09 9.70e+09 1.12e+10 1.41e+10 1.55e+10]
fig, axes = plt.subplots(1, 1, figsize=(6,6)) axes.plot(phis, U_transmon, '-', color='orange', linewidth=3.0) axes.plot(phis, U_QHO, '--', color='blue', linewidth=3.0) for eidx in range(1,N_energies): delta_E_QHO = (E_QHO[eidx]-E_QHO[0])/w delta_E_transmon = (E_transmon[2*eidx]-E_transmon[0])/w QHO_lim_idx = min(np.where(U_QHO[int((N_phis+1)/2):N_phis] > delta_E_QHO)[0]) trans_lim_idx = min(np.where(U_transmon[int((N_phis+1)/2):N_phis] > delta_E_transmon)[0]) trans_label, = axes.plot([phis[mid_idx-trans_lim_idx-1], phis[mid_idx+trans_lim_idx-1]], \ [delta_E_transmon, delta_E_transmon], '-', color='orange', linewidth=3.0) qho_label, = axes.plot([phis[mid_idx-QHO_lim_idx-1], phis[mid_idx+QHO_lim_idx-1]], \ [delta_E_QHO, delta_E_QHO], '--', color='blue', linewidth=3.0) axes.set_xlabel('Phase $\phi$', fontsize=24) axes.set_ylabel('Energy Levels / $\hbar\omega$', fontsize=24) axes.set_ylim(-0.2,5) qho_label.set_label('QHO Energies') trans_label.set_label('Transmon Energies') axes.legend(loc=2, fontsize=14)
<matplotlib.legend.Legend at 0x7fd009c03f10>
Image in a Jupyter notebook

6. Qubit Drive and the Rotating Wave Approximation

Here we will treat the transmon as a qubit for simplicity, which by definition means there are only two levels. Therefore the transmon Hamiltonian becomes H^0=j=01ωjjj000+ωq11. \hat{H}_0 = \sum_{j=0}^1 \hbar \omega_j |j\rangle \langle j| \equiv 0 |0\rangle \langle 0| + \hbar\omega_q |1\rangle \langle 1|. Since we can add or subtract constant energy from the Hamiltonian without effecting the dynamics, we make the 0|0\rangle and 1|1\rangle state energies symmetric about E=0E=0 by subtracting half the qubit frequency, H^0=(1/2)ωq00+(1/2)ωq11=12ωqσzwhereσz=(1001) \hat{H}_0 = - (1/2)\hbar\omega_q |0\rangle \langle 0| + (1/2)\hbar \omega_q |1\rangle \langle 1| = -\frac{1}{2} \hbar \omega_q \sigma^z \qquad {\rm where} \qquad \sigma^z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} is the Pauli-Z matrix. Now, applying an electric drive field E(t)=E0eiωdt+E0eiωdt\vec{E}(t) = \vec{E}_0 e^{-i\omega_d t} + \vec{E}_0^* e^{i\omega_d t} to the transmon introduces a dipole interaction between the transmon and microwave field. The Hamiltonian is the sum of the qubit Hamiltonian H^0\hat{H}_0 and drive Hamiltonian H^d\hat{H}_d, H^=H^0+H^d. \hat{H} = \hat{H}_0 + \hat{H}_d. Treating the transmon as a qubit allows us to use the Pauli raising/lowering operators σ±=(1/2)(σxiσy)\sigma^\pm = (1/2)(\sigma^x \mp i\sigma^y) that have the effect σ+0=1\sigma^+ |0\rangle = |1\rangle and σ+1=0\sigma^+ |1\rangle = |0\rangle. (Note that this definition reflects that we are using qubit raising/lower operators instead of those for spin. For the reason discussed in Section 1, 0|0\rangle \equiv |\uparrow\rangle and 1|1\rangle \equiv |\downarrow \rangle so the raising and lowering operators are inverted). Now since the field will excite and de-excite the qubit, we define the dipole operator d=d0σ++d0σ\vec{d} = \vec{d}_0 \sigma^+ + \vec{d}_0^* \sigma^-. The drive Hamiltonian from the dipole interaction is then H^d=dE(t)=(d0σ++d0σ)(E0eiωdt+E0eiωdt)=(d0E0eiωdt+d0E0eiωdt)σ+(d0E0eiωdt+d0E0eiωdt)σ(Ωeiωdt+Ω~eiωdt)σ+(Ω~eiωdt+Ωeiωdt)σ \hat{H}_d = -\vec{d} \cdot \vec{E}(t) = -\left(\vec{d}_0 \sigma^+ + \vec{d}_0^* \sigma^-\right) \cdot \left(\vec{E}_0 e^{-i\omega_d t} + \vec{E}_0^* e^{i\omega_d t}\right) \\ = -\left(\vec{d}_0 \cdot \vec{E}_0 e^{-i\omega_d t} + \vec{d}_0 \cdot \vec{E}_0^* e^{i\omega_d t}\right)\sigma^+ -\left(\vec{d}_0^* \cdot \vec{E}_0 e^{-i\omega_d t} + \vec{d}_0^* \cdot \vec{E}_0^* e^{i\omega_d t}\right)\sigma^-\\ \equiv -\hbar\left(\Omega e^{-i\omega_d t} + \tilde{\Omega} e^{i\omega_d t}\right)\sigma^+ -\hbar\left(\tilde{\Omega}^* e^{-i\omega_d t} + \Omega^* e^{i\omega_d t}\right)\sigma^- where we made the substitutions Ω=d0E0\Omega = \vec{d}_0 \cdot \vec{E}_0 and Ω~=d0E0\tilde{\Omega} = \vec{d}_0 \cdot \vec{E}_0^* to describe the strength of the field and dipole. Now we transform to the interaction picture H^d,I=UH^dU\hat{H}_{d,I} = U\hat{H}_dU^\dagger (omitting terms that cancel for simplicity) with U=eiH^0t/=eiωqtσz/2=Icos(ωqt/2)iσzsin(ωqt/2) U = e^{i\hat{H}_0t/\hbar} = e^{-i\omega_q t \sigma^z/2} = I\cos(\omega_q t/2) - i\sigma^z\sin(\omega_q t/2) which can be calculated by noting that σ±σz=(1/2)(σxσziσyσz)=(1/2)(iσy±σx)=±σ±=σzσ±. \sigma^\pm \sigma^z = (1/2) \left(\sigma^x \sigma^z \mp i \sigma^y \sigma^z\right) = (1/2)(-i\sigma^y \pm \sigma^x) = \pm\sigma^\pm = -\sigma^z \sigma^\pm. Then Uσ±U=(Icos(ωqt/2)iσzsin(ωqt/2))σ±(Icos(ωqt/2)+iσzsin(ωqt/2))=σ±(cos(ωqt/2)±isin(ωqt/2))(cos(ωqt/2)±isin(ωqt/2))=σ±(cos2(ωqt/2)±2icos(ωqt/2)sin(ωqt/2)sin2(ωqt/2))=σ±(cos(ωqt)±isin(ωqt))=e±iωqtσ±,U\sigma^\pm U^\dagger = \left(I\cos(\omega_q t/2) - i\sigma^z\sin(\omega_q t/2)\right) \sigma^\pm \left(I\cos(\omega_q t/2) + i\sigma^z\sin(\omega_q t/2)\right) \\ = \sigma^\pm \left( \cos(\omega_q t/2) \pm i\sin(\omega_q t/2)\right) \left(\cos(\omega_q t/2) \pm i\sin(\omega_q t/2) \right) \\ = \sigma^\pm \left( \cos^2(\omega_q t/2) \pm 2i\cos(\omega_q t/2)\sin(\omega_q t/2) - \sin^2(\omega_q t/2)\right) \\ = \sigma^\pm \left( \cos(\omega_q t) \pm i\sin(\omega_q t) \right) = e^{\pm i\omega_q t} \sigma^{\pm}, where we have used the double-angle formula from trigonometry. The transformed Hamiltonian is then H^d,I=UH^dU=(Ωeiωdt+Ω~eiωdt)eiωqtσ+(Ω~eiωdt+Ωeiωdt)eiωqtσ=(ΩeiΔqt+Ω~ei(ωq+ωd)t)σ+(Ω~ei(ωq+ωd)t+ΩeiΔqt)σ \hat{H}_{d,I} = U\hat{H}_dU^\dagger = -\hbar\left(\Omega e^{-i\omega_d t} + \tilde{\Omega} e^{i\omega_d t}\right)e^{i\omega_q t} \sigma^+ -\hbar\left(\tilde{\Omega}^* e^{-i\omega_d t} + \Omega^* e^{i\omega_d t}\right)e^{-i\omega_q t} \sigma^-\\ = -\hbar\left(\Omega e^{i\Delta_q t} + \tilde{\Omega} e^{i(\omega_q+\omega_d) t}\right) \sigma^+ -\hbar\left(\tilde{\Omega}^* e^{-i(\omega_q+\omega_d) t} + \Omega^* e^{-i\Delta_q t}\right) \sigma^- Now we make the rotating-wave approximation: since ωq+ωd\omega_q+\omega_d is much larger than Δq=ωqωd\Delta_q = \omega_q-\omega_d, the terms with the sum in the exponential oscillate much faster, so effectively average out their contribution and we therefore drop those terms from the Hamiltonian. Now the RWA interaction Hamiltonian becomes H^d,I(RWA)=ΩeiΔqtσ+ΩeiΔqtσ \hat{H}_{d,I}^{\rm (RWA)} =-\hbar\Omega e^{i\Delta_q t} \sigma^+ -\hbar \Omega^* e^{-i\Delta_q t} \sigma^- Moving back to the Schrödinger picture, H^d(RWA)=UH^d,I(RWA)U=Ωeiωdtσ+Ωeiωdtσ \hat{H}_{d}^{\rm (RWA)} = U^\dagger \hat{H}_{d,I}^{\rm (RWA)} U = -\hbar\Omega e^{-i\omega_d t} \sigma^+ -\hbar\Omega^* e^{i\omega_d t} \sigma^- so that the total qubit and drive Hamiltonian is H^(RWA)=12ωqσzΩeiωdtσ+Ωeiωdtσ. \hat{H}^{\rm (RWA)} = -\frac{1}{2} \hbar\omega_q \sigma^z -\hbar\Omega e^{-i\omega_d t} \sigma^+ -\hbar\Omega^* e^{i\omega_d t} \sigma^-.

Going into the frame of the drive, using the transformation Ud=exp{iωdtσz/2}U_d = \exp\{-i\omega_d t\sigma^z/2\}, the Hamiltonian becomes H^eff=UdH^(RWA)UdiUdU˙d \hat{H}_{\rm eff} = U_d \hat{H}^{\rm (RWA)} U_d^\dagger - i\hbar U_d \dot{U}_d^\dagger where U˙d=dUd/dt\dot{U}_d = dU_d/dt is the time derivative of UdU_d. Then in the drive frame under the RWA H^eff=12ωqσzΩσ+Ωσ+12ωdσz=12ΔqσzΩσ+Ωσ \hat{H}_{\rm eff} = -\frac{1}{2} \hbar\omega_q \sigma^z -\hbar\Omega \sigma^+ -\hbar\Omega^* \sigma^- + \frac{1}{2} \hbar\omega_d \sigma^z = -\frac{1}{2}\hbar \Delta_q \sigma^z -\hbar\Omega \sigma^+ -\hbar\Omega^* \sigma^- assuming the drive is real so that Ω=Ω\Omega = \Omega^*, this simplifies to H^eff=12ΔqσzΩσx. \hat{H}_{\rm eff} = -\frac{1}{2}\hbar \Delta_q \sigma^z -\hbar\Omega \sigma^x. This shows that when the drive is resonant with the qubit (i.e., Δq=0\Delta_q = 0), the drive causes an xx rotation in the Bloch sphere that is generated by σx\sigma^x with a strength of Ω\Omega. We can see the effect of this on-resonant qubit drive in the finding the frequency of a qubit with spectroscopy section. An off-resonant drive has additional zz rotations generated by the σz\sigma^z contribution, and these manifest themselves as oscillations in a Ramsey experiment.