Analytical two-pulse control of universal single-qubit gates in rotational ultracold NaCs molecules Qi Chen, Hao-Xuan Luo, Jin-Kang Guo, Qian-Qian Hong, Li-Bao Fan, Chuan-Cun Shu Abstract Complex control protocols and sensitivity to experimental imperfections have limited the practical implementation of quantum gate operations. Here, we present an analytical framework for universal single-qubit gates using rotational states of ultracold NaCs molecules. By encoding qubits in the lowest rotational energy levels, we employ a first-order Magnus expansion to derive closed-form unitary evolution from an optimized two-pulse sequence. This approach establishes precise amplitude and phase conditions for arbitrary single-qubit rotations, achieving gate fidelities above 0.9999 in numerical simulations. We further demonstrate that complex multi-gate sequences, including phase-locked operations, can be executed with minimal population leakage into auxiliary states. The time-dependent molecular orientation is shown to faithfully encode both the gate truth table and coherence dynamics, enabling practical gate tomography via weak-field polarization detection. Our analytical method is also applicable to other molecules and physical platforms, offering a potential path to high-fidelity, scalable molecular quantum processors. I Introduction Quantum computing has the potential to overcome the fundamental limits of classical information processing Steane 1998 . The quantum bit (qubit) enables exponentially greater computational capacity than classical bits by leveraging superposition and entanglement Preskill 1998 ; Ladd et al. 2010 . Universal single-qubit gates, which perform arbitrary rotations on the Bloch sphere, are essential for practical quantum algorithms and fault-tolerant architectures Campbell et al. 2017 . Achieving high-fidelity, noise-resilient single-qubit gates remains a key challenge for scalable quantum computing Zhou et al. 2020 . Several physical platforms have been investigated for quantum information processing, including superconducting circuits, semiconductor quantum dots, trapped ions, and neutral atoms. Superconducting circuits are compatible with microfabrication Wendin 2017 ; Gu et al. 2017 ; Krantz et al. 2019 but suffer from finite coherence times Siddiqi 2021 ; Gyenis et al. 2021 ; Ganjam et al. 2024 . Semiconductor quantum dots offer promising integration prospects Maurand et al. 2016 ; Veldhorst et al. 2017 ; Gonzalez-Zalba et al. 2021 yet remain vulnerable to charge noise Yoneda et al. 2018 ; Huang et al. 2018 ; Shehata et al. 2023 . Trapped ions provide excellent coherence Harty et al. 2014 ; Wang et al. 2017 ; Wang et al. 2021 but impose demanding hardware requirements Monroe and Kim 2013 ; Friis et al. 2018 ; Kwon et al. 2024 . Neutral atoms support large-scale arrays Wu et al. 2021 ; Manetsch et al. 2025 ; Wu et al. 2025 and parallel operations Levine et al. 2019 ; Evered et al. 2023 ; M. Farouk et al. 2023 but require sophisticated experimental control Graham et al. 2019 ; Henriet et al. 2020 ; Bluvstein et al. 2024 . Polar molecules present a compelling alternative, leveraging their rich internal structure and permanent electric dipole moments to enable strong, long-range interactions essential for multi-qubit logic gates DeMille 2002 ; Bao et al. 2023 ; Langen et al. 2024 ; Picard et al. 2025 ; Ruttley et al. 2025 . Despite these advantages, developing efficient and precise control protocols for universal single-qubit gates in polar molecules remains challenging. Conventional approaches rely on multiple microwave pulses to achieve arbitrary rotations Langen et al. 2024 . While effective, these methods often incur higher error rates, prolonged gate times, and heightened sensitivity to experimental imperfections—including amplitude fluctuations and dephasing Wang et al. 2012 ; Souza et al. 2011 ; Ezzell et al. 2023 . These limitations can constrain the gate fidelities required for scalable molecular quantum processors Cornish et al. 2024 . In this work, we present an analytical two-pulse control protocol for universal single-qubit gates in ultracold NaCs molecules. Qubits are encoded in the lowest rotational energy levels, and we use a first-order Magnus expansion to derive the unitary evolution from an optimized two-pulse sequence. We establish universality by specifying amplitude and phase conditions that enable arbitrary single-qubit rotations. To assess feasibility, we conduct numerical simulations for ultracold NaCs molecules. Our results show gate fidelities above 0.9999 and demonstrate that complex multi-gate sequences, including phase-locked operations, can be performed with minimal population leakage into auxiliary rotational states. We also analyze the time-dependent evolution of molecular orientation and show that its dynamics provide a direct observable for qubit readout. The remainder of this paper is organized as follows. Section II describes the theoretical framework. Section III presents numerical simulations and discusses the control schemes. Section IV summarizes the principal findings. II Theoretical method II.1 Description of molecular qubit gates Figure 1 (a) shows a pulse sequence applied to ultracold NaCs molecules in the absolute ground state ( X^{1}\Sigma^{+},\nu=0,N=0 ), which have a permanent electric dipole moment \mu_{0}=4.6 D Aymar and Dulieu 2005 and a rotational constant B=0.0631 cm -1 Dagdigian and Wharton 1972 . Accurate modeling typically requires including hyperfine structure from the nuclear spins ( I_{\mathrm{Na}}=3/2 , I_{\mathrm{Cs}}=7/2 ). However, this can be neglected if either (i) the spectral bandwidth of the driving pulse \Delta\omega\sim 1/\sigma_{t} , or (ii) the peak Rabi frequency \Omega_{\mathrm{Rabi}}=\mu_{0}E_{0}/\hbar , exceeds the hyperfine splitting in the N=1 manifold ( \delta_{\mathrm{hfs}}\sim 10 – 50 MHz). The first case applies to broadband, non-selective excitation, while the second corresponds to the strong-drive (Paschen–Back) limit, where the pulse dresses the rotational states and decouples the nuclear spins from molecular rotation. In both regimes, the hyperfine structure is spectrally unresolved, and omitting it introduces negligible error when describing single-photon rotational transitions within the X^{1}\Sigma^{+} state. For linear polarization along the quantization axis, the electric-dipole selection rules are \Delta N=\pm 1 and \Delta M_{N}=0 . Since S=0 in the {}^{1}\Sigma^{+} state, the total angular momentum excluding nuclear spins is \mathbf{J}=\mathbf{N} . The first-order Stark shifts induced by the optical trapping light can be eliminated by setting its polarization at the magic angle \theta^{\prime}\approx 54.7^{\circ} , see details in Appendix A . Figure 1: (a) The schematic describing an ultracold linear polar molecule trapped in the optical tweezer being resonantly controlled by the linearly polarized pulse sequence. A bias magnetic field \vec{B} defines the laboratory z -axis. Control pulses are z -polarized and propagate along the x -axis ( \vec{k}_{C}\parallel\hat{x} ), while the optical tweezer ( \vec{k}_{T}\parallel\hat{y} ) has its polarization oriented at an angle \theta^{\prime} relative to \vec{B} . \vartheta denotes the orientation angle of the molecular axis relative to the z -axis. The qubit is encoded in the rotational subspace \{|0,0\rangle,|1,0\rangle\} . (b) The Bloch representation of a single qubit with arbitrary state \left|\psi\right\rangle and corresponding polar angle \theta and azimuth angle \phi . The corresponding rotational dynamics of the molecule are governed by the Hamiltonian (setting \hbar=1 ): \hat{H}(t)=B\hat{J}^{2}-\mu_{0}\mathcal{E}(t)\cos\vartheta, (1) where the first term represents the field-free rotational Hamiltonian of the diatomic molecule, characterized by the rotational constant B and the angular momentum operator \hat{J}^{2} , with eigenstates |JM\rangle and energies E_{J}=BJ(J+1) . The second term describes the interaction between the permanent dipole moment \mu_{0} and the time-dependent electric field \mathcal{E}(t) , where \vartheta denotes the angle between the molecular axis and the pulse polarization direction. The unitary evolution operator of the molecules in the interaction picture is given by \hat{U}(t,t_{0})=\hat{\mathbb{I}}+i\int_{t_{0}}^{t}\mathrm{d}t^{\prime}\left(e^{i\hat{H}_{0}t^{\prime}}\hat{\mu}\mathcal{E}(t^{\prime})e^{-i\hat{H}_{0}t^{\prime}}\right)\hat{U}(t^{\prime},t_{0}), (2) with the initial condition \hat{U}(t_{0},t_{0})=\hat{\mathbb{I}} , where \hat{\mu}=\mu_{0}\cos\vartheta denotes the molecular dipole operator along the field direction. By considering an J_{\rm{max}} -dimensional Hilbert space of rotational states, the field-free Hamiltonian \hat{H}_{0} in Eq. ( 2 ) can be expressed as \hat{H}_{0}=\sum_{J=0}^{J_{\rm{max}}}\sum_{M=-J}^{J}E_{J}|JM\rangle\langle JM|, (3) and the dipole moment matrix element between the rotational states |JM\rangle and |(J+1)M\rangle is given by \displaystyle\mu_{J,J+1} \displaystyle=\mu_{0}\langle(J+1)M|\cos\vartheta|JM\rangle (4) \displaystyle=\mu_{0}\sqrt{\frac{(J+1)^{2}-M^{2}}{(2J+3)(2J+1)}}. As shown in Fig. 1 (a), the computational qubit states |0\rangle and |1\rangle are encoded in the rotational states |0,0\rangle and |1,0\rangle , respectively, with higher rotational states ( J>1 ) serving as leakage channels. By performing the Z-Y decomposition, the unitary operator for a universal single-qubit gate can be expressed as Nielsen and Chuang 2010 \displaystyle U_{\rm{gate}} \displaystyle=e^{i\alpha}R_{z}(\beta)R_{y}(\gamma)R_{z}(\delta) (5) \displaystyle=e^{i\alpha}\begin{bmatrix}\cos\left(\frac{\gamma}{2}\right)e^{-i\frac{\beta+\delta}{2}}&-\sin\left(\frac{\gamma}{2}\right)e^{-i\frac{\beta-\delta}{2}}\\ \sin\left(\frac{\gamma}{2}\right)e^{i\frac{\beta-\delta}{2}}&\cos\left(\frac{\gamma}{2}\right)e^{i\frac{\beta+\delta}{2}}\end{bmatrix}, where \alpha , \beta , \gamma and \delta are real parameters, and the rotation operators are defined as follows: \displaystyle R_{z}(\beta) \displaystyle=\begin{bmatrix}e^{-i\beta/2}&0\\ 0&e^{i\beta/2}\end{bmatrix}, (6) \displaystyle R_{y}(\gamma) \displaystyle=\begin{bmatrix}\cos\left(\frac{\gamma}{2}\right)&-\sin\left(\frac{\gamma}{2}\right)\\ \sin\left(\frac{\gamma}{2}\right)&\cos\left(\frac{\gamma}{2}\right)\end{bmatrix}. This decomposition establishes a theoretical minimum of three fundamental rotations for the efficient universal implementation of single-qubit gates. In practice, however, direct R_{y} or R_{z} operations may require multiple physical controls, thereby increasing the total number of operations. This work aims to design a pulse sequence that implements the three necessary rotations with minimal physical steps while maintaining high fidelity. II.2 Two-pulse control method Without employing the rotating wave approximation, the effective Hamiltonian in the interaction picture is given by \hat{H}_{I}(t)=-\begin{bmatrix}0&\mu_{01}\mathcal{E}\left(t\right)e^{-i\omega_{01}t}\\ \mu_{10}\mathcal{E}\left(t\right)e^{i\omega_{01}t}&0\end{bmatrix}. (7) To facilitate analytical pulse design, we utilize the first-order Magnus expansion: \hat{U}_{1}^{(1)}(t,t_{0})=\exp\left\{-i\int_{t_{0}}^{t}\mathrm{d}t^{\prime}\hat{H}_{I}(t^{\prime})\right\}. (8) By applying a single pulse \mathcal{E}(t)=\mathcal{E}_{1}(t) , the unitary operator at the target time t_{f} can be written as \hat{U}_{1}^{(1)}(t_{f},t_{0})=\begin{bmatrix}\cos\theta_{1}&i\sin\theta_{1}e^{-i\phi_{1}}\\ i\sin\theta_{1}e^{i\phi_{1}}&\cos\theta_{1}\end{bmatrix}, (9) where \theta_{1}=|\Theta_{1}| and \phi_{1}=\arg[\Theta_{1}] are the modulus and phase of the complex pulse area, respectively, defined as \Theta_{1}=\mu_{01}\int_{t_{0}}^{t_{f}}\mathrm{d}t^{\prime}\,\mathcal{E}_{1}(t^{\prime})e^{i\omega_{01}t^{\prime}}. (10) Eq. ( 9 ) demonstrates how a single control field \mathcal{E}_{1}(t) manipulates the qubit state on the Bloch sphere. Specifically, \theta_{1} determines the rotation angle, and \phi_{1} specifies the rotation axis in the xy -plane, as shown in Fig. 1 (b). Except for the Pauli-X and Y gates, comparing Eq. ( 9 ) and Eq. ( 5 ) shows that a single-pulse operation without spectral phase shaping cannot produce the diagonal phase terms needed for universal single-qubit gates Lee et al. 2017 . To overcome this limitation, we propose a two-pulse control scheme that sequentially applies two distinct pulses \mathcal{E}_{1}(t) and \mathcal{E}_{2}(t) . The combined effect at the final time t_{f} can be described by the unitary operator \hat{U}_{2}^{(1)}=\begin{bmatrix}\cos\theta_{2}&i\sin\theta_{2}e^{-i\phi_{2}}\\ i\sin\theta_{2}e^{i\phi_{2}}&\cos\theta_{2}\end{bmatrix}\begin{bmatrix}\cos\theta_{1}&i\sin\theta_{1}e^{-i\phi_{1}}\\ i\sin\theta_{1}e^{i\phi_{1}}&\cos\theta_{1}\end{bmatrix}, (11) where the rotation angles \theta_{1} ( \theta_{2} ) and \phi_{1} ( \phi_{2} ) correspond to the modulus and phase of the complex pulse area for the first (second) pulse. To simplify experimental calibration and provide a clear geometric interpretation of universal quantum gate synthesis on the Bloch sphere, we set \theta_{1}=\pi/2 as a reference pulse. This reduces Eq. ( 11 ) to \hat{U}_{2}^{(1)}=\begin{bmatrix}\cos\left(\theta_{2}+\frac{\pi}{2}\right)e^{-i\left(\phi_{2}-\phi_{1}\right)}&-\sin\left(\theta_{2}+\frac{\pi}{2}\right)e^{-i(\phi_{1}+\frac{\pi}{2})}\\ \sin\left(\theta_{2}+\frac{\pi}{2}\right)e^{i(\phi_{1}+\frac{\pi}{2})}&\cos\left(\theta_{2}+\frac{\pi}{2}\right)e^{i\left(\phi_{2}-\phi_{1}\right)}\end{bmatrix}. (12) This simplification enhances robustness by suppressing common phase noise through relative phase dependence. Comparing Eqs. ( 12 ) and ( 5 ) reveals that, by properly tuning the parameters \theta_{2} , \phi_{1} , and \phi_{2} , the two-pulse protocol allows for the universal implementation of arbitrary single-qubit unitary operations, up to a global phase. Table 1 summarizes the parameters required to implement key single-qubit gates within the present two-pulse protocol, including the Pauli-Z, Hadamard (H), S, and T gates. Each gate is characterized by its matrix representation and the angular parameters \alpha , \theta_{1} , \phi_{1} , \theta_{2} , and \phi_{2} , which define the necessary physical operations. Differences in these parameters reflect the distinct functions of each gate. For instance, the Pauli-Z gate is obtained by introducing a relative phase between |0\rangle and |1\rangle , while the Hadamard gate requires a different set of pulse parameters to mix the two computational states. The S and T phase gates introduce relative phase shifts of \pi/2 and \pi/4 . Table 1: Parameters for fundamental single-qubit gate implementation. Gate \hat{U}_{\rm{gate}} \alpha \theta_{1} \phi_{1} \theta_{2} \phi_{2} Z \begin{pmatrix}1&0\\ 0&-1\end{pmatrix} -\pi/2 \pi/2 -\pi/2 \pi/2 0 H \begin{pmatrix}\sqrt{2}/2&\sqrt{2}/2\\ \sqrt{2}/2&-\sqrt{2}/2\end{pmatrix} \pi/2 \pi/2 -\pi \pi/4 \pi/2 S \begin{pmatrix}1&0\\ 0&i\end{pmatrix} \pi/4 \pi/2 -5\pi/4 \pi/2 0 T \begin{pmatrix}1&0\\ 0&e^{i\pi/4}\end{pmatrix} \pi/8 \pi/2 -9\pi/8 \pi/2 0 II.3 Pulse design Building on our previous works controlling molecular rotations to engineer quantum superpositions (wavefunctions) within the pulse-area theorem, we now extend this approach to quantum precise control of molecular quantum gates (unitary operators) Hong et al. 2021 ; Fan et al. 2023 ; Hong et al. 2025 ; Fan et al. 2025 ; Hong et al. 2026 ; Yang et al. 2026 . We focus on designing and optimizing the control pulse \mathcal{E}(t) , which consists of two sequential sub-pulses, \mathcal{E}_{1}(t) and \mathcal{E}_{2}(t) , separated by a controllable time delay \tau . In the frequency domain, the Fourier transform of the total field is given by: \int_{t_{0}}^{t_{f}}\mathrm{d}t^{\prime}\,\mathcal{E}(t^{\prime})e^{-i\omega t^{\prime}}=A_{1}(\omega)e^{i\varphi_{1}(\omega)}+A_{2}(\omega)e^{i\varphi_{2}(\omega)}e^{-i\omega\tau}, (13) where A_{i}(\omega) and \varphi_{i}(\omega) denote the spectral amplitude and spectral phase of \mathcal{E}_{i}(t) for i=1,2 , respectively. By evaluating this expression at the transition frequency \omega=\omega_{01} and comparing it with the complex pulse areas defined in Eq. ( 10 ), we obtain the following relations: \displaystyle\theta_{1}e^{-i\phi_{1}} \displaystyle=\mu_{01}A_{1}(\omega_{01})e^{i\varphi_{1}(\omega_{01})}, (14) \displaystyle\theta_{2}e^{-i\phi_{2}} \displaystyle=\mu_{01}A_{2}(\omega_{01})e^{i\varphi_{2}(\omega_{01})}e^{-i\omega_{01}\tau}. These equations establish an explicit mapping between the spectral control parameters—amplitudes A_{1},A_{2} , spectral phases \varphi_{1},\varphi_{2} , and delay \tau —and the gate parameters \theta_{1},\theta_{2},\phi_{1},\phi_{2} required for the qubit operation in Eq. ( 12 ). Based on the mapping in Eq. ( 14 ), we can synthesize the specific control pulses. As an illustrative example, we consider pulses with Gaussian spectral distributions. The phase-locked spectral field is then constructed as: E(\omega)=\sum_{i=1}^{2}a_{i}e^{-\frac{(\omega-\omega_{0})^{2}}{2\Delta\omega^{2}}}e^{i\varphi_{i}(\omega)}e^{-i(\omega-\omega_{0})\tau_{i}}, (15) where the amplitudes are set as a_{i}=\theta_{i}/\mu_{01} , and the central frequency is tuned to resonance, \omega_{0}=\omega_{01} . To implement the target single-qubit gate, we choose the spectral phases and delays for the two pulses as \varphi_{1}(\omega)=-\phi_{1} (with \tau_{1}=0 ) and \varphi_{2}(\omega)=\omega_{01}\tau-\phi_{2} (with \tau_{2}=\tau ), respectively. Performing the inverse Fourier transform on E(\omega) yields the analytical form of the time-dependent control pulses: \mathcal{E}\left(t\right)=\mathcal{E}_{1}e^{-\frac{t^{2}}{2\sigma_{t}^{2}}}\cos\left(\omega_{01}t-\phi_{1}\right)+\mathcal{E}_{2}e^{-\frac{\left(t-\tau\right)^{2}}{2\sigma_{t}^{2}}}\cos\left(\omega_{01}t-\phi_{2}\right), (16) where the electric field amplitudes are given by \mathcal{E}_{1}=\sqrt{2/\pi}\theta_{1}/(\mu_{01}\tau) and \mathcal{E}_{2}=\sqrt{2/\pi}\theta_{2}/(\mu_{01}\tau) . The pulse duration (standard deviation) is related to the spectral bandwidth by \sigma_{t}=1/\Delta\omega . The application of these analytically derived pulses, as specified in Eq. ( 16 ), enables precise implementation of arbitrary single-qubit operations and ensures that the physical system realizes the desired gate with high fidelity. Figure 2: Average gate fidelity F_{\text{av}} versus pulse bandwidth \Delta\omega and phase error \Delta\phi . Simulations are performed using parameters from Table 1 . Lower panels (a, c, e, g) show heatmaps of Pauli-Z, Hadamard, S, and T gates, respectively. The upper panels (b, d, f, h) present the bandwidth-dependent fidelity extracted at zero phase error. II.4 Average gate fidelity To quantify how effectively the implemented unitary operation \hat{U} approximates the target single-qubit gate \hat{U}_{\text{gate}} , we employ the average gate fidelity, defined as Pedersen et al. 2007 F_{\text{av}}=\frac{1}{d(d+1)}\left[\mathrm{Tr}(\hat{M}_{\text{rel}}\hat{M}_{\text{rel}}^{\dagger})+|\mathrm{Tr}(\hat{M}_{\text{rel}})|^{2}\right], (17) where d=2 is the dimension of the single-qubit computational subspace. The matrix \hat{M}_{\text{rel}} characterizes the overlap between the ideal and implemented operations restricted to the computational subspace: \hat{M}_{\text{rel}}=\hat{P}\hat{U}_{\text{gate}}^{\dagger}\hat{U}\hat{P}, (18) where \hat{P} is the projection operator onto the qubit subspace. Since the computational basis states \{|0\rangle,|1\rangle\} effectively form a closed system within the interaction space, we adopt \hat{P}=\hat{\mathbb{I}}_{2\times 2} . Consequently, \hat{M}_{\text{rel}} simplifies to \hat{U}_{\text{gate}}^{\dagger}\hat{U}_{\text{eff}} , where \hat{U}_{\text{eff}} represents the top-left 2\times 2 block of the full evolution operator \hat{U} . This formulation of F_{\text{av}} represents the probability that the implemented gate \hat{U} —which may act on a higher-dimensional Hilbert space ( N>2 )—matches the ideal gate \hat{U}_{\text{gate}} , averaged over all pure qubit input states. An optimal fidelity of F_{\text{av}}=1 indicates perfect gate implementation. III Results and Discussion To facilitate separate analysis of basic gate-level operations and their integration into larger circuits, the following results and discussion are divided into two subsections: simulations with quantum gates and simulations with quantum circuits. III.1 Simulations for quantum gates Figure 3: Average gate fidelity F_{\text{av}} as a function of pulse detuning \Delta and delay-time error \Delta\tau . Numerical simulations are performed for the (a, b) Pauli-Z, (c, d) Hadamard, (e, f) S, and (g, h) T gates. The lower panels (a, c, e, g) show heatmaps of F_{\text{av}} versus \Delta\tau and \Delta , where the detuning \Delta and delay error \Delta\tau are scaled in units of \omega_{01} and \tau , respectively. The upper panels (b, d, f, h) present the corresponding line graphs of F_{\text{av}} versus \Delta extracted at the condition of zero delay time error ( \Delta\tau=0 ). Figure 4: Demonstration of a sequential quantum circuit and state evolution. (a) Schematic of the quantum circuit (lower) and the corresponding time-domain pulse sequence (upper). The circuit initializes the molecule in the |0\rangle state, followed by a Hadamard gate and a sequence of T, S, and Z gates. Pulse colors correspond to their respective logic gates, with t_{i} ( i=\text{H, T, S, Z} ) denoting the end time of each operation. (b) Evolution of the density matrix \rho at each stage of the circuit. The numbers above the bars represent the absolute values of the density matrix elements |\rho_{ij}| , while the colors indicate the phase. All parameters are consistent with the ideal pulse conditions in Fig. 3 . We systematically assess the robustness of the proposed control scheme and the trade-off between gate speed and operational fidelity under realistic conditions by analyzing gate performance with pulse imperfections. We consider cases where both control pulses have identical bandwidth errors ( \Delta\omega ) and phase errors ( \Delta\phi ). The inter-pulse delay is set to \tau=112\tau_{0} (where \tau_{0}=\pi/B is the full revival time) to prevent coherent superposition when pulses share a common frequency. Figure 2 presents the average gate fidelity F_{\text{av}} for the Pauli-Z, Hadamard, S, and T gates as a function of these error parameters. Table 1 provides detailed numerical settings. Figures 2 (a), (c), (e), and (g) show two-dimensional heatmaps of F_{\text{av}} sensitivity across the (\Delta\omega,\Delta\phi) parameter space. Figures 2 (b), (d), (f), and (h) display one-dimensional line cuts at zero phase error ( \Delta\phi=0 ), illustrating the specific impact of pulse bandwidth. For all four gates, F_{\text{av}} decreases as the pulse bandwidth \Delta\omega increases. The fidelity remains high for narrow bandwidths but drops sharply in the large-bandwidth regime. This reduction is due to population leakage and unwanted off-resonant transitions, as excessive bandwidth allows spectral components to couple to channels outside the two-level computational subspace. These results underscore the need for narrow-bandwidth pulses to suppress non-adiabatic leakage and maintain high fidelity. While all gates show similar sensitivity to bandwidth, their responses to phase errors \Delta\phi differ, distinguishing phase gates (Pauli-Z, S, and T) from the Hadamard gate. The phase gates are highly resilient to phase fluctuations, as indicated by the extended high-fidelity regions in Figs. 2 (a), (e), and (g). This resilience results from the scheme’s intrinsic compensation of diagonal phase errors. As shown in Eq. ( 12 ), the net phase accumulation depends on (\phi_{2}+\Delta\phi)-(\phi_{1}+\Delta\phi)=\phi_{2}-\phi_{1} , which cancels any common-mode phase error \Delta\phi . In contrast, the Hadamard gate in Fig. 2 (c) shows rapid fidelity loss as \Delta\phi deviates from zero. This sensitivity arises because the Hadamard operation relies on off-diagonal transitions. While diagonal phase errors are compensated, off-diagonal errors persist throughout the gate evolution, making the Hadamard gate the most vulnerable in the proposed set. To further evaluate the practical viability of the phase-locked control protocol, we analyze its sensitivity to two common experimental imperfections: pulse frequency detuning ( \Delta ) and pulse delay error ( \Delta\tau ), with both pulses affected equally. For these simulations, we use a pulse bandwidth of \Delta\omega=0.1\omega_{01} and a nominal delay of \tau=11.2\tau_{0} . These parameters, chosen based on the optimization landscape in Fig. 2 , balance fast gate operation with suppression of non-adiabatic leakage. Under these optimized conditions, the complete gate operation takes approximately 8 ns, which is seven orders of magnitude shorter than the 250 ms coherence time recently demonstrated for the NaCs lowest two rotational manifolds Park et al. 2023 . This fast operation in time ensures that environmental decoherence is negligible during gate evolution. Figure 3 shows two-dimensional maps of F_{\text{av}} for all four gates across the (\Delta,\Delta\tau) parameter space in the lower panels [Figs. 3 (a), (c), (e), and (g)], and high-resolution line cuts of fidelity decay as a function of detuning \Delta at zero delay error ( \Delta\tau=0 ) in the upper panels [Figs. 3 (b), (d), (f), and (h)]. The contour maps demonstrate strong resilience to time-delay errors. The average fidelity remains above 0.9999 even when \Delta\tau reaches 10% of the nominal pulse interval. This robustness results from the phase-locking mechanism. Unlike conventional schemes, where the relative phase depends on arrival time, our phase-locked pulses maintain coherence across the carrier phase. Provided the pulses are temporally separated to avoid overlap, gate performance is largely unaffected by variations in arrival time. Figure 5: Rotational dynamics and wave packet evolution under the quantum circuit in Fig. 4 . (a) Time-dependent molecular orientation \langle\cos\vartheta\rangle . The color-coded lines correspond to the durations of the H, T, S, and Z gates as defined in Fig. 4(a). Red open circles mark the start and end of each gate operation. (b) Three-dimensional snapshots of the molecular rotational wave packets at the five marked timestamps in (a). The trapezoidal shape of the high-fidelity regions highlights a key trade-off: robustness to detuning depends on the inter-pulse delay. Shorter intervals provide greater tolerance to detuning because, during idle periods, any detuning \Delta acts as a residual longitudinal field and causes a phase error \delta\phi=\Delta\cdot\tau_{\text{idle}} . Reducing the pulse interval limits error accumulation and improves tolerance to detuning. The line graphs in the upper panels show the system’s vulnerability to frequency deviations. Even with short delays, fidelity declines rapidly as \Delta increases, and operational utility drops below the 1% error threshold. There exists a clear distinction between gate types: phase gates are highly sensitive to detuning-induced longitudinal rotations, while the Hadamard gate is more tolerant. The Hadamard operation features significant off-diagonal couplings, which reduce phase errors through dynamical decoupling and make it the most robust against frequency fluctuations. III.2 Simulations for quantum circuits We evaluate the practical performance of the phase-locked control scheme by simulating the sequential execution of a composite quantum circuit. Pulse parameters are set to the optimal, high-fidelity point identified in Fig. 3 . Figure 4 displays the circuit schematic and corresponding real-time state evolution. In Fig. 4 (a), the system is initialized in the ground state |0\rangle . Since phase gates are diagonal and do not alter computational basis populations, a Hadamard gate is first applied to prepare the molecule in a maximally coherent superposition, (|0\rangle+|1\rangle)/\sqrt{2} . The T, S, and Z gates are then applied sequentially to verify precise phase accumulation. The upper panel shows the time-domain pulse sequence, with color coding and vertical alignment corresponding to the logic gates in the circuit schematic. Timestamps t_{\text{H}} , t_{\text{T}} , t_{\text{S}} , and t_{\text{Z}} mark the completion of each operation. Figure 4 (b) shows the evolution of the system’s density matrix \rho . Each bar chart represents the quantum state after a given gate operation. Labels above the bars indicate magnitudes |\rho_{ij}| , and bar colors represent phase values \arg(\rho_{ij}) . After the initial Hadamard gate, all density matrix element magnitudes remain near 0.5 , confirming a balanced superposition with negligible leakage into auxiliary states. The changing bar colors reflect the evolution of the relative phase driven by the sequential T, S, and Z gates. A sudden color “flip” between t_{\text{S}} and t_{\text{Z}} indicates phase wrapping, not a physical discontinuity. When the cumulative phase exceeds +\pi , it is mapped to the [-\pi,\pi] interval (modulo 2\pi ) to match the color bar scale. The cumulative fidelity remains high at 0.9999 throughout. These results demonstrate the scalability and speed of our gating scheme, as well as its potential to support complex, multi-gate quantum logic operations in rotational molecular qubits. Because the molecular qubit comprises a superposition of rotational states |0\rangle and |1\rangle , it forms a rotational wave packet that evolves freely once the control fields are extinguished. This field-free evolution manifests as periodic molecular orientation Koch et al. 2019 ; Mun et al. 2022 ; Hong et al. 2023 . The degree of orientation, quantified by \langle\cos\vartheta\rangle , is typically measured using velocity map imaging Tutunnikov et al. 2020 , ultrafast electron or X-ray diffraction Yang et al. 2016 , coulomb explosion imaging Trippel et al. 2015 , or polarized spectroscopy Renard et al. 2003 . For quantum information applications, weak-field polarization spectroscopy may offer a non-destructive alternative to ionization-based methods Renard et al. 2003 ; Peng et al. 2015 ; Lian et al. 2023 . In this approach, a weak, linearly polarized probe laser passes through the molecular ensemble, and the resulting birefringence rotates the polarization plane by an angle proportional to \langle\cos\vartheta\rangle , the first moment of the angular distribution. This technique allows quantitative extraction of the orientation signal and provides real-time access to both the amplitude and phase of the rotational qubit. For a general superposition state |\psi(t)\rangle=c_{0}(t)|0,0\rangle+c_{1}(t)|1,0\rangle (with M=0 selected by linear excitation), the expectation value evolves as \langle\cos\vartheta\rangle(t)=A\cos(\omega_{01}t-\varphi_{01}), (19) where the oscillation amplitude A=\frac{2\sqrt{3}}{3}|c_{0}||c_{1}| (20) reflects the degree of coherence between the two rotational states, and \varphi_{01}=\arg(c_{1})-\arg(c_{0}) denotes the relative quantum phase. The amplitude reaches its theoretical maximum A_{\max}=\sqrt{3}/3\approx 0.577 for an equatorial superposition ( |c_{0}|=|c_{1}|=1/\sqrt{2} ), vanishing for pure eigenstates. Crucially, any phase shift induced by quantum gate operations translates into a temporal displacement \Delta t=\varphi_{01}/\omega_{01} of the oscillation extrema, enabling direct readout of gate phases without full state reconstruction. Monitoring these polarization dynamics thus permits complete characterization of pure-state qubit evolution and provides a direct diagnostic of single-qubit gate operations. Figure 5 (a) shows the time-resolved evolution of \langle\cos\vartheta\rangle for the gate sequence in Fig. 4 (a). Red hollow circles mark the initial state at t_{0} and the pulse endpoints. Before the Hadamard gate ( t\pi/2 ). IV CONCLUSION AND OUTLOOK We have developed and validated a theoretical framework for implementing universal single-qubit gates using rotational states of ultracold polar molecules. By encoding qubits in the lowest rotational levels of NaCs and employing an optimized two-pulse protocol derived from first-order Magnus expansion, we demonstrate arbitrary single-qubit rotations with fidelities exceeding 0.9999 and negligible leakage into auxiliary states. Our robustness analysis highlights several key points. Phase gates, including Pauli-Z, S, and T, are more resilient to common-mode phase fluctuations than the Hadamard gate due to inherent phase-error compensation. All gates require narrow-bandwidth pulses to minimize leakage. The phase-locked scheme maintains a fidelity above 0.9999 even when delay errors are ten times the nominal interval. There is a trade-off between detuning robustness and inter-pulse delay: shorter intervals improve frequency tolerance by reducing phase-error accumulation, and the Hadamard gate receives additional protection against off-diagonal couplings from dynamical decoupling. Composite circuit simulations show that high fidelity is maintained during sequential multi-gate operations. The Hadamard gate consistently prepares balanced superpositions, whereas phase gates accumulate relative phases without affecting the populations in the computational basis. The molecular orientation degree \langle\cos\vartheta\rangle(t) , measured by weak-field polarization rotation, offers a direct experimental state readout. Regarding experimental feasibility, state-of-the-art techniques have achieved overall rovibronic ground-state preparation with over 31(4)% efficiency Cairncross et al. 2021 , optical tweezer trapping with millisecond coherence times Park et al. 2023 , and microwave-driven transitions with Rabi frequencies above 1 GHz Yoshihara et al. 2014 . The approximately 378 MHz bandwidth requirement matches that of current, mature waveform generators Bardin et al. 2021 , and the phase-locked sequence is consistent with established Ramsey interferometry Cronin et al. 2009 . The large NaCs permanent dipole moment provides strong orientation signals for polarization readout. Integrating optical lattice clock technologies could further enhance coherence through magic-wavelength trapping Borkowski 2018 , while parallel tweezer addressing supports scalable multi-qubit architectures Zhang et al. 2022 ; Picard et al. 2025 . Furthermore, our analytical method is also applicable to other molecules, and therefore this work outlines a clear path toward high-fidelity, scalable molecular quantum information processors with accessible experimental characterization. Acknowledgements. This work was supported by the National Natural Science Foundation of China under Grant No. 12274470. The simulation was conducted using the computing resources of the High Performance Computing Center at Central South University. Appendix A Magic Angle Configuration for Elimination of Tensor Light Shifts In experiments involving optically trapped polar molecules, the AC Stark interaction with the trapping laser introduces state-dependent energy shifts. The shift of a specific sublevel can be decomposed into scalar and tensor contributions: \Delta E=\Delta E_{\text{scalar}}+\Delta E_{\text{tensor}} . While the scalar term shifts all magnetic sublevels equally, the tensor term lifts the degeneracy of the m_{F} states. This differential shift causes inhomogeneous dephasing and limits the coherence time for rotational or hyperfine qubits. To eliminate the tensor contribution, we align the polarization of the linearly polarized trapping field at the ”magic angle” with respect to the quantization axis. As illustrated in Fig. 1 (a), the uniform magnetic bias field \vec{B} defines the quantization z axis for the NaCs molecules. \theta^{\prime} denotes the angle between the trapping electric field vector \vec{\varepsilon}_{T} and the external magnetic field \vec{B} . The tensor term scales with the second-order Legendre polynomial Neyenhuis et al. 2012 ; Zhang et al. 2024 : \Delta E_{\text{tensor}}\propto P_{2}(\cos\theta^{\prime})=\frac{1}{2}(3\cos^{2}\theta^{\prime}-1). The tensor shift vanishes when the geometric pre-factor equals zero. This defines the magic angle condition: 3\cos^{2}\theta_{\text{magic}}-1=0 , and therefore leads to the magic angle \theta_{\text{magic}}=\arccos\left(\frac{1}{\sqrt{3}}\right)\approx 54.74^{\circ}. The optical dipole trap is prepared in a pure linear polarization state using a combination of polarizing optics. A half-wave plate mounted on a precision rotation stage is used to adjust the polarization direction \vec{\varepsilon}_{T} such that \theta^{\prime}=\theta_{\text{magic}} relative to \vec{B} . Experiments have verified the magic angle configuration by performing microwave spectroscopy on the rotational states Neyenhuis et al. 2012 ; Seeßelberg et al. 2018 ; Burchesky et al. 2021 . At the magic angle, the differential light shift between these sublevels is minimized, confirming the suppression of the tensor light shift.