Introduction

Quantum controlled-NOT (CNOT) or controlled-Z (CZ) gate, conditionally flipping the target qubit or adding a π phase by control qubit, is a basic building block of quantum circuit in universal quantum computation1,2. Nowadays, the CNOT or CZ gate has been realized in the systems of trapped-ion3, superconductor4, neutral atom5, quantum dot6, and linear optics7,8. For the requirement of on-chip quantum information processing, linear optical systems become good candidates due to the advantages of long coherence time of photons, high information-capacity of photons9, rapid speed of logic operations and simplicity of implementation10,11,12. Using the principles of linear optics, quantum CZ gates were experimentally realized with several identical beamsplitters13,14,15,16, but their scalability is constrained by size of bulk beamsplitters. Since 2008, on-chip CZ gates have been proposed for both path-encoded17,18,19 and polarization-encoded20,21 qubits, with gate dimensions decreased to hundreds of micrometers. With plasmonic structures22, novel waveguide coupling techniques23, symmetry-breaking24 and optical inverse design25, size of CZ gates can be further reduced.

Traditionally, one CZ gate is formed by at least three identical beamsplitters. While a quantum device generally needs a set of CZ gates (many beamsplitters), if they are fabricated within a chip, the factors such as asymmetric, crosstalk, and loss, will bring great uncertainty to quantum logic functions. Among these factors, the asymmetry in fabrication17 and crosstalk22 could lead to unexpected outputs, thus decreasing fidelity of the quantum logical operation. Moreover, coupling photons into and out of a waveguide-based quantum logical device will cause a large loss23,24,25, which makes it inefficient. To reduce the influence of these factors, using an individual micro or nano structure to realize CZ gate is required.

Metasurfaces, emerging as novel planar platforms for light manipulation among multiple degrees of freedom26,27,28,29, offer a new paradigm for quantum integration30,31,32. Through metasurfaces, the generation33,34,35 and manipulation36,37,38,39 of high-dimensional entanglement, quantum tomography40, quantum imaging41,42, quantum sensing43, and beam-splitting (BS) functions44,45,46,47,48 are proposed, suggesting their potential to integrate quantum devices on a chip. Despite these progresses, the demonstration of fundamental logic operations (such as CNOT or CZ gate) through a single metasurface remains a challenge. According to that gradient metasurface has the peculiarity of parallel BS, i.e., a set of connected beamsplitters with the same splitting ratio48, we theoretically propose a scheme to realize quantum CZ gates through single metasurface. Once it is realized, it will become an important basement of quantum logic devices for on-chip quantum information processing.

In this work, utilizing three of beamsplitters on a single gradient metasurface, one quantum CZ gate with polarization or path encoding is first demonstrated [Fig. 1]. Choosing another three beamsplitters in the same metasurface, the next independent CZ operation can be simultaneously implemented, and so on. By adding more connected beamsplitters into a CZ operation, cascade CZ gates can be realized. Taking advantage of path-polarization-locked property between input and output state in gradient metasurface, CZ gates can efficiently filter out bit-flip errors coming from BS processes. Additionally, metasurface CZ gates have the potential to detect quantum errors and generate high-dimensional entangled states by leveraging the polarization-path-orbit angular momentum correlation on metasurfaces. By integrating quantum CZ gates into a single metasurface, our results open an avenue for high-density and multifunction quantum logic integration.

Fig. 1
figure 1

Schematic diagram of polarization-encoded quantum CZ gate through single gradient metasurface

Full size image

Results

Polarization-encoding CZ gates

The mechanism of metasurface quantum CZ gate is described as follows. The circuit of one CZ operation consists of three identical beamsplitters with 1:2 splitting ratio of power11,12. It is recently found that PB phase metasurfaces can act as parallel beamsplitters, i.e., a series of beamsplitters with identical splitting ratios48. One can choose three among these splitters to demonstrate a CZ operation. As shown in Fig. 2, two photons are sent to the metasurface with different paths, one of which serves as control qubit and the other as target. The single metasurface performs an equivalent CZ operation through the quantum interference.

Fig. 2
figure 2

Mechanism of polarization-encoding quantum CZ gate with the help of parallel beam-splitting on the metasurface

Full size image

The gradient metasurface supports a series of diffraction orders or paths that facilitate parallel BS between polarization modes, but the polarization-path locked relation exists48. This implies that for circularly polarized incident light, the zero-order diffraction light has the same polarization state as the input light. While the polarization state of the first-order diffraction light is orthogonal to the input light. Different from previous application where the zero-order transmission light is usually undesired44,45, here, we need the zero-order transmission light to carry quantum information. Then both polarization and path can encode qubits. Here, we let qubits be encoded in left-circular (LCP) and right-circular (RCP) polarization of photons [Table 1(a)]. As depicted in Fig. 2, we select two paths (0,+1) for transmitting qubits C and T, paths (−1,+2) are auxiliary. In a waveguide CZ gate, encoding one qubit needs two waveguides24,25. While in metasurface CZ gate, thanks to these connected beamsplitters, one polarization qubit can be encoded in a single path using orthogonal polarization modes. Thus, the total path number is reduced from 6 to 4.

Table 1 Characteristic of single CZ gate on metasurface
Full size table

Using the principle of parallel BS48, the transformation relation in Fig. 2 reads

$${left[begin{array}{c}{hat{V}}^{R} {hat{T}}_{0}^{L} {hat{T}}_{1}^{R} {hat{C}}_{1}^{L} {hat{C}}_{0}^{R} {hat{V}}^{L}end{array}right]}_{{rm{out}}}=frac{1}{sqrt{3}}left[begin{array}{cccccc}1&sqrt{2}i&0&0&0&0 sqrt{2}i&1&0&0&0&0 0&0&1&sqrt{2}i&0&0 0&0&sqrt{2}i&1&0&0 0&0&0&0&1&sqrt{2}i 0&0&0&0&sqrt{2}i&1end{array}right]{left[begin{array}{c}{hat{V}}^{R} {hat{T}}_{0}^{L} {hat{T}}_{1}^{R} {hat{C}}_{1}^{L} {hat{C}}_{0}^{R} {hat{V}}^{L}end{array}right]}_{{rm{in}}}$$
(1)

Here, the qubit and auxiliary modes are related to some polarization modes: ([{hat{V}}^{R},{hat{T}}_{0}^{L},{hat{T}}_{1}^{R},{hat{C}}_{1}^{L},{hat{C}}_{0}^{R},{hat{V}}^{L}]=[{hat{a}}_{R}(+2),{hat{a}}_{L}(+1),{hat{a}}_{R}(+1),{hat{a}}_{L}(0),{hat{a}}_{R}(0),{hat{a}}_{L}(-1)]), where the annihilation operator ({hat{a}}_{L}(j)) or ({hat{a}}_{R}(j)) represents LCP or RCP photon occupying path j48. The function of Eq. (1) is identical to those of waveguides CZ gates17,19,24,25.

With above setup, the truth table of CZ operation is shown in Table 1b. When the input state is ({| 1left.rightrangle }_{C}{| 1left.rightrangle }_{T}), then according to Eq. (1), the output state becomes,

$${| 1left.rightrangle }_{C}{| 1left.rightrangle }_{T}mathop{to}limits^{{rm{Metasurface}}}-frac{1}{3}{| 1left.rightrangle }_{C}{| 1left.rightrangle }_{T}+frac{2i}{3}({| 1left.rightrangle }_{C}{| 1left.rightrangle }_{C}+{| 1left.rightrangle }_{T}{| 1left.rightrangle }_{T})$$
(2)

with a post-selection probability of 1/9 to obtain the state (-{| 1left.rightrangle }_{C}{| 1left.rightrangle }_{T}). The quantum interference originating from parallel BS process of the metasurface induces an additional π phase shift in Eq. (2), which guarantees the realization of a CZ operation. While for other kinds of input states, corresponding state transformations are shown in Table 1b. These results confirm that a CZ gate has been implemented on single metasurface with a post-selection probability of 1/9, as those reported in refs. 11,12. Superior to other linear optical structures7,16,17, the quantum CZ gate can be realized within individual metasurface, which is promising to improve integration density.

Path-encoding CZ gates

Using the same PB metasurface, the parallel BS feature of metasurfaces also enables a path-encoding CZ gate. As illustrated in Fig. 3, a single qubit is carried by two paths. Under this configuration, there are still three BS processes, whose overall transformation matrix remains consistent with Eq. (1). Different from the polarization encoding scheme, the mode correspondence here is ([{hat{V}}^{R},{hat{T}}_{0}^{L},{hat{T}}_{1}^{R},{hat{C}}_{1}^{L},{hat{C}}_{0}^{R},{hat{V}}^{L}]=[{hat{a}}_{R}(+3),{hat{a}}_{L}(+2),{hat{a}}_{R}(+1),{hat{a}}_{L}(0),{hat{a}}_{R}(-1),{hat{a}}_{L}(-2)]), indicating three independent BS processes. Then, using the same truth table (Table 1b), a CZ operation can be performed. Taking advantage of path-polarization-locked property between input and output state in gradient metasurface, if a path qubit flipping error occurs, whether before entering CZ gates or during propagation within the metasurface, the correlation between path and polarization of output photons will change, preventing normal CZ operation. Thereby, the CZ gate can efficiently filter out bit-flip errors coming from the BS processes. Thus, gradient metasurfaces offer great flexibility in quantum logical operations. Furthermore, metasurfaces can create polarization-path-orbit angular momentum correlation on single photon by adding additional vortex phase modulation36. By checking the multi-degree-of-freedom correlation, it is possible to detect quantum errors of qubits with such a metasurface CZ gate. Also, metasurface CZ gates could also enable the creation of high-dimensional entangled states due to the diverse correlation capability.

Fig. 3
figure 3

Scheme of path-encoded quantum CZ gate with the help of parallel beam-splitting on the metasurface

Full size image

For a single CZ gate, only two or four adjacent diffraction orders are selected to transmit two qubits. Under the paraxial approximation, the transformation matrix for any two adjacent diffraction orders has the same form as that in Eq. (1)48. If we choose other adjacent diffraction orders as transmitting qubits C and T, then on the same metasurface, a new CZ operation can simultaneously exist. Therefore, provided these sets of paths do not interfere with each other, these CZ gates can operate independently. For example, except for paths (0, +1) shown in Fig. 2, we can use paths (−2, −3) to construct another CZ gate. Similarly, more CZ gates are available in the same single metasurface, which means that high-density operations can be integrated within the same piece of metasurface.

Cascaded CZ gates

With the same PB metasurface as above, when two CZ gates supported by single metasurface share a common qubit, they become cascaded. Figure 4 illustrates this cascading configuration, where paths (0, +1) form one CZ gate, and paths (−1, 0) form another, both of which share the path 0 (qubit C). For simplicity, qubits T and C keep the same encoding as Fig. 2, while the third qubit S is encoded as in Table 2a. Then, the transformation relation for input-output qubit modes reads

$${left[begin{array}{c}{hat{V}}^{R} {hat{T}}_{0}^{L} {hat{T}}_{1}^{R} {hat{C}}_{1}^{L} {hat{C}}_{0}^{R} {hat{S}}_{1}^{L} {hat{S}}_{0}^{R} {hat{V}}^{L}end{array}right]}_{{rm{out}}}=frac{1}{sqrt{3}}left[begin{array}{cccccccc}1&sqrt{2}i&0&0&0&0&0&0 sqrt{2}i&1&0&0&0&0&0&0 0&0&1&sqrt{2}i&0&0&0&0 0&0&sqrt{2}i&1&0&0&0&0 0&0&0&0&1&sqrt{2}i&0&0 0&0&0&0&sqrt{2}i&1&0&0 0&0&0&0&0&0&1&sqrt{2}i 0&0&0&0&0&0&sqrt{2}i&1end{array}right]{left[begin{array}{c}{hat{V}}^{R} {hat{T}}_{0}^{L} {hat{T}}_{1}^{R} {hat{C}}_{1}^{L} {hat{C}}_{0}^{R} {hat{S}}_{1}^{L} {hat{S}}_{0}^{R} {hat{V}}^{L}end{array}right]}_{{rm{in}}}$$
(3)

where the qubit modes and auxiliary modes are ([{hat{V}}^{R},{hat{T}}_{0}^{L},{hat{T}}_{1}^{R},{hat{C}}_{1}^{L},{hat{C}}_{0}^{R},{hat{S}}_{1}^{L},{hat{S}}_{0}^{R},{hat{V}}^{L}]=[{hat{a}}_{R}(+2),{hat{a}}_{L}(+1),{hat{a}}_{R}(+1),{hat{a}}_{L}(0),{hat{a}}_{R}(0),{hat{a}}_{L}(-1),{hat{a}}_{R}(-1),{hat{a}}_{L}(-2)]).

Fig. 4
figure 4

Scheme of a cascade quantum CZ gate with the help of parallel beam-splitting on the metasurface

Full size image
Table 2 Characteristic of a two-cascaded CZ gate on metasurface
Full size table

According to Eq. (3), we analyze the transformations for different input qubits. Figure 4b shows the equivalent quantum circuit of the cascaded CZ gates, the additional X gates mean qubits S and T are controlled by different logical states of qubit C. As shown in the first two columns of truth Table 2b, when qubit C is ({| 0left.rightrangle }_{C}), qubit T is unaffected and qubit S acquires a phase shift when it is in state ({| 1left.rightrangle }_{S}). Conversely, when qubit C is ({| 1left.rightrangle }_{C}), qubit S remains unchanged and qubit T acquires a phase shift when it is ({| 1left.rightrangle }_{T}). The quantum logical function is more obvious when expressing qubits S and T in Hadamard basis ({| pm left.rightrangle }_{S,T}=({| 0left.rightrangle }_{S,T}pm {| 1left.rightrangle }_{S,T})/sqrt{2}) [the third and fourth columns of truth Table 2(b)], where qubit S/T flips when qubit C is ({| 0left.rightrangle }_{C})/({| 1left.rightrangle }_{C}). Repeating this process, in principle, one metasurface can cascade more CZ gates. Thus, the same metasurface not only enables independent CZ gates, but also allows for the cascaded CZ gates, which is favorable for multifunctional quantum integration.

A single CZ gate can entangle two qubits2, while a quantum circuit with cascade CZ gates can establish multiqubit entanglement. For instance, if the input qubit state is set as ({| +left.rightrangle }_{S}{| +left.rightrangle }_{C}{| +left.rightrangle }_{T}), where (| pm left.rightrangle =(| 0left.rightrangle pm | 1left.rightrangle )/sqrt{2}) (all three photons in horizontal polarization), then we can use the metasurface configuration depicted in Fig. 4 to prepare entangled state. According to Eq. (3), if the quantum circuit operation is successfully executed, the output state will evolve to (({| +left.rightrangle }_{S}{| 1left.rightrangle }_{C}{| -left.rightrangle }_{T}+{| -left.rightrangle }_{S}{| 0left.rightrangle }_{C}{| +left.rightrangle }_{T})/sqrt{2}), which is a three-qubit GHZ entangled state. The cascade CZ gates on the metasurface provide a convenient method for preparing multiqubit entangled states, which can be also utilized for multiqubit entanglement swapping49,50.

Discussion

The proposed quantum CZ gates based on metasurface have advantages compared to those based on waveguides22,23,24,25. Firstly, metasurfaces offer more precise control on polarization, enabling the degree of circular polarization to remain nearly unity before and after beam-splitting45. As a result, compared to polarization-encoding quantum gates based on hybrid waveguides22, metasurfaces can effectively decrease errors resulting from crosstalk. Secondly, metasurfaces are also capable of efficiently transmitting photons. By employing special designs, the transmission efficiency can reach up to approximately 96% in experiments51. There is no need to use additional devices to derive photon from metasurface quantum gates, so it is more efficient for photon detection than a waveguide-based on-chip quantum gate that suffers from coupler loss23,24,25. Hence, it is expected that metasurface-based quantum CZ gates will achieve a high operational fidelity and efficiency.

To verify above architecture for CZ gates, we design a metasurface using full-wave simulation (see Supplementary Section S1). The simulation results show that the designed metasurface provides a BS ratio of about 1.99 for normally incident light with circular polarization. When the incident angle changes from −15° to +15°, the splitting ratio is almost unchanged, while the total transmission efficiency exceeds 95%. As a result, the metasurface can support up to 6 parallel 2 × 2 BS processes which are connected. Furthermore, within the same range of the incident angle, the degree of circular polarization of output light keeps above 99.3% (absolute value), which means the qubit can be safely encoded in circular polarized states (see Supplementary Section S2). Then, we check the performance of two quantum CZ gates on the metasurface. The simulated truth tables agree well with the ideal results in Tables 1, 2, while the fidelity of the prepared entangled state is higher than 99% (see Supplementary Section S3). The slight deviation mainly comes from the small BS ratio error and phase error of the designed metasurface. Therefore, the designed metasurface structure has a high performance in quantum logic operation.

Finally, we discuss the experimental feasibility of the scheme. A high-efficiency metasurface can be fabricated using electron beam lithography with high-index dielectric materials, such as amorphous silicon44, silicon nitride47 for near-infrared wavelengths or titanium dioxide45 for visible light. Recent researches have shown that the transmission efficiency of dielectric metasurfaces can reach as high as 96% in experiment44,51,52,53, so the post-selection probability of the quantum gate should not decrease too much. The fidelity of CZ gate is primarily affected by splitting ratios. Due to the imperfections in the fabrication of the metasurface, the zero-order transmission may be increased, which will lead to splitting ratios deviate 1:2 slightly. Thus, the fidelity of the CZ gate will decrease to some degree, as the post-selection probabilities become unequal for different input states. However, if the error in splitting ratios can be kept within 5%, the fidelity of CZ gate is still higher than 90%, which have been verified by theory11 and experiments in waveguide system17,23,24,25. So, in practical situations, it is necessary to correct the design size of the metasurface unit cell by calibrating the fabrication deviation to make the error of splitting ratio as small as possible. Thanks to current micro-/nanofabrication technology, the splitting ratios error of metasurfaces can be controlled within 5%45,47. Another challenge in experimental implement is the alignment of the beam paths. For the metasurface we designed, it is fairly challenging to precisely manage the relative angle between two adjacent paths (~5). Anyhow, our scheme is likely to be realized experimentally in the near future.

To summarize, on a single gradient metasurface, we theoretically demonstrated a polarization encoding CZ gate, a path encoding CZ gate, several independent CZ gates, and cascaded CZ gates. The path encoding CZ gates can efficiently filter out bit-flip errors due to path-polarization-locked property of gradient metasurface. Furthermore, metasurface CZ gates may enable detection of quantum errors and preparation of high-dimensional entangled states through the polarization-path-orbit angular momentum correlation on metasurfaces. By integrating several quantum CZ gates into a single metasurface, various quantum operations can be performed with only a piece of metasurface. Based on the same principle, multi-qubit logical operations could be executed on single metasurface. Thus, this work paves the way for high-density, multifunctional integration of quantum logic devices on metasurfaces, with potential applications in on-chip quantum information processing.

Materials and methods

Design of metasurface for CZ operations

The quantum CZ gate operation discussed in this work is realized with a geometric phase gradient metasurface. The unit cells of such a metasurface exhibit local birefringence response. We choose an operating wavelength of 1550 nm and use nanofin structures on a glass substrate (with a refractive index of 1.543) as the structural units. The nanofin structures are made of amorphous silicon (with a refractive index of 3.34443), with dimensions of 389 nm × 219 nm × 830 nm. The centers of adjacent structural units are spaced 667 nm apart. Under this set of parameters, the metasurface can achieve a transmission efficiency close to 1 and a cross-polarization conversion efficiency of approximately 2/3. To achieve beam splitting, a geometric phase gradient is introduced, with 26 structural units stitched together to form a period. The adjacent structural units are rotated successively by an angle of 2π/26. The geometric phase gradient causes the cross-polarization conversion light to deflect to the +1 or −1 diffraction order, with the 0th order diffraction energy to 1st order diffraction energy ratio approaching 1: 2, and the relative phase difference approaching π/2. The specific beam splitting transformation matrix can be obtained through finite element method simulation (commercial COMSOL software). Details of the simulation are provided in the supplementary Section S1 and S2. It is flexible to design metasurface CZ gates with other low-loss, high-index materials, like titanium dioxide54,55,56 and gallium nitride57,58. The main differences among these material platforms lie in the geometric size of the designed unit cells and the working wavelength.

In principle, it is possible to realize a quantum CZ gate with other kinds of metasurfaces rather than PB phase metasurfaces. For polarization-encoding CZ gate, the crucial aspect is to achieve the multi-port beam-splitting response similar to that in equation (1). So, a metasurface with polarization-dependent amplitude and phase modulation may help to achieve this goal, such as the approach of anisotropic propagation phases44,45. Another possible design to achieve polarization-encoding CZ gate might be metasurfaces composed of freeform meta-atom structures. Using the photonics inverse design technique59,60, one can start with the target multi-port beam-splitting response in equation (1), then design a shape of meta-atom by topological optimization.

Quantum state transformation on metasurface

The quantum parallel beam splitting process in metasurfaces can be described by the effective Hamiltonian48({hat{H}}_{{rm{eff}}}={sum }_{j}{hat{H}}_{j}), where ({hat{H}}_{j}=-hslash g[{hat{a}}_{L}^{{rm{indagger }}}(j){hat{a}}_{R}^{{rm{in}}}(j+1)+{hat{a}}_{L}^{{rm{in}}}(j){hat{a}}_{R}^{{rm{indagger }}}(j+1)]) characterizes the beamsplitter-type interaction between the LCP mode at diffraction order j and the RCP mode at diffraction order j + 1. Consequently, the time evolution operator is given by (hat{S}(t)=exp [-i{hat{H}}_{{rm{eff}}}t/hslash ]), where the effective interaction time satisfies (gt=arccos (1/sqrt{3})), corresponding to the required 1:2 beam splitting ratio. Thus, given an input quantum state (| {psi }_{{rm{in}}}left.rightrangle), the output state after passing through the metasurface is (| {psi }_{{rm{out}}}left.rightrangle =hat{S}(t)| {psi }_{{rm{in}}}left.rightrangle). The truth table of the metasurface CZ gate is obtained by analyzing the output state of the encoded logical states (| 00left.rightrangle ,| 01left.rightrangle ,| 10left.rightrangle ,| 11left.rightrangle). The exact truth table and quantum state transformation of the designed metasurface CZ gates are provided in the supplementary Section S3.