We have investigated the driven dynamics of a superconducting flux qubit that is tunably coupled to a microwave resonator. We find that the qubit experiences an oscillating field mediated by offresonant driving of the resonator, leading to strong modifications of the qubit Rabi frequency. This opens an additional noise channel, and we find that low-frequency noise in the coupling parameter causes a reduction of the coherence time during driven evolution. The noise can be mitigated with the rotary-echo pulse sequence, which, for driven systems, is analogous to the Hahn-echo sequence.Circuit quantum electrodynamics implemented with superconducting artificial atoms and microwave resonators has emerged as a framework for studying on-chip light-matter interactions [1][2][3]. It has enabled a range of experiments including lasing [4], the creation [5][6][7] and detection [8] of arbitrary Fock states, and microwave photon-correlation measurements [9,10]. Microwave resonators also provide a means to couple distant qubits [11,12] and, in this role, have been used to implement quantum algorithms in superconducting circuits [13] and to develop quantum computer architectures [14]. However, the coupling of a qubit to a resonator also influences the qubit coherence, for example by modifying its relaxation rate through the Purcell effect [15].In this work, we study an additional consequence of the resonator by investigating the driven dynamics and the dephasing of a flux qubit [16] that is tunably coupled to a harmonic oscillator [17][18][19][20]. We find that the resonator mediates an indirect driving field that interferes with the direct drive set by the qubit-antenna coupling, thereby modifying both the amplitude and the phase of the net driving field. The tunable coupling allows the indirect driving to be switched off, but it also opens an additional channel for noise to couple into the system. Fluctuations in the coupling parameter translate into effective driving-field amplitude noise, which reduces the qubit coherence during driven evolution. We show that the qubit dephasing due to amplitude noise (whether due to tunable coupling or otherwise) can be mitigated by a rotary echo [21], a pulse sequence originally developed for nuclear magnetic resonance.The device, shown in Fig. 1(a), consists of a flux qubit and a SQUID embedded in a two-mode LC resonant circuit. The diabatic states of the qubit correspond to clockwise or counterclockwise persistent currents in the qubit loop [blue arrow in Fig. 1(a)], with energies controlled by the flux in the loop. The resonator mode of interest is the SQUID plasma mode, depicted by the two red arrows in Fig. 1(a). The SQUID serves dual purposes: it acts as a tunable coupler between the qubit and the resonator, and it is also used as a sensitive magnetometer for qubit read-out [22].We have investigated two devices with similar layouts but slightly different parameters, both made of aluminum. Device A was designed and fabricated at MIT Lincoln Laboratory and device B was designed and fa...