1. Department of Physics, Fuzhou University, Fuzhou 350116, China
2. Fujian Key Laboratory of Quantum Information and Quantum Optics, Fuzhou University, Fuzhou 350116, China
3. Theoretical Quantum Physics Laboratory, RIKEN Cluster for Pioneering Research, Wako-shi, Saitama 351-0198, Japan
xzhao@fzu.edu.cn
szc2014@yeah.net
xia-208@163.com
Show less
History+
Received
Accepted
Published Online
2025-09-13
2026-01-26
2026-04-14
PDF
(2624KB)
Abstract
We propose a scheme for optimizing two-qubit gate operations in a decoherence-free subspace (DFS) using the gradient ascent pulse engineering (GRAPE) algorithm, where the system consists of nitrogen-vacancy (NV) centers in diamond coupled to a whispering-gallery-mode microresonator. The logical qubits in this scheme are encoded in the DFS, which effectively avoids collective decoherence and provides a long coherence time for high-fidelity quantum operations. The GRAPE algorithm is used to design and optimize the control pulse sequences required for the target operation, thereby compensating for common errors and ensuring that the quantum gate maintains high fidelity under non-ideal conditions. As examples, we successfully implement high-fidelity and robust controlled-phase and SWAP gates. Numerical simulations demonstrate the effectiveness and superiority of the proposed scheme. The strategy of combining encoding protection with optimal control shown in this work can be extended to implement universal quantum gates in complex quantum systems.
High-fidelity quantum computation forms the foundation for realizing cutting-edge technologies such as quantum information processing [1−4], quantum communication [5−8], and quantum sensing [9]. In recent years, research on quantum computation across various physical platforms has achieved remarkable progress in both theoretical and experimental aspects [10−19]. Realizing precise and reliable quantum computation typically requires addressing two main challenges: the decoherence induced by the inevitable interaction between the system and the environment, and the errors arising from the control process [20−22]. Several methods have been developed to overcome these obstacles, e.g., the construction of decoherence-free subspaces (DFSs) [23−29] and quantum optimal control [30−35].
The basic idea of DFS is to exploit the symmetry structure of the interaction between the system and the environment, thereby making quantum operations tolerant to decoherence effects induced by the environment [24]. Schemes for implementing quantum gates within DFS have been proposed in various physical systems, including nuclear magnetic resonance [36, 37], superconducting circuits [38−40], trapped ions [41−43], optical systems [44], and color centers in diamond [45−48]. Among these platforms, the nitrogen-vacancy (NV) centers in diamond are one of the promising candidates due to the superior optical and spin properties [49]. On the one hand, NV centers exhibit long electron spin coherence time even at room temperature, and quantum states can be readily initialized, manipulated, and read out via external laser and microwave fields [50−53]. On the other hand, whispering-gallery-mode (WGM) microcavities feature ultrahigh quality factors and small mode volumes. Coupling WGMs with NV centers can significantly enhance light−matter interactions and thus improve the photon−spin coupling efficiency [54−57], enabling the realization of fast and high-fidelity quantum gates.
In quantum optimal control, driving fields are typically determined via iterative methods to steer the system dynamics towards a predefined objective [58−62]. Until now, various efficient and robust numerical optimization methods have been developed, such as the gradient ascent pulse engineering (GRAPE) algorithm [63], stochastic gradient descent algorithm [64], and the Krotov method [65]. Among these, the GRAPE algorithm is especially notable for its efficiency in finding suitable solutions with fast convergence in parameter space. Compared with traditional analytical pulse designs [66, 67], the GRAPE algorithm is not limited to a specific form of the Hamiltonian and can naturally incorporate parameter constraints and noise models. To address the challenges of unavoidable decoherence and control noise, robust and stochastic GRAPE methods have been introduced [30, 68]. These methods systematically sample the error models and optimize the control pulses based on the performance of these samples, for example, the average fidelity. Such a design allows the resulting control strategies to exhibit high tolerance to frequency drifts, amplitude errors, and decoherence processes. In addition, high-speed GRAPE algorithms that combine parallel computing and GPU-based automatic differentiation make it possible to optimize hundreds of control parameters simultaneously, which greatly improves the efficiency of solving optimization problems in high-dimensional quantum systems [69−71]. Particularly, GRAPE algorithms combined with machine learning, such as those using deep neural networks to assist with initial pulse guesses or to adjust parameters online, can also reduce the dimensionality of the search space [72, 73].
In this work, we propose a scheme to optimize two-qubit gate operations using the GRAPE algorithm within DFS. The system consists of NV centers in diamond coupled to a WGM microresonator. Under large detuning conditions, only couplings between low energy states exist, making the scheme insensitive to the spontaneous emission of the NV centers. By restricting the system dynamics to the DFS, the qubits are protected from collective dephasing and other noise. On this basis, we use the GRAPE algorithm to effectively suppress the impact of systematic errors on quantum gates. Specifically, by optimizing an average objective function that accounts for various uncertainties, such as thermal noise and amplitude errors, the robustness of control can be significantly improved. The advantage of this scheme is that it can automatically search for optimal pulse sequences for any given target quantum gate. As specific applications, we implement robust controlled-phase and SWAP gates in NV centers coupled to a microsphere resonator. The results show that the two-qubit gates designed using this scheme maintain high fidelity even in the presence of thermal noise and amplitude errors.
2 System Hamiltonian
As shown in Fig. 1(a), the system consists of four NV centers in diamond strongly coupled to the WGM of a fused-silica microsphere resonator. Each NV center is placed around the equator of the microsphere to ensure uniform and efficient interaction with the WGM. The energy-level structure of NV centers is shown in Fig. 1(b). The combined symmetry of the electronic and orbital structures determines that the ground state is a spin triplet state . In the absence of a magnetic field, there is a 2.88 GHz energy splitting between the levels and . The Coulomb interaction induces an optical transition between the ground and excited states with an energy gap of 469 THz [74], where the excited states include two spin−orbit doublet states and , two orbital doublet states and , and two spin singlet states and . When the nonaxial crystal strain is much smaller than the spin−orbit splitting, the combined effects of spin−orbit and spin−spin interactions lead to an energy splitting of at least 5.5 GHz between the state and the other excited states [74]. The excited state can decay by radiation of the left and right circular polarizations, with equal probability of jumping to and [75]. In this work, the basis states and of the qubit are encoded in the ground states and of the NV center, respectively. The excited state corresponds to the orbital excited state . In this way, a -type structure is established.
For the -th NV center , the transition between the ground state and the excited state is coupled to the WGM of the microsphere with frequency and coupling strength , as shown in Fig. 1(c). Meanwhile, the transition between the ground state and the excited state is driven by a classical laser field with frequency , phase , and Rabi frequency . The total Hamiltonian of the system can be written as (),
where () is the creation (annihilation) operator for the WGM, is the energy of the -th level of the NV center with , and H.c. denotes the Hermitian conjugate.
When both the coupling strength and the Rabi frequency are much smaller than the detuning , applying the rotating wave approximation and second-order perturbation theory [76], the Hamiltonian in the interaction picture can be written as
with raising operator , effective coupling strength , and effective detuning .
Furthermore, when the laser fields selectively drive the -th and -th NV centers ( and ) and the effective detuning is much larger than the effective coupling strength , the Hamiltonian given by Eq. (2) can be simplified to [77]
with effective Rabi frequency and phase difference . Here, we ignore the Stark shift which can be compensated by laser fields. As a result, by individually modulating the laser fields, it is possible to implement two-qubit gates in the NV centers.
3 Robust optimization of two-qubit gates based on DFS
In the current system, a major source of decoherence is collective decoherence. This type of noise arises since all NV centers are coupled to a shared environment. For example, the frequency of the microsphere resonator may slowly drift due to temperature variations, or the external magnetic field may undergo global fluctuations. Although originating from different sources, these noise processes act in a similar way and can be described by a unified interaction Hamiltonian,
where is the total spin operator in the -direction for the four NV centers. Since all qubits interact with the same environment via the same operator , any phase noise induced by is identical for each eigenstate of . Crucially, the construction of the DFS takes advantage of this symmetry. Therefore, an effective protection strategy can be constructed as long as this collective coupling structure persists.
To mitigate the collective decoherence described by Eq. (4), we can construct a six-dimensional DFS subspace using four NV centers [78]. The basis vectors for this subspace are
Here, the first four basis vectors are selected to encode two logical qubits, which are defined as follows: , , , . The remaining two basis vectors, and , are used as auxiliary states.
After constructing the noise-resistant DFS encoding, we proceed to achieve high-fidelity quantum logic gates within this subspace. As shown in Section 2, by precisely controlling external laser fields, one can induce effective interactions between the -th and -th NV centers, and the effective Hamiltonian in Eq. (3) can be rewritten as
This Hamiltonian describes the selective transition within the subspace formed by the -th and -th qubits.
It should be noted that although a simple pulse with a specific pulse area can achieve target operations, it is highly sensitive to unavoidable parameter errors (e.g., laser power fluctuations), leading to poor gate fidelity. To overcome this difficulty, we employ the GRAPE algorithm to design pulse sequences that are robust against such errors. Within the framework of the GRAPE algorithm, directly optimizing is rather complicated. Therefore, we decompose the Hamiltonian (6) as follows:
where and are defined by
The pulse amplitudes and are the updated parameters in the GRAPE algorithm [79], and they satisfy the constraint .
To optimize these pulse amplitudes, we need to define an objective function that quantifies the robustness of the performance. A straightforward selection of the objective function is as follows:
where we sample the errors, are the normalized weights associated with each sample , and represents the gate fidelity in the presence of a specific error . This fidelity is defined as
Here, and are the target and actual quantum gate at total evolution time in the presence of error , respectively, and represents the projective operator of the DFS on the system Hilbert space. That is, this objective function represents a weighted average fidelity of error samples.
We incorporate the objective function into the robust optimization framework based on the GRAPE algorithm, in which the total evolution time is divided into pulse segments of equal duration , and the control amplitudes and are kept constant during the -th segment, . The key of this algorithm is to iteratively update these control amplitudes by gradient ascent. In the -th iteration, we calculate the gradient of the objective function with respect to each control amplitude. Since is a weighted sum of fidelities over the error samples, its gradient is correspondingly the weighted sum of the individual gradients:
Subsequently, the control amplitudes are updated along the direction of this average gradient to enhance the average fidelity,
where the positive real number is learning rate and determines the step size of each iteration. Through this iterative process, an optimal set of pulse sequences for amplitudes and that actively compensate for the errors is obtained, thereby implementing highly robust target quantum operations.
4 Numerical simulations
In this section, we apply the robust optimal control framework established in the previous section to design two common two-qubit logic gates: the controlled-phase gate and the SWAP gate.
4.1 Controlled-phase gate
We first adopt the robust optimization method to achieve a controlled-phase gate denoted by . Unlike a conventional controlled-phase gate, the gate designed in our model applies an identical geometric phase to the logical basis states and , while keeping and unchanged. The matrix form of in the basis is given by
It should be noted that can be recovered to a conventional controlled-phase gate by performing appropriate local single-qubit operations.
To obtain , we drive the second and third NV centers by laser fields to induce virtual excitation processes between the logical basis states and the auxiliary states. There are two parallel and independent evolution channels during system dynamics, and the effective control Hamiltonian is given by
where the phase difference can be precisely controlled by the laser fields. When the pulse area satisfies , the logical basis states and individually complete a cyclic evolution and thus accumulate an additional phase . According to Eq. (17), we also find that both logical basis states and are not coupled to any states. Therefore, they remain unchanged throughout the entire evolution process.
To make the target gate robust against parameter errors, we then employ the GRAPE algorithm to design the phase difference , and rewrite the effective control Hamiltonian (17) as
where the amplitudes satisfy . By considering uncertainties such as Rabi frequency errors and thermal noise, we numerically solve for the optimal pulse sequences of and . The resulting pulse sequences not only ensure the closure of the evolution path to eliminate the dynamical phase but also effectively compensate for the influence of various systematic errors.
where is the nominal Rabi frequency and the dimensionless parameter indicates the degree of deviation of the actual Rabi frequency from its nominal value. For simplicity, we assume is a constant hereafter.
As shown in Fig. 2, we plot the gate fidelity of the obtained controlled-phase gate as a function of the Rabi frequency error . From the curve corresponding to in which the control pulse parameters are listed in Table 1, it can be seen that even when varies over a wide range of , the fidelity remains above 0.98. In the small range of , the fidelity can exceed 0.9999, demonstrating the excellent robustness of this control scheme against Rabi frequency errors. Note that the fidelity can still reach about 0.84 even when the error is the same as the target Rabi frequency. This results from the specificity of the gate which is a near-identity diagonal operator in the DFS space. Thus, the focus should be on the high-fidelity window (e.g., ) for the gate to demonstrate the effectiveness of the current algorithm in mitigating the error .
In this optimization framework, the control pulse is discretized into time segments. The number of segments is a key parameter affecting the final control performance, as it is crucial for ensuring that the implemented geometric gate automatically cancels the dynamical phase and satisfies the closure of the evolution path. A larger value of provides more degrees of freedom for control, enabling the optimization algorithm to fine-tune the control strategy more meticulously. As a result, the resilience to errors is also enhanced for the system. Figure 2 also displays the trend of the fidelity as a function of the Rabi frequency error for different values of . The results show that the high-fidelity plateau becomes wider as increases. In particular, in the region of small errors, e.g., , the overall fidelity remains at a relatively high level. Note that the peak fidelity slightly shifts from for most , as the current algorithm prioritizes maximizing the average fidelity over the error range, trading the peak performance for a broader plateau. To obtain high fidelity at , a feasible approach is to perform multiple samplings near in the GRAPE algorithm.
Next, we analyze the robustness of the controlled-phase gate against thermal noise. At room temperature, the orientations of nuclear spins are randomly distributed. The perturbations arising from these thermal fluctuations can be treated as a form of thermal noise, which is characterized by slow variations (quasi-static) and can be regarded as constant over a gate operation period [80]. Thermal noise typically limits the coherence time of NV centers to the microsecond scale, but due to its low-frequency nature, it can be effectively suppressed by refocusing techniques such as spin echo [81]. However, this type of noise can still lead to a degradation in the fidelity of quantum gate operations and thus should be considered during the optimization process. As previously discussed, the DFS encoding provides perfect protection against ideal collective decoherence noise. In practice, noise sources may not be perfectly symmetric, leading to compromise the protective capability of the DFS.
Note that the thermal noises acting on the two transitions, and , may not be fully correlated. This asymmetry originates from subtle differences in the environment surrounding each NV center, such as independent fluctuations in local magnetic or electric fields. To more rigorously evaluate the performance of our scheme, we construct an asymmetric noise model where two independent thermal noise strengths, and , are modeled as energy detunings for these two transition channels. The effective noise Hamiltonian can be written as
Figure 3 shows the robustness of the gate fidelity against thermal noise strengths and for different numbers of pulse segments, where the control pulse parameters for are presented in Table 1. We can clearly see a central high-fidelity region where both and are zero. As the number of pulse segments increases, the area of this high-fidelity region expands, and the fidelity distribution within it becomes flatter. Specifically, the region with fidelity above is relatively small for , whereas this high-fidelity region covers almost the entire square parameter space from to when increased to . This result demonstrates that increasing the degrees of control freedom (i.e., increasing ) enables the GRAPE algorithm to find more optimal control solutions that actively compensate for asymmetric noise over a broader range. One can also observe that the fidelity contours is asymmetric with respect to the distribution of thermal noises. The reason can be understood as follows. First, the presence of thermal noises break the symmetry of the system dynamics, causing the optimization to converge on control solutions that compensate for energy shifts asymmetrically. Second, the current algorithm utilizes randomly initial pulses. While the final result converges on the locally optimal solution, the optimization path is influenced by the initial selection, potentially biasing the compensation to be more effective for certain directions of thermal noises. This might also contribute to the asymmetrical feature of the final fidelity curve.
Finally, we compare the performance of the robust optimization strategy proposed in this work with that of nonadiabatic noncyclic geometric quantum computation (NNGQC) [82] for implementing a controlled-phase gate. The NNGQC method leverages the inherent robustness of the geometric phase, providing it with natural resilience against certain types of global noise [82]. The performance of this method is highly dependent on the precise implementation of analytical pulse shapes and is consequently sensitive to deviations in some parameters. In contrast, our GRAPE-based framework is a numerical optimization method that compensates for specific errors by maximizing an objective function that incorporates a range of error samples. As shown in Fig. 4, our method with significantly enhances the gate fidelity over a large error range. Particularly in the small error regime of , it maintains a fidelity greater than , forming a broad high-fidelity plateau. In contrast, the fidelity of the NNGQC scheme deteriorates as the error deviates from zero. The root of this performance difference lies in the fact that our algorithm, by exploring a high-dimensional control space, identifies a flat optimal region that is insensitive to Rabi frequency fluctuations, whereas the analytical solution of NNGQC corresponds to a sharp optimum that is susceptible to parameter variations.
4.2 SWAP gate
The SWAP gate is a common and crucial two-qubit gate to construct complex quantum circuits in quantum computation. The action of the SWAP gate is to exchange the states of two qubits, and its matrix representation in the logical qubit subspace can be represented as
Here, we propose a two-step synthesis scheme that follows the robust optimization framework presented in Section 3 but decomposes the complex task into two more manageable steps.
In the first step, the laser fields selectively act on the first and second NV centers, and on the third and fourth NV centers, respectively. The control Hamiltonian of the system is
It is easy to verify from Eqs. (6) and (24) that the evolution processes driven by the laser fields on the first/second and third/fourth NV centers are mutually independent and do not affect each other. This means that, we can drive the first and second NV centers first, followed by the third and fourth NV centers, without altering the final evolution operator. When , the matrix form for the evolution operator in the basis becomes
To make the evolution operator robust against systematic errors, we employ the robust optimal control framework based on the GRAPE algorithm. Specifically, we set as the target operation in the objective function (11) and search for the optimal time-varying amplitudes and corresponding to the control Hamiltonians and , where
Note that the condition is always met during the evolution process.
Next, the laser field selectively acts on the second and third NV centers, as well as the first and fourth NV centers. The control Hamiltonian of the system then becomes
Similar to the first step, when , the evolution operator in DFS reads
The robust control sequence for the second step is obtained by performing a new, independent round of GRAPE optimization. In this stage, the target operation becomes and we substitute it into the objective function (11). We iteratively update the time-varying amplitudes and for the corresponding control Hamiltonians and ,
to maximize the average fidelity over errors, thereby yielding the optimal pulse sequences. After these two steps, we finally obtain a robust SWAP gate given by
By decomposing the complex SWAP gate task into two more easily controllable and optimizable steps, we provide an alternative pathway for realizing high-fidelity and robust quantum gates. The decomposition strategy demonstrates the flexibility of our optimization framework, allowing a complex task to be broken down into several independently optimizable subtasks to efficiently achieve the overall goal.
To quantitatively evaluate the effectiveness of the designed control strategy, we examine the robustness of the final synthesized gate against Rabi frequency errors, where the actual Rabi frequency is related to the nominal frequency by
Figure 5 shows the fidelity of the gate as a function of the Rabi frequency error in which the control pulse parameters for are listed in Table 2. For the case of (the blue curve), the fidelity remains at a high level () within the error range , and exceeds in a small perturbation range (e.g., ). This demonstrates that the composite SWAP gate obtained through our step-wise optimization exhibits excellent robustness against Rabi frequency errors.
Next, we further investigate the effect of the total number of pulse segments on the robustness of the gate. Here, represents the total length of the control pulse sequence for the entire gate, which is evenly distributed between the two subgates and (i.e., each sub-gate has segments). To systematically evaluate this effect, we also display the fidelity and infidelity of the final composite gate as a function of the error for different pulse segments in Fig. 5.
As shown in Fig. 5, increasing the number of pulse segments can significantly improve the robustness. To be specific, when increases from 10 to 18, the fidelity becomes increasingly flat around , and the error tolerance window for maintaining high fidelity is also significantly broadened. For instance, for (the purple curve), the fidelity forms a near-perfect plateau over the broad range of , demonstrating excellent robustness. The logarithmic figure of infidelity more clearly reveals that the peak fidelity (at ) does not sharply increase with . In particular, for the cases of and , distinct flat structures appear around . This indicates that the optimization algorithm actively compensates for the effects of non-zero errors, trading a slight decrease in peak performance for robust high-fidelity control over a wider parameter tolerance range. Thus, increasing the number of pulse segments for each sub-gate is a key strategy for enhancing the robustness of the final composite gate . A large number of control segments provides a rich parameter space for optimization algorithm, allowing it to discover more refined and complex control strategies to effectively counteract the impact of systematic errors. These results clearly demonstrate that our GRAPE-based optimization strategy is capable of achieving not only a high-fidelity gate but also exhibits excellent robustness against systematic errors.
5 Disscusion
In addition to the GRAPE algorithm, there are currently many other methods for achieving robust quantum gates, such as composite pulse methods [83−85] and the single-shot pulse method [86, 87].
The advantage of composite pulse methods [83−85] lies in the ability to effectively compensate for any systematic errors, including pulse amplitude, pulse duration, and Stark shifts, etc. Therefore, this method holds wide applications in quantum computations. However, as the number of pulses increases, the series expansion of the fidelity with respect to errors becomes overly complex, which may prevent finding a satisfactory set of solutions that are robust to systematic errors.
The single-shot pulse method [86, 87] utilizes perturbation theory, such as the Dyson expansion, to expand the fidelity with respect to noises. The sensitivity to noises can be reduced by properly designing pulse waveforms. The strength of this method is that it confines the complexity of the system to be controlled within a certain range, allowing the use of analytical or geometric approaches to derive pulse waveforms. Nevertheless, robustness against different orders of noises requires to redesign the pulse waveform each time, and the corresponding waveform becomes increasingly complex and unconventional, which may pose challenges for experimental implementation.
The GRAPE algorithm [63] searches for optimal parameters by following the direction that increases the average fidelity. Thus, this method has a very high search efficiency and can obtain local optima in a short period of time. The potential drawback is that it may easily fall into local optima. To address this issue, we employ random initialization of multiple sets of parameters and select random gradient ascent directions for parameter updates, thereby obtaining multiple sets of optimal solutions in parallel. Then, the optimal robust solution is ultimately determined by comparing the robustness of these solutions.
Note that the GRAPE algorithm used in this work differs slightly from the traditional GRAPE algorithm. In the original algorithm [63], to ensure its convergence, the pulse step size is typically chosen to be small such that the first-order approximation remains valid. This directly results in a large number of pulses to be optimized, which in turn affects the rapid convergence of the algorithm. In this work, the pulse step size is designed to be relatively large, satisfying . As a result, only a small number of pulses need to be optimized to achieve robust control, which is more conducive to experimental implementation and faster convergence of the GRAPE algorithm. It is worth emphasizing that the convergence of the current algorithm is ensured through well-designed pulse durations rather than small pulse step sizes.
It is worth noting that the current optimization scheme is designed based on the Hamiltonian (3). Whether the Hamiltonian (3) can well describe the system dynamics of the NV centers coupled the WGM resonator needs to be verified. To this end, we plot in Fig. 6 the time evolution of the fidelity for the controlled-phase gate under using the Hamiltonian (1) and Hamiltonian (3), respectively. In numerical simulations, we adopt the coupling strength to , corresponding to the strong coupling regime accessible in whispering-gallery-mode resonator with high quality factors and small mode volumes [88−90]. We can observe from Fig. 6 that the fidelities of the two curves almost overlap and approach unit at the end of the pulse, demonstrating the validity of this approximation process. It should be mentioned that the two curves deviate during the time evolution, mainly due to the fact that we ignore the Stark shift in the Hamiltonian (3). Under these parameters, the operation time of the controlled-phase gate is approximately 3.5 μs, much shorter than the typical electron spin coherence time of NV centers ( μs) [91]. In addtion, the current scheme only requires a simple square wave, and each segment lasts for 0.875 μs for , which can be easily generated by a waveform generator.
The precise positioning of nanodiamonds and the stability of the cavity (laser field) frequency may be challenging in experiments, leading to the fidelity of quantum gates drops. Note that the deviation of the nondiamond position is reflected in the deviation of the effective Rabi frequency while the shift of the cavity (laser field) frequency will be reflected in the thermal noise in the current model. Thus, the influence of those errors can be indirectly mitigated by increasing pulse segments, since the current GRAPE-based optimization has inherent robustness against such parameter variations and experimental imperfections. In addition, this method can also be extended to multi-qubit registers by cascading cavity-NV modules via optical fibers, and other solid-state emitters with superior optical properties, such as silicon-vacancy (SiV) centers [48, 92].
6 Conclusions
In conclusion, we have proposed a scheme for optimizing quantum gate operations by the GRAPE algorithm within a DFS. This scheme is applied to a system consisting of NV centers in diamond and a WGM microresonator. The advantage of our scheme lies in combining quantum optimal control theory with the protective properties of DFS. Through numerical optimization, we successfully find pulse sequences that can counteract specific errors. As applications, we implement high-fidelity controlled-phase and SWAP gates in a robust manner. The numerical simulation results demonstrate that our designed control pulses can effectively resist quasi-static noise, such as thermal noise and Rabi frequency errors. Furthermore, we have shown that increasing the number of discretized pulse segments is an effective means to enhance the robustness of the gate operations. Therefore, this work offers a promising approach for achieving high-fidelity and robust universal quantum computation in DFS.
C. Monroe, Quantum information processing with atoms and photons, Nature416(6877), 238 (2002)
[2]
C. Weedbrook, S. Pirandola, R. García-Patrón, N. J. Cerf, T. C. Ralph, J. H. Shapiro, and S. Lloyd, Gaussian quantum information, Rev. Mod. Phys.84(2), 621 (2012)
[3]
F. Flamini, N. Spagnolo, and F. Sciarrino, Photonic quantum information processing: A review, Rep. Prog. Phys.82(1), 016001 (2019)
[4]
S. Hawaldar, P. Shahi, A. L. Carter, A. M. Rey, J. J. Bollinger, and A. Shankar, Bilayer crystals of trapped ions for quantum information processing, Phys. Rev. X14(3), 031030 (2024)
[5]
N. Gisin and R. Thew, Quantum communication, Nat. Photonics1(3), 165 (2007)
[6]
K. Azuma, S. E. Economou, D. Elkouss, P. Hilaire, L. Jiang, H. K. Lo, and I. Tzitrin, Quantum repeaters: From quantum networks to the quantum internet, Rev. Mod. Phys.95(4), 045006 (2023)
[7]
P. Zhao, W. Zhong, M. M. Du, X. Y. Li, L. Zhou, and Y. B. Sheng, Quantum secure direct communication with hybrid entanglement, Front. Phys. (Beijing)19(5), 51201 (2024)
[8]
J. W. Ying,Y. B. Sheng,L. Zhou,L. C. Kwek, A world-record achievement in the 100 kilometer practical quantum secure direct communication rate, Front. Phys. (Beijing)20(3), 033401 (2025)
[9]
C. L. Degen, F. Reinhard, and P. Cappellaro, Quantum sensing, Rev. Mod. Phys.89(3), 035002 (2017)
[10]
G. F. Xu, Nonadiabatic holonomic quantum computation based on nitrogen−vacancy centers, Sci. China Phys. Mech. Astron.61(1), 010331 (2018)
[11]
F. Arute, K. Arya, R. Babbush, D. Bacon, J. C. Bardin, et al. Quantum supremacy using a programmable superconducting processor, Nature574(7779), 505 (2019)
[12]
S. McArdle, S. Endo, A. Aspuru-Guzik, S. C. Benjamin, and X. Yuan, Quantum computational chemistry, Rev. Mod. Phys.92(1), 015003 (2020)
[13]
C. Monroe, W. C. Campbell, L. M. Duan, Z. X. Gong, A. V. Gorshkov, P. W. Hess, R. Islam, K. Kim, N. M. Linke, G. Pagano, P. Richerme, C. Senko, and N. Y. Yao, Programmable quantum simulations of spin systems with trapped ions, Rev. Mod. Phys.93(2), 025001 (2021)
[14]
K. Xu, H. J. Zhu, H. Zhu, G. F. Zhang, and W. M. Liu, Charging and self-discharging process of a quantum battery in composite environments, Front. Phys. (Beijing)18(3), 31301 (2023)
[15]
W. Feng, D. Shao, G. Q. Zhang, Q. P. Su, J. X. Zhang, and C. P. Yang, Quantum simulation of Hofstadter butterfly with synthetic gauge fields on two-dimensional superconducting-qubit lattices, Front. Phys. (Beijing)18(6), 61302 (2023)
[16]
B. Cheng, X. H. Deng, X. Gu, Y. He, G. Hu, P. Huang, J. Li, B. C. Lin, D. Lu, Y. Lu, C. Qiu, H. Wang, T. Xin, S. Yu, M. H. Yung, J. Zeng, S. Zhang, Y. Zhong, X. Peng, F. Nori, and D. Yu, Noisy intermediate-scale quantum computers, Front. Phys. (Beijing)18(2), 21308 (2023)
[17]
F. F. Du, X. M. Ren, M. Ma, and G. Fan, Qudit-based high-dimensional controlled-not gate, Opt. Lett.49(5), 1229 (2024)
[18]
Z. G. Fan, X. S. Deng, Q. L. Tan, and F. F. Du, Linear-optics-based high-dimensional quantum gate with qudits, Opt. Lett.50(18), 5771 (2025)
[19]
Z. Y. Xue and C. Y. Ding, Recent advances on nonadiabatic geometric quantum computation, Front. Phys. (Beijing)21(3), 033202 (2026)
[20]
D. Suter and G. A. Álvarez, Colloquium: Protecting quantum information against environmental noise, Rev. Mod. Phys.88(4), 041001 (2016)
[21]
M. Alam and S. Ghosh, Qnet: A scalable and noise-resilient quantum neural network architecture for noisy intermediate-scale quantum computers, Front. Phys. (Lausanne)9, 755139 (2022)
[22]
K. Li, The qubit fidelity under different error mechanisms based on error correction threshold, Front. Phys. (Lausanne)10, 893507 (2022)
[23]
P. Zanardi and F. Rossi, Quantum information in semiconductors: Noiseless encoding in a quantum dot array, Phys. Rev. Lett.81(21), 4752 (1998)
[24]
D. A. Lidar, I. L. Chuang, and K. B. Whaley, Decoherence-free subspaces for quantum computation, Phys. Rev. Lett.81(12), 2594 (1998)
[25]
D. A. Lidar, D. Bacon, and K. B. Whaley, Concatenating decoherence-free subspaces with quantum error correcting codes, Phys. Rev. Lett.82(22), 4556 (1999)
[26]
D. Bacon, J. Kempe, D. A. Lidar, and K. B. Whaley, Universal fault-tolerant quantum computation on decoherence-free subspaces, Phys. Rev. Lett.85(8), 1758 (2000)
[27]
X. Hu, F. Zhang, Y. Li, and G. Long, Optimizing quantum gates within decoherence-free subspaces, Phys. Rev. A104(6), 062612 (2021)
[28]
G. Quiroz, B. Pokharel, J. Boen, L. Tewala, V. Tripathi, D. Williams, L. A. Wu, P. Titum, K. Schultz, and D. Lidar, Dynamically generated decoherence-free subspaces and subsystems on superconducting qubits, Rep. Prog. Phys.87(9), 097601 (2024)
[29]
L. H. C. Vaecairn, J. T. Reilly, J. D. Wilson, S. B. Jäger, and M. Holland, Engineering tunable decoherence-free subspaces with collective atom−cavity interactions, Phys. Rev. A111(3), 033718 (2025)
[30]
S. J. Glaser, U. Boscain, T. Calarco, C. P. Koch, W. K¨ockenberger, R. Kosloff, I. Kuprov, B. Luy, S. Schirmer, T. Schulte-Herbrüggen, D. Sugny, and F. K. Wilhelm, Training Schrödingers cat: Quantum optimal control, Eur. Phys. J. D69(12), 279 (2015)
[31]
J. Li, X. Yang, X. Peng, and C. P. Sun, Hybrid quantum-classical approach to quantum optimal control, Phys. Rev. Lett.118(15), 150503 (2017)
[32]
F. Sauvage and F. Mintert, Optimal control of families of quantum gates, Phys. Rev. Lett.129(5), 050507 (2022)
[33]
R. Wu, Geometric approach to robust quantum control for time-varying noises, Sci. China Phys. Mech. Astron.67(9), 290331 (2024)
[34]
X. Dong, X. Cao, W. L. Li, G. Zhang, Z. Peng, and R. B. Wu, Quantum optimal control theory for the shaping of flying qubits, Phys. Rev. Appl.23(4), 044045 (2025)
[35]
T. Suzuki, Optimal control in nearly adiabatic two-level quantum systems via time-dependent resonance, Phys. Rev. A111(5), L050201 (2025)
[36]
E. M. Fortunato, L. Viola, J. Hodges, G. Teklemariam, and D. G. Cory, Implementation of universal control on a decoherence-free qubit, New J. Phys.4, 5 (2002)
[37]
D. Wei, J. Luo, X. Sun, X. Zeng, M. Zhan, and M. Liu, Realization of a decoherence-free subspace using multiple quantum coherences, Phys. Rev. Lett.95(2), 020501 (2005)
[38]
Z. R. Zhang, C. W. Wu, C. Y. Li, H. Y. Dai, and C. Z. Li, Universal quantum computation in a decoherence-free subspace for collective relaxation with transmon qubits, Phys. Rev. A87(6), 062325 (2013)
[39]
Z. Y. Xue, J. Zhou, and Z. D. Wang, Universal holonomic quantum gates in decoherence-free subspace on superconducting circuits, Phys. Rev. A92(2), 022320 (2015)
[40]
Z. Li, M. J. Liang, and Z. Y. Xue, Time-optimal universal quantum gates on superconducting circuits, Phys. Rev. A108(4), 042617 (2023)
[41]
L. Aolita, L. Davidovich, K. Kim, and H. Häffner, Universal quantum computation in decoherence-free subspaces with hot trapped ions, Phys. Rev. A75(5), 052337 (2007)
[42]
T. Monz, K. Kim, A. S. Villar, P. Schindler, M. Chwalla, M. Riebe, C. F. Roos, H. Häffner, W. Hänsel, M. Hennrich, and R. Blatt, Realization of universal ion-trap quantum computation with decoherence-free qubits, Phys. Rev. Lett.103(20), 200503 (2009)
[43]
P. A. Ivanov, U. G. Poschinger, K. Singer, and F. Schmidt-Kaler, Quantum gate in the decoherence-free subspace of trapped-ion qubits, Europhys. Lett.92(3), 30006 (2010)
[44]
F. F. Du, G. Fan, and X. M. Ren, Kerreffect-based quantum logical gates in decoherence-free subspace, Quantum8, 1342 (2024)
[45]
A. P. Liu, L. Y. Cheng, L. Chen, S. L. Su, H. F. Wang, and S. Zhang, Quantum information processing in decoherence-free subspace with nitrogen-vacancy centers coupled to a whispering-gallery mode microresonator, Opt. Commun.313, 180 (2014)
[46]
F. Wang, Y. Y. Huang, Z. Y. Zhang, C. Zu, P. Y. Hou, X. X. Yuan, W. B. Wang, W. G. Zhang, L. He, X. Y. Chang, and L. M. Duan, Room-temperature storage of quantum entanglement using decoherence-free subspace in a solid-state spin system, Phys. Rev. B96(13), 134314 (2017)
[47]
K. R. Koteswara Rao,D. Suter, Level anticrossings of an NV center in diamond: Decoherence-free subspaces and 3D sensors of microwave magnetic fields, arXiv: 2019)
[48]
G. Fan,H. Z. Niu,Q. L. Tan,F. F. Du, A computation-enhanced high-dimensional quantum gate for silicon-vacancy spins, Adv. Quantum Technol.8(10), 2500167 (2025)
[49]
X. Rong, J. Geng, F. Shi, Y. Liu, K. Xu, W. Ma, F. Kong, Z. Jiang, Y. Wu, and J. Du, Experimental fault-tolerant universal quantum gates with solid-state spins under ambient conditions, Nat. Commun.6(1), 8748 (2015)
[50]
L. Robledo, L. Childress, H. Bernien, B. Hensen, P. F. A. Alkemade, and R. Hanson, High-fidelity projective readout of a solid-state spin quantum register, Phys. Rev. Lett.105, 177403 (2011)
[51]
C. G. Yale, B. B. Buckley, D. J. Christle, G. Burkard, F. J. Heremans, L. C. Bassett, and D. D. Awschalom, All-optical control of a solid-state spin using coherent dark states, Nat. Phys.10, 945 (2014)
[52]
T. J. Wang and C. Wang, Universal hybrid three-qubit quantum gates assisted by a nitrogen-vacancy center coupled with a whispering-gallery-mode microresonator, Phys. Rev. A90(5), 052310 (2014)
[53]
X. Zhang and C. Orphal-Kobin, Coherent microwave, optical, and mechanical quantum control of spin qubits in diamond, Adv. Quantum Technol.8(2), 2300432 (2025)
[54]
P. E. Barclay, K. M. C. Fu, C. Santori, A. Faraon, and R. G. Beausoleil, Hybrid nanocavities for resonant enhancement of color center emission in diamond, Nano Lett.11, 3217 (2011)
[55]
A. Faraon, P. E. Barclay, C. Santori, K. M. C. Fu, and R. G. Beausoleil, Resonant enhancement of the zero-phonon emission from a colour centre in a diamond cavity, Nat. Photonics5(5), 301 (2011)
[56]
S. Johnson, A. Sipahigil, M. D. Lukin, and M. Lončar, Progress in diamond quantum photonics for distributed quantum networks, Prog. Quantum Electron.52, 62 (2017)
[57]
F. F. Du, M. Ma, and Q. Tan, Heralded interconversion between hyperentangled W state and hyperentangled KLM state assisted by nitrogen vacancy centers coupled with microresonators, Sci. Rep.15(1), 2505 (2025)
[58]
P. Doria, T. Calarco, and S. Montangero, Optimal control technique for many-body quantum dynamics, Phys. Rev. Lett.106(19), 190501 (2011)
[59]
P. M. Poggi and D. A. Wisniacki, Optimal control of many-body quantum dynamics: Chaos and complexity, Phys. Rev. A94(3), 033406 (2016)
[60]
S. van Frank, M. Bonneau, J. Schmiedmayer, S. Hild, C. Gross, M. Cheneau, I. Bloch, T. Pichler, A. Negretti, T. Calarco, and S. Montangero, Optimal control of complex atomic quantum systems, Sci. Rep.6(1), 34187 (2016)
[61]
R. Roloff, M. Wenin, and W. Ptz, Optimal control for open quantum systems: Qubits and quantum gates, Phys. Rev. A79, 013819 (2009)
[62]
Y. Chen, Y. Hao, Z. Wu, B. Y. Wang, R. Liu, Y. Hou, J. Cui, M. H. Yung, and X. Peng, Accelerating quantum optimal control through iterative gradient-ascent pulse engineering, Phys. Rev. A108(5), 052603 (2023)
[63]
N. Khaneja, T. Reiss, C. Kehlet, T. Schulte-Herbrüggen, and S. J. Glaser, Optimal control of coupled spin dynamics: Design of NMR pulse sequences by gradient ascent algorithms, J. Magn. Reson.172(2), 296 (2005)
[64]
B. L’eon, F. E. Curtis, and J. Nocedal, Optimization methods for large-scale machine learning, SIAM Rev.60(2), 223 (2018)
[65]
T. C. Kaspar, T. Droubay, and J. E. Jaffe, ZnO/Sn: In2O3 and ZnO/CdTe band offsets for extremely thin absorber photovoltaics, Appl. Phys. Lett.99(26), 263504 (2011)
[66]
L. S. Theis, F. Motzoi, F. K. Wilhelm, and M. Saffman, High-fidelity Rydberg-blockade entangling gate using shaped, analytic pulses, Phys. Rev. A94(3), 032306 (2016)
[67]
T. J. Green, J. Sastrawan, H. Uys, and M. J. Biercuk, Arbitrary quantum control of qubits in the presence of universal noise, New J. Phys.15(9), 095004 (2013)
[68]
L. Gyongyosi and S. Imre, Decentralized base-graph routing for the quantum internet, Phys. Rev. A98(2), 022310 (2018)
[69]
J. R. Johansson, P. D. Nation, and F. Nori, QuTiP2: A Python framework for the dynamics of open quantum systems, Comput. Phys. Commun.184(4), 1234 (2013)
[70]
M. H. Goerz, E. J. Halperin, J. M. Aytac, C. P. Koch, and K. B. Whaley, Robustness of high-fidelity Rydberg gates with single-site addressability, Phys. Rev. A90(3), 032329 (2014)
[71]
N. Leung, M. Abdelhafez, J. Koch, and D. Schuster, Speedup for quantum optimal control from automatic differentiation based on graphics processing units, Phys. Rev. A95(4), 042318 (2017)
[72]
M. Bukov, A. G. R. Day, D. Sels, P. Weinberg, A. Polkovnikov, and P. Mehta, Reinforcement learning in different phases of quantum control, Phys. Rev. X8(3), 031086 (2018)
[73]
M. Y. Niu, S. Boixo, V. N. Smelyanskiy, and H. Neven, Universal quantum control through deep reinforcement learning, npj Quantum Inf.5, 33 (2019)
[74]
M. W. Doherty, N. B. Manson, P. Delaney, F. Jelezko, J¨. Wrachtrup, and L. C. L. Hollenberg, The nitrogen-vacancy colour centre in diamond, Phys. Rep.528(1), 1 (2013)
[75]
E. Togan, Y. Chu, A. S. Trifonov, L. Jiang, J. Maze, L. Childress, M. V. G. Dutt, A. S. Sørensen, P. R. Hemmer, A. S. Zibrov, and M. D. Lukin, Quantum entanglement between an optical photon and a solid-state spin qubit, Nature466(7307), 730 (2010)
[76]
D. F. James and J. Jerke, Effective Hamiltonian theory and its applications in quantum information, Can. J. Phys.85(6), 625 (2007)
[77]
J. Zhou, W. C. Yu, Y. M. Gao, and Z. Y. Xue, Cavity QED implementation of non-adiabatic holonomies for universal quantum gates in decoherence-free subspaces with nitrogen−vacancy centers, Opt. Express23(11), 14027 (2015)
[78]
E. Brion, L. H. Pedersen, K. Mølmer, S. Chutia, and M. Saffman, Universal quantum computation in a neutral-atom decoherence-free subspace, Phys. Rev. A75(3), 032328 (2007)
[79]
Z. C. Shi, J. T. Ding, Y. H. Chen, J. Song, Y. Xia, X. X. Yi, and F. Nori, Supervised learning for robust quantum control in composite-pulse systems, Phys. Rev. Appl.21(4), 044012 (2024)
[80]
E. T. Güldeste and C. Bulutay, Wavelet resolved coherence beating in the Overhauser field of a thermal nuclear spin ensemble, Phys. Rev. B105(7), 075202 (2022)
[81]
S. Lin, C. Weng, Y. Yang, J. Zhao, Y. Guo, J. Zhang, L. Lou, W. Zhu, and G. Wang, Temperature-dependent coherence properties of NV ensemble in diamond up to 600 K, Phys. Rev. B104(15), 155430 (2021)
[82]
M. R. Yun, F. Q. Guo, L. L. Yan, E. Liang, Y. Zhang, S. L. Su, C. X. Shan, and Y. Jia, Parallelpath implementation of nonadiabatic geometric quantum gates in a decoherence-free subspace with nitrogen-vacancy centers, Phys. Rev. A105(1), 012611 (2022)
[83]
B. T. Torosov and N. V. Vitanov, Smooth composite pulses for high-fidelity quantum information processing, Phys. Rev. A83(5), 053420 (2011)
[84]
G. T. Genov, D. Schraft, T. Halfmann, and N. V. Vitanov, Correction of arbitrary field errors in population inversion of quantum systems by universal composite pulses, Phys. Rev. Lett.113(4), 043001 (2014)
[85]
Z. C. Shi, H. N. Wu, L. T. Shen, J. Song, Y. Xia, X. X. Yi, and S. B. Zheng, Robust single-qubit gates by composite pulses in three-level systems, Phys. Rev. A103(5), 052612 (2021)
[86]
A. Ruschhaupt, X. Chen, D. Alonso, and J. G. Muga, Optimally robust shortcuts to population inversion in two-level quantum systems, New J. Phys.14(9), 093040 (2012)
[87]
D. Daems, A. Ruschhaupt, D. Sugny, and S. Guérin, Robust quantum control by a single-shot shaped pulse, Phys. Rev. Lett.111(5), 050404 (2013)
[88]
Y. Zheng, Z. Fang, S. Liu, Y. Cheng, and X. Chen, High-q exterior whispering-gallery modes in a double-layer crystalline microdisk resonator, Phys. Rev. Lett.122(25), 253902 (2019)
[89]
Q. H. Song, Emerging opportunities for ultra-high Q whispering gallery mode microcavities, Sci. China Phys. Mech. Astron.62(7), 074231 (2019)
[90]
N. Acharyya and G. Kozyreff, Large q factor with very small whispering-gallery-mode resonators, Phys. Rev. Appl.12(1), 014060 (2019)
[91]
G. Balasubramanian, P. Neumann, D. Twitchen, M. Markham, R. Kolesov, N. Mizuochi, J. Isoya, J. Achard, J. Beck, J. Tissler, V. Jacques, P. R. Hemmer, F. Jelezko, and J. Wrachtrup, Ultralong spin coherence time in isotopically engineered diamond, Nat. Mater.8(5), 383 (2009)
[92]
A. Sipahigil, K. D. Jahnke, L. J. Rogers, T. Teraji, J. Isoya, A. S. Zibrov, F. Jelezko, and M. D. Lukin, Indistinguishable photons from separated silicon-vacancy centers in diamond, Phys. Rev. Lett.113(11), 113602 (2014)