Introduction

Exploiting quantum mechanics and the superposition principle, quantum computers outperform classical computers on certain computationally demanding problems like searching databases1,2, factoring large integers3, quantum simulation and modeling4. Nowadays, much research has been done in traditional parallel quantum computing5,6. Recently, hyper-parallel quantum information processing (QIP) has attracted growing interest7,8 duo to its high capacity encoding, low loss rate, increased security of the communication, and hyper-parallel computing. Quantum conditional gates9,10 or similar logic operations11 are the key components for quantum computing12. Moreover, multi-qubit conditional gates are very useful in quantum error correction13, quantum algorithm14, fault-tolerant quantum circuits15, and quantum network16. Controlled-NOT (CNOT) gate is the most popular universal conditional gate12, i.e., supplemented with one-qubit unitary gates one can perform any quantum computing9. Implementation of multi-qubit Toffoli gate17 or Fredkin gate18 is an important milestone for scalable quantum computer. Therefore, investigation of the hyper-parallel multi-qubit gate will open an avenue in scalable hyper-parallel quantum information processing.

Impressive theoretical and experimental progress has been made and realized in parallel and hyper-parallel CNOT, Toffoli, and Fredkin gates in various physical systems today19,20,21,22,23,24. Photon has been recognized as one of the most popular and promising candidates for parallel and especially hyper-parallel quantum information processing thanks to its available single-qubit operations, low decoherence, faithful transmission of information, and many available qubit-like degrees of freedom (DOFs)25. However, scalability is the main objective for optical computing with current technology due to weak interaction in single-photon level. One approach for achieving this goal is to employ linear optics and photon detectors, and only probabilistic gates with a maximal probability of success 3/4 have been explored19. Another approach is to employ distributed or modular architecture. The emitted solid-state platform can be efficiently configured to mediate photon-photon or spin-spin interaction. Nowadays, the efficient emitted platforms have ranged from natural atoms26 or Rydbery atom ensembles27 to artificial atoms such as QD28,29, diamond nitrogen vacancy defect center30, and superconductor21. The interactions between individual photons and stationary qubits are generally weak, and cavity quantum electrodynamics (QED) are usually exploited to overcome this challenge by confining photons for a long time in a small region31.

Numerous theoretical and experimental achievements about the emitter-based gates have been reported32,33. Recently, quantum dot (QD) inside a microcavity has received much attention because of its μs coherence time34,35, fast QD spin manipulation36, scalability, and optical property. In 2008, Hu et al.28,29 proposed an interesting QD-based emitter, a self-assembled In(Ga)AS QD or GaAs interface QD confined in a resonant microcavity, and such emitter was experimentally demonstrated in 2011 and 2016, respectively37,38. Based on QD-emitter, Bonato et al.39, Deng et al.40, and Wang et al.41 proposed schemes for implementing hybrid, electronic, and photonic quantum computing gate. Other applications such as hyper-parallel universal gates42,43, repeater44, photonic transistor45, router46, entanglement and hyper-entanglement states analysis47, purification and distillation48 and so on have been proposed. The side leakage and the imperfect birefringent propagation of the incident photon, which reduce the fidelity and efficiency of the devices, are not taken into account in above schemes.

Hyperentanglement is a potential resource in QIP, and it can be used for some important applications49. In 2016, Li and Deng50 proposed a scheme for generating error-rejecting Bell states assisted by QD-single-side-cavity platforms. Hyper-parallel CNOT and Toffoli gates with perfect input-output relations have been proposed42,51. In this paper, we propose a deterministic scheme for efficiently implementing self-error-rejecting optical hyper-parallel Toffoli gate on polarization and spatial DOFs, without using any auxiliary polarization DOFs. The imperfect birefringent propagations of the incident photons induced by side leakage and the limited QD-cavity coupling strength are taken into account. Our practical scheme has some characters. First, it is a practical proposal, and the inevitable imperfect performances can be detected by single-photon detectors. Second, the strong coupling limitations can be avoided and the proposal allows low-Q cavities. Third, the near-unity fidelity can be achieved in principle. Fourth, the success of the deterministic scheme can be heralded by the single-photon detectors. Fifth, the efficiency of the scheme can be further improved by repeating the operation processes when the detectors are clicked. Sixth, compared to the traditional one, our proposal reduces the noise effect, operation time, and quantum resources by a half.

Results

The optical property of a QD-microcavity platform

Now we consider a singly charged QD [e.g., a self-assembled in(Ga)As QD or GaAs QD] incorporated into the center of a double-sided optical resonator with tens to hundreds GHz (high speed)29,52. As shown in Fig. 1, the QD is confined in the center of the double-sided microcavity. When an excess electron is injected, a negative charged exciton (X) consisting of two electrons and a hole is created by optical excitation53. Here, both the ground states (the electron spin states) and the excited states (the spin states of the X) are twofold degenerate due to the Kramer’s theorem54,55. There are two spin-dependent transition interacting with circularly polarized lights in QD-doubled-sided unite56 due to the Pauli’s exclusion principle and the conservation of the total spin angular momentum. The s z  = +1 polarized photon (marked by |L〉 and |R〉) and s z  = −1 polarized photon (marked by |L〉 and |R〉) only couple the transition \(|\uparrow \rangle \to |\uparrow \downarrow \Uparrow \rangle \) and \(|\downarrow \rangle \to |\downarrow \uparrow \Downarrow \rangle \), respectively, and then the incident photons are reflected by the cavity. Otherwise, the photons can not couple to the QD and feel the cold cavity (g = 0), and then it is transmitted through the cavity. Upon reflection, both the polarization and the propagation direction of the incident photon will be flipped. Whereas, the spin of the electron remains unchanged upon both the reflection and transmission. Here, |R〉 and |L〉 denote the right- and left-handed circularly polarized light, respectively. The superscripts |↑〉 and |↓〉 of |M〉 and |M〉 indicate the propagation direction of the M-polarized photon parallel and antiparallel to the z axis (the growth and optical axis). \(|\Uparrow \rangle \) and \(|\Downarrow \rangle \) represent the heavy-hole spin states with \(|\pm \frac{3}{2}\rangle \), respectively. |↑〉 and |↓〉 represent the electron spin states with \(|\pm \frac{1}{2}\rangle \), respectively.

Figure 1
figure 1

(a) A schematic diagram of the quantum dot-cavity coupled system. (b) Schematic description of the spin-dependent optical transition rules. |L〉 (|L〉) and |R〉 (|R〉) represent the left- and right-handed circularly polarized photons parallelled (antiparallelled) with the growth axis, respectively. |↑〉 and |↓〉 represent the electron spin states with \(|\pm \frac{1}{2}\rangle \), respectively. \(|\Uparrow \rangle \) and \(|\Downarrow \rangle \) represent the heavy-hole spin states with \(|\pm \frac{3}{2}\rangle \), respectively.

The reflection and the transmission coefficients of double-sided cavity can be obtained from the Heisenberg equations of motion for the cavity field operator \(\hat{a}\), the (X) dipole operator σ and the input-output relations between the output fields \({\hat{a}}_{r}\), \({\hat{a}}_{t}\), and the input fields \({\hat{a}}_{in}\), \({\hat{a}^{\prime} }_{in}\)57,

$$\begin{array}{rcl}\frac{d\hat{a}}{dt} & = & -[i({\omega }_{c}-\omega )+\kappa +\frac{{\kappa }_{s}}{2}]\,\hat{a}-{\rm{g}}{\sigma }_{-}-\sqrt{\kappa }\,{\hat{a}}_{in}-\sqrt{\kappa }\,{\hat{a}^{\prime} }_{in}+\hat{H},\\ \frac{d{\sigma }_{-}}{dt} & = & -[i({\omega }_{{X}^{-}}-\omega )+\frac{\gamma }{2}]\,{\sigma }_{-}-{\rm{g}}{\sigma }_{z}\hat{a}+\hat{G},\\ {\hat{a}}_{r} & = & {\hat{a}}_{in}+\sqrt{\kappa }\,\hat{a},\\ {\hat{a}}_{t} & = & {\hat{a}^{\prime} }_{in}+\sqrt{\kappa }\,\hat{a}.\end{array}$$
(1)

where ω, ω c , and \({\omega }_{{X}^{-}}\) denote the frequencies of the external field (probe photon), the cavity mode, and the X transition, respectively. g denotes the cavity coupling strength between X and cavity mode. γ/2, κ, and κ s /2 denote the decay rates of the X dipole, the cavity field, and the leaky mode (side leakage), respectively. \(\hat{H}\) and \(\hat{G}\) are the noise operators.

In the approximation of a weak excitation condition with (X) predominantly staying in the ground state, and taking 〈σ z 〉 ≈ −1 and \({\sigma }_{z}\hat{a}=-\hat{a}\), one can find that the reflection and the transmission coefficients of the (X) cavity system can be expressed as29,58,

$$r(\omega )=1+t(\omega ),\quad t(\omega )=\frac{-\kappa \,[i({\omega }_{{X}^{-}}-\omega )+\frac{\gamma }{2}]}{[i({\omega }_{{X}^{-}}-\omega )+\frac{\gamma }{2}]\,[i({\omega }_{c}-\omega )+\kappa +\frac{{\kappa }_{s}}{2}]+{{\rm{g}}}^{2}}.$$
(2)

For convenience to discussions, we consider the cavity mode is resonant with optical transition of the QD, i.e., \({\omega }_{c}={\omega }_{{X}^{-}}={\omega }_{0}\), and then the interaction between the incident photon and the cavity can be summarized as

$$\begin{array}{ll}|{R}^{\uparrow }\uparrow \rangle \to r|{L}^{\downarrow }\uparrow \rangle , & |{L}^{\downarrow }\uparrow \rangle \to r|{R}^{\uparrow }\uparrow \rangle ,\\ |{R}^{\uparrow }\downarrow \rangle \to {t}_{0}|{R}^{\uparrow }\downarrow \rangle , & |{L}^{\downarrow }\downarrow \rangle \to {t}_{0}|{L}^{\downarrow }\downarrow \rangle ,\\ |{R}^{\downarrow }\downarrow \rangle \to r|{L}^{\uparrow }\downarrow \rangle , & |{L}^{\uparrow }\downarrow \rangle \to r|{R}^{\downarrow }\downarrow \rangle ,\\ |{R}^{\downarrow }\uparrow \rangle \to {t}_{0}|{R}^{\downarrow }\uparrow \rangle , & |{L}^{\uparrow }\uparrow \rangle \to {t}_{0}|{L}^{\uparrow }\uparrow \rangle .\end{array}$$
(3)

However, in the practical working, the imperfect birefringence of the cavity, caused by the nonzero photon bandwidth, the mismatch and the finite coupling rate between the photon and the cavity mode, makes Eq. (3) changed as

$$\begin{array}{ll}|{R}^{\uparrow }\uparrow \rangle \to r|{L}^{\downarrow }\uparrow \rangle +t|{R}^{\uparrow }\uparrow \rangle , & |{L}^{\downarrow }\uparrow \rangle \to r|{R}^{\uparrow }\uparrow \rangle +t|{L}^{\downarrow }\uparrow \rangle ,\\ |{R}^{\uparrow }\downarrow \rangle \to {t}_{0}|{R}^{\uparrow }\downarrow \rangle +{r}_{0}|{L}^{\downarrow }\downarrow \rangle , & |{L}^{\downarrow }\downarrow \rangle \to {t}_{0}|{L}^{\downarrow }\downarrow \rangle +{r}_{0}|{R}^{\uparrow }\downarrow \rangle ,\\ |{R}^{\downarrow }\downarrow \rangle \to r|{L}^{\uparrow }\downarrow \rangle +t|{R}^{\downarrow }\downarrow \rangle , & |{L}^{\uparrow }\downarrow \rangle \to r|{R}^{\downarrow }\downarrow \rangle +t|{L}^{\uparrow }\downarrow \rangle ,\\ |{R}^{\downarrow }\uparrow \rangle \to {t}_{0}|{R}^{\downarrow }\uparrow \rangle +{r}_{0}|{L}^{\uparrow }\uparrow \rangle , & |{L}^{\uparrow }\uparrow \rangle \to {t}_{0}|{L}^{\uparrow }\uparrow \rangle +{r}_{0}|{R}^{\downarrow }\uparrow \rangle .\end{array}$$
(4)

Here the reflection coefficient r (r0) and the transmission coefficient t (t0) are described by Eq. (2) with g ≠ 0 (g = 0).

In the following, we introduce our practical proposal for implementing emission-based three-photon hyper-parallel controlled-controlled-phase-flip gate, step by step. It is known that Toffoli gate is equivalent to the controlled-controlled-phase-flip gate upon to two Hadamard gates acting on the target qubit.

Three-photon Toffoli gate acting on polarization DOF

Let us first introduce the performance of the key building block in our scheme. As shown in Fig. 2(a), the circularly polarizing beam splitter, PBS1, transmits the input R-polarized wave packet into spatial mode k1 and reflects the L-polarized wave packet into spatial mode i1. Before and after the wave packets emitted from spatial mode k1 and k2 interact with the QD, Hadamard operations are performed on the spatial mode and the polarized mode respectively. The performance of the polarized- (spatial-) Hadamard operation can be written as

$$H=\frac{1}{\sqrt{2}}\,(\begin{array}{ll}1 & 1\\ 1 & -1\end{array}).$$
(5)

in the basis {|R〉, |L〉} ({|k1〉, |k2〉}). Here, the spatial- and polarized- Hadamard transformation, H s and H p , can be implemented by using a nonpolarizing beam splitter (BS) and a half wave plate oriented at 22.5°, respectively. Therefore, operations (PBS1 → BS → Hp1, Hp2 → QD → Hp1, Hp2 → BS) make the joint state

$$|{\varphi }_{1}\rangle =(\alpha |R\rangle +\beta |L\rangle )\,(\gamma |\uparrow \rangle +\delta |\downarrow \rangle )$$
(6)

become

$$\begin{array}{rcl}|{\varphi }_{2}\rangle & = & \alpha \gamma (r+{t}_{0})|{R}^{{k}_{1}}\rangle |\uparrow \rangle +\alpha \gamma (t-{t}_{0})|{L}^{{k}_{2}}\rangle |\uparrow \rangle +\alpha \delta (r+{t}_{0})|{R}^{{k}_{1}}\rangle |\downarrow \rangle \\ & & -\alpha \delta (t-{t}_{0})|{L}^{{k}_{2}}\rangle |\downarrow \rangle +\beta \gamma |{L}^{{i}_{1}}\rangle |\uparrow \rangle +\beta \delta |{L}^{{i}_{1}}\rangle |\downarrow \rangle .\end{array}$$
(7)
Figure 2
figure 2

A schematic diagram for implementing a polarized-Toffoli gate assisted by double-sided microcavities. PBS j (j = 1, …, 13), a circularly polarizing beam splitter, which is used to transmit the R-polarized wave packets and reflect the L-polarized wave packets. BS j (j = 1, … 5), balanced nonpolarizing beam splitter, transforms the input modes as \({k}_{1}\to ({k}_{1}+{k}_{2})/\sqrt{2}\), \({k}_{2}\to ({k}_{1}-{k}_{2})/\sqrt{2}\). VBS j (j = 1, …, 6), an adjustable beam splitter with transmission coefficient t − t0 and reflection coefficient \(\sqrt{1-{(t-{t}_{0})}^{2}}\). D i (i = 1, 2, …, 11), a single photon detector. H pj (j = 1, 2, …, 14) represents a Hadamard operation on polarization, and it can be completed by using a half wave plate rotating at 22.5°. X j (j = 1, 2, …, 5) represents a bit-flip operation on polarization, and it can completed by using a half wave plate rotating at 45°.

Subsequently, the bit-flip operation X, which can be implemented by using a half wave plate oriented at 45°, is performed on the wave packet emitted from the spatial mode k2. The wave packet emitted from the spatial mode i1 passes through the adjustable beam splitter, VBS, with transmission coefficient t − t0 and reflection coefficient \(\sqrt{1-{(t-{t}_{0})}^{2}}\). And then, the wave packets emitted from the spatial mode k2 and j2 arrive at PBS2, simultaneously. Therefore, X, VBS, and PBS2 make Eq. (7) changed as

$$\begin{array}{rcl}|{\varphi }_{3}\rangle & = & \alpha \gamma (t-{t}_{0})|{R}^{{k}_{2}}\rangle |\uparrow \rangle -\alpha \delta (t-{t}_{0})|{R}^{{k}_{2}}\rangle |\downarrow \rangle \\ & & +\beta \gamma (t-{t}_{0})|{L}^{{j}_{2}}\rangle |\uparrow \rangle +\beta \delta (t-{t}_{0})|{L}^{{j}_{2}}\rangle |\downarrow \rangle \\ & & +\alpha \gamma (r+{t}_{0})|{R}^{{k}_{1}}\rangle |\uparrow \rangle +\alpha \delta (r+{t}_{0})|{R}^{{k}_{1}}\rangle |\downarrow \rangle \\ & & +\beta \gamma \sqrt{1-{(t-{t}_{0})}^{2}}|{L}^{{j}_{1}}\rangle |\uparrow \rangle \\ & & +\beta \delta \sqrt{1-{(t-{t}_{0})}^{2}}|{L}^{{j}_{1}}\rangle |\downarrow \rangle .\end{array}$$
(8)

If detectors D1 and D2 are not clicked, the state of the system in Eq. (8) is collapsed into the desired state

$$\begin{array}{rcl}|{\varphi }_{4}\rangle & = & \alpha \gamma (t-{t}_{0})|{R}^{l}\rangle |\uparrow \rangle -\alpha \delta (t-{t}_{0})|{R}^{l}\rangle |\downarrow \rangle \\ & & +\beta \gamma (t-{t}_{0})|{L}^{l}\rangle |\uparrow \rangle +\beta \delta (t-{t}_{0})|{L}^{l}\rangle |\downarrow \rangle .\end{array}$$
(9)

From Eqs (59), when the detectors are not clicked, the transformation of the building block composed of PBS1, PBS2, BS, VBS, Hp1, Hp2, QD, X, D1, and D2, can be written as

$${U}_{block}=(t-{t}_{0})\,(\begin{array}{llll}1 & 0 & 0 & 0\\ 0 & -1 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1\end{array}),$$
(10)

in the basis {|R ↑〉, |R ↓〉, |L ↑〉, |L ↓〉}. The efficiency of the key building block can be further improved by repeating the operation processes when the detectors are clicked.

Now we introduce the performance of our polarized-Toffoli gate, step by step. As shown in Fig. 2(b), suppose that the initial states of gate photons a, b, and c are prepared as |φ a 〉, |φ b 〉, |φ c 〉, respectively. Electron mediums 1 and 2 are initially prepared in the states |↓1〉 and |↓2〉, respectively. Here,

$$|{\phi }_{a}\rangle =|{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{a}{\rangle }_{s},\quad |{\phi }_{b}\rangle =|{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{s},\quad |{\phi }_{c}\rangle =|{\phi }_{c}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{s},$$
(11)

with

$$\begin{array}{cc}|{\phi }_{a}{\rangle }_{p}={\alpha }_{1}|{R}_{1}\rangle +{\alpha }_{2}|{L}_{1}\rangle , & |{\phi }_{b}{\rangle }_{p}={\beta }_{1}|{R}_{2}\rangle +{\beta }_{2}|{L}_{2}\rangle ,\\ |{\phi }_{c}{\rangle }_{p}={\gamma }_{1}|{R}_{3}\rangle +{\gamma }_{2}|{L}_{3}\rangle , & |{\phi }_{a}{\rangle }_{s}={\epsilon }_{1}|{a}_{1}\rangle +{\epsilon }_{2}|{a}_{2}\rangle ,\\ |{\phi }_{b}{\rangle }_{s}={\varepsilon }_{1}|{b}_{1}\rangle +{\varepsilon }_{2}|{b}_{2}\rangle , & |{\phi }_{c}{\rangle }_{s}={\zeta }_{1}|{c}_{1}\rangle +{\zeta }_{2}|{c}_{2}\rangle .\end{array}$$
(12)

Where a1 and a2 (b1, b2 or c1, c2) represent the two spatial modes of the photon a (b or c). α1, α2, β1, β2, γ1, γ2, \(\epsilon \)1, \(\epsilon \)2, ε1, ε2, ζ1, and ζ2 are complex coefficients satisfying |α1|2 + |α2|2 = 1, |β1|2 + |β2|2 = 1, |γ1|2 + |γ2|2 = 1, \(|{\varepsilon }_{1}{|}^{2}+|{\varepsilon }_{2}{|}^{2}=1\), \(|{\epsilon }_{1}{|}^{2}+|{\epsilon }_{2}{|}^{2}=1\), and |ζ1|2 + |ζ2|2 = 1.

First, photon b in the spatial modes b1 and b2 is injected. Before and after photon b passes through the building block composed of PBS1, PBS2, VBS1, BS1, Hp1, Hp2, QD1, X1, D1, and D2, Hadamard operations, He1 and He2, are performed on the QD1 with a single photon, or an ultrafast ps or fs \({(\tfrac{\pi }{2})}_{y}\) optical pulse from the cavity side34,36,59. When detectors D1 and D2 are not clicked, the above operations (He1 → building block → He2) transform the system composed of photon a, b, c, and QD1 and QD2 from the initial state |φ0〉 into |φ1〉. Here,

$$|{\phi }_{0}\rangle =|{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{s}\otimes |{\downarrow }_{1}\rangle \otimes |{\downarrow }_{2}\rangle ,$$
(13)
$$\begin{array}{rcl}|{\phi }_{1}\rangle & = & (t-{t}_{0})\,({\alpha }_{1}|{R}_{1}\rangle +{\alpha }_{2}|{L}_{1}\rangle )\,({\beta }_{1}|{R}_{2}{\uparrow }_{1}\rangle +{\beta }_{2}|{L}_{2}{\downarrow }_{1}\rangle )\,({\gamma }_{1}|{R}_{3}\rangle \\ & & +{\gamma }_{2}|{L}_{3}\rangle )|{\downarrow }_{2}\rangle \otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{s}.\end{array}$$
(14)

Second, photon c in spatial modes c1 and c2 is injected and arrives at PBS3. PBS3 transmits the R3-polarized wave packet to PBS5 and reflects the L3-polarized wave packet into the building block composed of PBS4, VBS2, BS2, Hp5, Hp6, QD1, X2, PBS6, D3, and D4. Before and after the wave packets interact with the block, Hadamard operations, Hp3 and Hp4, are performed on it, respectively. When D1,…,4 are not clicked, operations (PBS3 → PBS5 → Hp3 → building block → Hp4) make |φ1〉 become

$$\begin{array}{rcl}|{\phi }_{2}\rangle & = & {(t-{t}_{0})}^{2}\,({\alpha }_{1}|{R}_{1}\rangle +{\alpha }_{2}|{L}_{1}\rangle )\,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}{\uparrow }_{1}\rangle +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}{\uparrow }_{1}\rangle \\ & & +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle -{\beta }_{2}{\gamma }_{2}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle )|{\downarrow }_{2}\rangle \otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{s}.\end{array}$$
(15)

Third, photon a in the spatial modes a1 or a2 is launched into the building block composed of PBS7, VBS3, BS3, Hp7, Hp8, QD2, X3, PBS8, D5, and D6. Before and after the wave packet interacts with the block, He3 and He4 are performed on QD2, respectively. When D1,…,6 are not clicked, operations (He3 → building block → He4) make |φ2〉 changed as

$$\begin{array}{rcl}|{\phi }_{3}\rangle & = & {(t-{t}_{0})}^{3}\,({\alpha }_{1}|{R}_{1}{\uparrow }_{2}\rangle +{\alpha }_{2}|{L}_{1}{\downarrow }_{2}\rangle )\,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}{\uparrow }_{1}\rangle +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}{\uparrow }_{1}\rangle \\ & & +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle -{\beta }_{2}{\gamma }_{2}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle )\otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{s}.\end{array}$$
(16)

Fourth, photon c is leaded into the building block composed of PBS9, VBS4, BS4, Hp9, Hp10, QD2, X4, PBS10, D7, and D8. If D1,…,8 are not clicked, the joint state is collapsed into

$$\begin{array}{rcl}|{\phi }_{4}\rangle & = & {(t-{t}_{0})}^{4}\,[{\alpha }_{1}|{R}_{1}{\uparrow }_{2}\rangle \,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}{\uparrow }_{1}\rangle +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}{\uparrow }_{1}\rangle \\ & & +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle -{\beta }_{2}{\gamma }_{2}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle )+{\alpha }_{2}|{L}_{1}{\downarrow }_{2}\rangle \,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}{\uparrow }_{1}\rangle \\ & & +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}{\uparrow }_{1}\rangle +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle \\ & & +{\beta }_{2}{\gamma }_{2}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle )]\otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{s}.\end{array}$$
(17)

Fifth, after photon c passes through VBS6 and the building block composed of PBS11, VBS5, BS5, Hp13, Hp14, QD1, X5, PBS12, D9, and D10, the desired wave packets are mixed at PBS13. If D1,…,11 are not clicked, the state of the system is then becoming

$$\begin{array}{rcl}|{\phi }_{5}\rangle & = & {(t-{t}_{0})}^{5}\,[{\alpha }_{1}|{R}_{1}{\uparrow }_{2}\rangle \,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}{\uparrow }_{1}\rangle \\ & & +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}{\uparrow }_{1}\rangle +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle \\ & & +{\beta }_{2}{\gamma }_{2}|{L}_{2}{L}_{3}{\downarrow }_{1}\rangle )+{\alpha }_{2}|{L}_{1}{\downarrow }_{2}\rangle \,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}{\uparrow }_{1}\rangle \\ & & +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}{\uparrow }_{1}\rangle +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}{\downarrow }_{1}\rangle \\ & & -{\beta }_{2}{\gamma }_{2}|{L}_{2}{L}_{3}{\downarrow }_{1}\rangle )]\otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{s}.\end{array}$$
(18)

Sixth, the QD1 and QD2 are measured in the basis \(\{|\pm \rangle =(|\uparrow \rangle \pm |\downarrow \rangle )/\sqrt{2}\}\). On detecting the QD1 and QD2 in the state |+1〉 and |+2〉, one disentangled |φ5〉 into the desired outcomes of the polarized-Toffoli gate, that is,

$$\begin{array}{rcl}|{\phi }_{6}\rangle & = & {(t-{t}_{0})}^{5}\,[{\alpha }_{1}|{R}_{1}\rangle \,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}\rangle +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}\rangle \\ & & +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}\rangle +{\beta }_{2}{\gamma }_{2}|{L}_{2}{L}_{3}\rangle )\\ & & +{\alpha }_{2}|{L}_{1}\rangle \,({\beta }_{1}{\gamma }_{1}|{R}_{2}{R}_{3}\rangle +{\beta }_{1}{\gamma }_{2}|{R}_{2}{L}_{3}\rangle \\ & & +{\beta }_{2}{\gamma }_{1}|{L}_{2}{R}_{3}\rangle -{\beta }_{2}{\gamma }_{2}|{L}_{2}{L}_{3}\rangle )]\otimes |{\phi }_{a}{\rangle }_{s}\otimes |{\phi }_{b}{\rangle }_{s}\otimes |{\phi }_{c}{\rangle }_{s}.\end{array}$$
(19)

As for the |+1〉 and |−2〉 case, classical feed-forward single-qubit operations σ z  = |R〉 〈R| − |L〉 〈L|, which can be implemented by using half wave plate oriented at 0°, are performed on the outing photon a to lead the outcomes to the desired state described by Eq. (19). As for the |−1〉 and |+2〉 case, σ z s are performed on the outing photon b. As for the |−1〉 and |−2〉 case, σ z s are performed on the outing photon b and a, respectively.

Putting all the pieces together, one can see that Fig. 2(b) can deterministically implement an error-rejecting three-photon polarized-Toffoli gate in a heralded way, without any influence on their spatial mode quantum states.

Three-photon Toffoli gate acting on spatial DOF

Up to now, we have discussed the implementation of the error-rejecting polarized-Toffoli gate without any influence on their spatial mode quantum states. In order to implement a hyper-parallel Toffoli gate performing controlled-controlled-NOT operations on the polarization and spatial DOFs, independently, a scheme for implementing error-rejecting three-photon spatial-Toffoli gate without any negative influence on their polarization states will be designed in this subsection.

The scheme we designed for implementing the spatial-Toffoli gate without influence on their polarization states is depicted by Fig. 3, and it can be completed by six steps. The three photons a, b, and c are initially prepared in the arbitrary product states with polarization and spatial DOFs (see Eq. (11)). QD1 and QD2 are prepared in the states |↑1〉 and |↓2〉, respectively.

Figure 3
figure 3

A schematic diagram for a spatial-Toffoli gate assisted by double-sided microcavities. Adjustable beam splitter, VBS1 and VBS3,,6, with transmission coefficient t − t0 and reflection coefficient \(\sqrt{1-{(t-{t}_{0})}^{2}}\). VBS2 with transmission coefficient (t − t0)3 and reflection coefficient \(\sqrt{1-{(t-{t}_{0})}^{6}}\).

First, the photon b is injected. The wave packets emitted from the spatial mode b1 arrive at VBS1 with transmission coefficient t − t0 and reflection coefficient \(\sqrt{1-{(t-{t}_{0})}^{2}}\). While the ones emitted from the spatial mode b2 arrive at PBS1, and PBS1 transmits the R-polarized wave packet to the right round composed of BS2, Hp3, Hp4, QD1 and reflects the L-polarized wave packet to the left round composed of X1, BS1, Hp1, Hp2, QD1, X2. Here the two rounds complete the transformations

$$\begin{array}{ll}|R\uparrow \rangle \mathop{\to }\limits^{{\rm{rounds}}}(t-{t}_{0})|L\uparrow \rangle , & |R\downarrow \rangle \mathop{\to }\limits^{{\rm{rounds}}}-(t-{t}_{0})|L\downarrow \rangle ,\\ |L\uparrow \rangle \mathop{\to }\limits^{{\rm{rounds}}}(t-{t}_{0})|R\uparrow \rangle , & |L\downarrow \rangle \mathop{\to }\limits^{{\rm{rounds}}}-(t-{t}_{0})|R\downarrow \rangle .\end{array}$$
(20)

It is noted that before and after the wave packets interact with QD1, H e s are performed on QD1, respectively. Therefore, when D1 and D2 are not clicked, operations (VBS1, PBS1 → BS2 → Hp3, H e  → QD1 → Hp4, H e  → PBS2 and VBS1, PBS1 → X1 → BS1 → Hp1, H e  → QD1 → Hp2, H e  → X2 → PBS2) transform the system composed of photons a, b, c and QD1, QD2 from |ψ0〉 = |φ a 〉  |φ b 〉  |φ c 〉  |↑1〉  |↓2〉 into

$$\begin{array}{rcl}|{\psi }_{1}\rangle & = & (t-{t}_{0})\,({\epsilon }_{1}|{a}_{1}\rangle +{\epsilon }_{2}|{a}_{2}\rangle )\,({\varepsilon }_{1}|{b}_{1}{\uparrow }_{1}\rangle +{\varepsilon }_{2}|{b}_{2}{\downarrow }_{1}\rangle )\,({\zeta }_{1}|{c}_{1}\rangle \\ & & +{\zeta }_{2}|{c}_{2}\rangle )|{\downarrow }_{2}\rangle \otimes |{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{p}.\end{array}$$
(21)

Second, photon c emitted from the spatial mode c1 passes through VBS2 with transmit (t − t0)3 and reflect \(\sqrt{1-{(t-{t}_{0})}^{6}}\). Photon c emitted from the spatial mode c2D passes through the round composed of PBS1, X1, Hp1, Hp2, BS1, X2, QD1, PBS2 or the round composed of PBS1, Hp3, Hp4, BS2, QD1, PBS2. Before and after the photon passes through the two rounds, Hadamard operation H s s, which complete the transformation,

$$\begin{array}{l}|{c}_{2U}\rangle \to \frac{1}{\sqrt{2}}(|{c}_{2U}\rangle +|{c}_{2D}\rangle ),\quad |{c}_{2D}\rangle \to \frac{1}{\sqrt{2}}(|{c}_{2U}\rangle -|{c}_{2D}\rangle \mathrm{)}.\end{array}$$
(22)

are performed on the spatial mode of photon c by BS1 and BS2. It is worthy to note that after BS3, only the wave packets emitted from the spatial mode c2D interact with QD1. When D3 and D4 are not clicked, |ψ1〉 is changed as

$$\begin{array}{rcl}|{\psi }_{2}\rangle & = & ({\epsilon }_{1}|{a}_{1}\rangle +{\epsilon }_{2}|{a}_{2}\rangle )\otimes |{\downarrow }_{2}\rangle \otimes |{\phi }_{a}{\rangle }_{p}\\ & & \otimes |{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{p}\otimes [(t-{t}_{0}{)}^{4}{\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle |{\uparrow }_{1}\rangle \\ & & +{(t-{t}_{0})}^{2}{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle |{\uparrow }_{1}\rangle +{(t-{t}_{0})}^{4}{\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle |{\downarrow }_{1}\rangle \\ & & +{(t-{t}_{0})}^{2}{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2D}\rangle |{\downarrow }_{1}\rangle \mathrm{]}.\end{array}$$
(23)

Third, photon a emitted from the spatial mode a1 passes through VBS3 with transmit (t − t0), and the one emitted from the spatial mode a2 passes through the round composed of PBS3, X3, Hp7, Hp8, BS5, X4, QD2, PBS4 or the round composed of PBS3, Hp5, Hp6, BS6, QD2, PBS4. Here, before and after the photon passes through the two rounds, H e s are performed on QD2, respectively. When D5 and D6 are not clicked, |ψ2〉 is collapsed into the desired state

$$\begin{array}{rcl}|{\psi }_{3}\rangle & = & ({\epsilon }_{1}|{a}_{1}\rangle |{\downarrow }_{2}\rangle +{\epsilon }_{2}|{a}_{2}\rangle |{\uparrow }_{2}\rangle )\otimes |{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{p}\\ & & \otimes |{\phi }_{c}{\rangle }_{p}\otimes [(t-{t}_{0}{)}^{5}{\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle |{\uparrow }_{1}\rangle \\ & & +{(t-{t}_{0})}^{3}{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle |{\uparrow }_{1}\rangle +{(t-{t}_{0})}^{5}{\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle |{\downarrow }_{1}\rangle \\ & & +{(t-{t}_{0})}^{3}{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2D}\rangle |{\downarrow }_{1}\rangle \mathrm{]}.\end{array}$$
(24)

Fourth, photon c emitted from the spatial mode c2D interacts with the round composed of PBS3, X3, Hp7, Hp8, BS5, X4, QD2, PBS4 or the round composed of PBS3, Hp5, Hp6, BS6, QD2, PBS4. From Eq. (20), one can see that when D7, D8, and D9 are not clicked, the two rounds induce |ψ3〉 to be

$$\begin{array}{rcl}|{\psi }_{4}\rangle & = & {(t-{t}_{0})}^{4}\,\{{\epsilon }_{1}|{a}_{1}\rangle |{\downarrow }_{2}\rangle \,[(t-{t}_{0}){\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle |{\uparrow }_{1}\rangle +{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle |{\uparrow }_{1}\rangle \\ & & +(t-{t}_{0}){\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle |{\downarrow }_{1}\rangle -{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2D}\rangle |{\downarrow }_{1}\rangle ]\\ & & +{\epsilon }_{2}|{a}_{2}\rangle |{\uparrow }_{2}\rangle \,[(t-{t}_{0}){\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle |{\uparrow }_{1}\rangle \\ & & +{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle |{\uparrow }_{1}\rangle +(t-{t}_{0}){\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle |{\downarrow }_{1}\rangle \\ & & +{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2D}\rangle |{\downarrow }_{1}\rangle ]\}\\ & & \otimes |{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{p}.\end{array}$$
(25)

Fifth, after wave packets emitted from the spatial c2U and c2D are mixed at BS7, the wave packet emitted from c2U passes through the block composed of PBS1, PBS2, X1, X2, BS1, BS2, Hp1, Hp2, Hp3, and Hp4, and then they are mixed with the wave packet emitted from c2D passing through the VBS6 and BS8. When D9, D10 and D11 are not clicked, one can see that |ψ4〉 is collapsed into the desired state

$$\begin{array}{rcl}|{\psi }_{5}\rangle & = & {(t-{t}_{0})}^{5}\,\{{\epsilon }_{1}|{a}_{1}\rangle |{\downarrow }_{2}\rangle [{\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle |{\uparrow }_{1}\rangle \\ & & +{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle |{\uparrow }_{1}\rangle +{\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle |{\downarrow }_{1}\rangle \\ & & +{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2U}\rangle |{\downarrow }_{1}\rangle ]\\ & & +{\epsilon }_{2}|{a}_{2}\rangle |{\uparrow }_{2}\rangle \,[{\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle |{\uparrow }_{1}\rangle +{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle |{\uparrow }_{1}\rangle \\ & & +{\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle |{\downarrow }_{1}\rangle -{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2U}\rangle |{\downarrow }_{1}\rangle ]\}\otimes |{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{p}.\end{array}$$
(26)

Sixth, we measure the QD1 and QD2 in the basis \(\{|\pm \rangle =(|\uparrow \rangle \pm |\downarrow \rangle )/\sqrt{2}\}\). If the outcomes of the QD1 and QD2 are |+1〉 and |+2〉, respectively, and then the desired performance is completed. As for the |+1〉 and |−2〉 case, phase shifter e, which completes the transformation |R〉 → −|R〉 and |L〉 → −|L〉, is performed on the spatial mode a1 to complete the spatial-Toffoli gate. As for the |−1〉 and |+2〉 case, phase shifter e is performed on the spatial mode b2. As for the |−1〉 and |−2〉 case, phase shifter es are performed on the spatial mode a1 and b2, respectively. That is to say, measurement and the classical feed-forward single-qubit operations make |ψ5〉 become

$$\begin{array}{rcl}|{\psi }_{6}\rangle & = & {(t-{t}_{0})}^{5}\,\{{\epsilon }_{1}|{a}_{1}\rangle \,[{\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle +{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle \\ & & +{\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle +{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2U}\rangle ]\\ & & +{\epsilon }_{2}|{a}_{2}\rangle [{\varepsilon }_{1}{\zeta }_{1}|{b}_{1}{c}_{1}\rangle +{\varepsilon }_{1}{\zeta }_{2}|{b}_{1}{c}_{2U}\rangle \\ & & +{\varepsilon }_{2}{\zeta }_{1}|{b}_{2}{c}_{1}\rangle -{\varepsilon }_{2}{\zeta }_{2}|{b}_{2}{c}_{2U}\rangle ]\}\\ & & \otimes |{\phi }_{a}{\rangle }_{p}\otimes |{\phi }_{b}{\rangle }_{p}\otimes |{\phi }_{c}{\rangle }_{p}.\end{array}$$
(27)

From Eqs (2027), one can see that the quantum circuit shown in Fig. 3 can be used to implement a robust three-photon spatial-Toffoli gate without any influence on their polarization mode quantum states in a deterministic way.

Discussion

QDs mimic the behavior of single atomic dipole-like transitions. However, unlike atoms, QDs can be easily incorporated into solid-state devices such as cavities or waveguide that enhance the light-matter interaction for scalable QIP. Moreover, the manipulation can be achieved with high-speed (up to THz). The coupling efficiency of the pillar microcavity is higher than waveguide as the pillar cavity mode is Guassian type and matches perfectly with the external laser beam. Compared to the devices via QD-double-sided emitters, the ones via QD-single-sided emitters are fragile due to the balanced reflectance, for the coupled and uncoupled cavities are necessary to get high fidelity29. The length and deep of the gates via QD-double-sided emitters usually are surpass the ones via QD-single-sided emitters as the maximum Faraday rotation π can be achieved in particular QD-double-sided emitter29, whereas π/2 is for the QD-single-sided oemitter60.

The unconstructed low theoretical lower bound for a generic traditional n-qubit gates is \([\tfrac{1}{4}{\mathrm{(4}}^{n}-3n-\mathrm{1)}]\) CNOT gates61. Up to now, the optimal cost of a traditional Toffoli gate acting on single DOF is 6 CNOT gates12,62. The scheme we designed for physical implementing a hyper-parallel Toffoli gate acting on two DOFs, and the essential cost of our scheme is 6 CNOT gates. Compared to the traditional one, our hyper-parallel Toffoli gate reduces the quantum resource, the operation time, and the influence of the noise by half. The previous works mainly were investigated via the optical transition rules in Eq. (3), that is, the side-leakage and the imperfect birefringence of the cavity are not taken into account28,29,37 and t0 → −1, r → 1. Our hyper-parallel Toffoli gate are constructed via Eq. (4), and the undesired performances caused by the side leakage and the imperfect birefringence are detected by the detectors. Moreover, the strong coupling limitation can be avoided in our scheme because the fidelity of our scheme is unity in principle.

In summary, we have designed a quantum circuit for implementing a heralded error-rejecting hyper-parallel Toffoli gate assisted by QD-double-sided cavities. It is a practical proposal, and the side leakage and the imperfect birefringence of the incident photons are detected. The fidelity of the present gate is always unity and the efficiency can be further improved by repeating the construction processes. In addition, our scheme overcomes the exciting strong coupling limitations, and can work in both the strong-coupling and the weak-coupling regimes. These interesting features make us believe that the present work may be useful for some practical hyper-parallel quantum information processing, including hyper-entanglement concentration63 and purification48, hyper-entanglement state analysis, hyper-parallel quantum repeater and so on.

Evaluation of the performance

An efficient QD-photon has been recognized as a potential building block for QIP due to their inherent scalability and mature semiconductor technology28,29. QDs incorporated into photonic-crystal (PC) waveguides64,65, photonic nanowires66, pillar microcavities37,67,68, and photonic crystal cavities cite69 have been achieved in experiment. In the present, the double-sided symmetric pillar cavity supports circularly polarized light, and it incorporates a negative charged QD. This type of cavity has been fabricated in experiment68. Some specific symmetry photonic crystal nanocavities70 are suitable for proposal as well. Compared to weak coupling cavity-QED system, strong coupling cavity-QED system is a challenge in experiment with current technology. Fortunately, the strong coupling regime g/(κ + κ s ) = 2.4 (g = 80 μeV, κ + κ s  = 33 μeV), has been demonstrated for INAs QDs in the state-of-the-art pillar microcavity recently67,71. The strong limitations are not necessary in our proposal because the imperfect performance caused by the strong coupling can be detected by the detector. Hu et al.29,37 showed that the π phase shift, which is necessary for the emitter-based quantum gates, can be achieved in this particular double-sided-QD-cavity combination.

The performance of the gate can be characterized by the fidelity and efficiency. According to the arguments in result, one can find that the unity fidelity of our practical hyper-parallel Toffoli gate can be achieved in principle if the overall phase is ignored. The efficiency of the present gate depends on cavity QED parameters (g, κ, κ s , γ), and it can be further improved by repeating the operation processes when the undesired performances are detected. Here, the efficiency is defined as the ratio between the number of the output photons to the input photons. The shape functions \(\overline{\eta }\) is plotted in Fig. 4 for the average efficiency of the present gate averaged over [0, 2π]. γ ~ μeV caused by the the spontaneous emission and the pure dephasing is usually smaller than κ + κ s in high-quality QD-cavity samples. Here γ = 0.1κ, which is experimentally achieved, is taken. Figure 4 suggests that we could make high efficiency in the strong coupling regime when the side leakage κ s /κ is small. The strong coupling QD-cavity system has been reported67,71. The side leakage, κ s , can be reduced by engineering the fabrication and various cavity details such as materials, structures, size, etc.

Figure 4
figure 4

The average efficiency of the hyper-parallel Toffoli gate as the function of the coupling strength g/κ and side leakage κ s /κ averaged over [0, 2π]. γ = 0.1κ is taken.

Photon loss has no contribution to the fidelity of the gate. In realistic case, the fidelity of the emitter can be decreased by a factor29, \(F=[1+\exp \,(-{\rm{\Delta }}t/{T}_{2}^{e}\mathrm{)]/2}\), due to spin decoherence. Therefore, the lower is the \({\rm{\Delta }}t/{T}_{2}^{e}\), the higher is the F. Here \({T}_{2}^{e}\) and Δt are the electron spin coherence time and the time interval between input photons, respectively. \({T}_{2}^{e}\sim \mu s\) and Δt ~ ns have been achieved in experiment72. The imperfect spin-selection rules, induced by the heavy-light hole mixing, reduce emitter fidelity by a few percent73,74. The heavy-light hole mixing depends on the kind, shape and size of the QD. The emitter fidelity can be reduced by amount of F = [1 − exp(−τ/T2)] caused by the QD spin dephasing, and such influence can be neglected because T2 ~ μs and τ ~ ps have been experimentally demonstrated in the coupling regime with 104–10575,76. Here, τ and T2 are the cavity photon lifetime and QD coherence time, respectively. Moreover, the technical imperfection such as photon detection events, the unbalanced PBSs, and the spatial mismatch between the cavity mode and the photon influence the success probability and the fidelity of the gate.