Grover’s algorithm in a four-qubit silicon processor above the fault-tolerant threshold
Main
Spin qubits in silicon hold great promise for the realization of large-scale quantum computers owing to their long coherence times, compatibility with advanced manufacturing technology and the possibility to operate at elevated (~1 K) temperatures1,2,3,4. However, correcting for unavoidable errors requires large numbers of qubits with sufficient quality. The well-known surface code5,6 demands that the fidelity of every qubit operation within these multi-qubit processors (initialization, readout and single- and two-qubit control) is above a threshold of approximately 99%. Although high-fidelity initialization, readout and single- and two-qubit gates have been demonstrated in gate-defined quantum dots7,8,9,10,11,12,13,14, combining all of these operations within a single multi-qubit device remains challenging. Reports on the successful implementation of multi-qubit algorithms therefore remain scarce (see Supplementary Table 1 in Supplementary Section I). First results on two-qubit algorithms15,16 have recently been followed by the implementation of quantum algorithms in two-qubit processors with single- and two-qubit gate fidelities above 99% (refs. 11,12). While coherent operations have been demonstrated in larger processors (three to six qubits)17,18,19, only a three-qubit phase-flip quantum error correction code has been executed for devices in which just single-qubit gate fidelities were reported above the fault-tolerant threshold20,21.
Phosphorus (31P) atom qubits in silicon (Si) have a number of unique and beneficial properties that can help overcome the challenges of implementing multi-qubit algorithms. The strong natural confinement of atom-based processors allows the exploitation of the hyperfine interaction between the phosphorus nuclear spins and the bound electron spin. This allows individual qubit addressability22,23, while also providing all-to-all qubit connectivity in the form of efficient multi-qubit gates. The latter leverages the fact that a single gate on the electron spin can entangle multiple nuclear spins. This reduces the number of operations needed to execute quantum algorithms. In addition, the nuclear spins have long coherence times24 and can be read out with high fidelity via the process of quantum non-demolition readout25. Phosphorus atom qubits in silicon have been realized using ion implantation with high-fidelity single- and two-qubit gate operations and the recent demonstration of entanglement between two nuclear spins and one electron spin23,26. Scaling to larger error-corrected architectures requires precision control over the placement of the phosphorus atom qubits, which can be achieved by scanning tunnelling microscopy (STM) lithography27,28.
Here, we demonstrate full coherent control over a precision-manufactured four-qubit processor in Si defined by three phosphorus nuclear spin qubits and one electron spin qubit. We achieve single-qubit gate fidelities for all four individual qubits of (99.94 ± 0.01)%, (99.98 ± 0.01)%, (99.95 ± 0.01)% and (99.95 ± 0.01)%. In addition, we demonstrate two-qubit controlled-Z (CZ) gates between all pairs of nuclear spins with fidelities of (99.65 ± 0.35)%, (99.49 ± 0.39)% and (99.32 ± 0.22)%, as well as readout of all nuclear spin qubits with a fidelity above 99% after post-selection. We exploit these high-fidelity (>99%) operations, all achieved within the same device, and the all-to-all qubit connectivity in the processor to produce Bell states and a three-qubit Greenberger–Horne–Zeilinger (GHZ) state with fidelities above 96%. Finally, we benchmark our four-qubit processor by executing a Grover’s search algorithm on the three nuclear spin qubits with a (94.57 ± 2.63)% average success probability of finding the marked state compared with the ideal algorithm fidelity. This constitutes one of the most successful implementations of this algorithm in any qubit platform so far.
Single-qubit operations
The multi-qubit processor studied in this work is formed by patterning three 31P atoms into isotopically purified 28Si with atomic precision using STM hydrogen lithography, as previously described for the same device by Reiner et. al.28. Highly phosphorus-doped silicon in-plane gates allow control of the electrostatic environment of the P atoms (highlighted in red in the schematic illustration of the device in Fig. 1a, top). An electron can be loaded onto the P atoms from a nearby, tunnel-coupled single-electron transistor (SET, yellow) that also serves as a charge sensor. To control the nuclear spins (basis states (leftvert Downarrow rightrangle), (leftvert Uparrow rightrangle)) and the electron spin (basis states (leftvert downarrow rightrangle), (leftvert uparrow rightrangle)), a broadband antenna (grey) is placed on top of the device, delivering the radiofrequency and microwave signals for nuclear magnetic resonance (NMR) and for electron spin resonance (ESR), respectively. An artistic impression of the four-qubit processor is shown in Fig. 1a (bottom), where the electron wave function (yellow) spreads over the three P atoms (blue, green and red) that are embedded in the silicon crystal. Henceforth, we use label 0 for the electron spin qubit and labels 1, 2 and 3 for the nuclear spin qubits (blue, green and red, respectively).

a, Top: a schematic illustration of the device consisting of in-plane gates (red), a SET charge sensor (yellow) and an antenna (light-grey wire). By applying an alternating current Iac through the antenna, an alternating magnetic field Bac is produced, enabling magnetic control. Bottom: an artistic impression of the three phosphorus atoms (blue, green and red) incorporated into the silicon crystal. The attracted electron wave function is depicted in yellow. The three nuclear spins and the electron spin define the four-qubit quantum processor. b, Measured ESR spectrum displaying eight resonance frequencies (bottom), each corresponding to a different nuclear spin configuration (top; see energy level diagram). Lighter colours indicate higher resonance frequency. c, Measured NMR spectrum (bottom) showing all six electron spin state-controlled peaks (top; see energy level diagram). Lighter colours correspond to transitions with electron-(leftvert uparrow rightrangle), and darker colours to electron-(leftvert downarrow rightrangle). d, RB decay curves for all four qubits, annotated with the corresponding average physical gate fidelity calculated from the measured Clifford fidelity and the error obtained from the fit. All single-qubit control fidelities surpass 99.9% fidelity.
Electron spin initialization and readout is performed via a ramped technique29 at a dilution refrigerator base temperature of 15 mK, with an applied magnetic field of 1.45 T. Quantum non-demolition readout of the nuclear spins is achieved with fidelities above 99% after post-selection as shown in Supplementary Section II with nuclear spin initialization shown in Supplementary Section III.
When an electron is loaded onto the multi-nuclear spin register, the electron spin interacts with all the nuclear spins through the contact hyperfine interaction, causing the ESR frequency to depend on the state of each of the nuclear spins. Figure 1b (bottom) shows an ESR spectrum with eight resonance peaks, where each peak corresponds to a different configuration of the nuclear spins (for the energy level diagram, see Fig. 1b, top). From the ESR peak separations, we find hyperfine interaction strengths of A1 = 6 MHz, A2 = 68 MHz and A3 = 103 MHz. The presence of the hyperfine interaction also allows each nuclear spin to be addressed separately, with the NMR frequency depending on the targeted nuclear spin and the state of the electron spin. An NMR spectrum displaying all six expected peaks is shown in Fig. 1c (bottom; for the energy level diagram, see Fig. 1c, top).
Having established full individual addressability of the electron spin and the three nuclear spins, we measure the dephasing time of each qubit using a Ramsey experiment. We find ({T}_{2}^{,* }=28.1,upmu {rm{s}}) for the electron spin and 1.26 ms, 0.49 ms and 0.60 ms for nuclear spins 1, 2 and 3, respectively (Supplementary Section IV). To measure the dephasing time of the electron spin, we initialize all nuclear spins into the (leftvert Downarrow Downarrow Downarrow rightrangle) state before applying the ESR pulses conditional on that nuclear spin configuration (for all other nuclear spin configurations we find similar ({T}_{2}^{,* }) values; Supplementary Section IV). Based on these dephasing times, Rabi dephasing times and the Rabi frequencies (also shown in Supplementary Section IV), we obtain qubit quality factors (Q={T}_{2}^{,* } {f}_{{rm{Rabi}}}) of 4.82, 14.14, 11.84 and 18.86, as well as gate quality factors of (Q={T}_{2}^{,{rm{Rabi}}} {f}_{{rm{Rabi}}}) of 34, 797, 84 and 69, for the electron spin, nuclear spin 1, nuclear spin 2 and nuclear spin 3, respectively.
Next, we characterize the control fidelity of all single-qubit operations by means of randomized benchmarking (RB). We achieve physical gate fidelities, Fi, above 99.9% for all four qubits (i = 0, 1, 2 or 3) as displayed in Fig. 1d. RB for the electron spin is performed with the nuclear spins initialized into the (leftvert Downarrow Downarrow Downarrow rightrangle) state (all other nuclear spin configurations also yield fidelities above 99.9%; Supplementary Section V), while RB for the nuclear spins is performed with the electron spin initialized into the (leftvert downarrow rightrangle) state. With high-fidelity nuclear spin readout and all single-qubit gate fidelities surpassing the fault-tolerant threshold, we proceed to create entanglement between the nuclear spins.
Two- and three-qubit entanglement
To entangle two of the nuclear spins, we exploit the hyperfine interaction between the electron spin and each of the nuclear spins. Here, simply by enacting a 2π rotation of the electron spin conditional on the configuration of the nuclear spins, we implement a geometric CZ gate between the nuclear spins23,30. To illustrate this, starting with the control nuclear spin in state (leftvert Downarrow rightrangle), the target nuclear spin in ((leftvert Downarrow rightrangle +leftvert Uparrow rightrangle )/sqrt{2}) and the third nuclear spin in (leftvert Downarrow rightrangle), an ESR 2π pulse conditional on (leftvert Downarrow Downarrow Downarrow rightrangle) flips the target nuclear spin by 180° around the z axis of its Bloch sphere. If, however, the control state was in state (leftvert Uparrow rightrangle), the same ESR pulse would not affect the target nuclear spin. To implement this gate irrespective of the state of the third nuclear spin, an additional ESR 2π pulse conditional on (leftvert Downarrow Downarrow Uparrow rightrangle) can be applied, creating a two-qubit CZ gate. Inserting the two ESR pulses in between a −π/2 rotation and a π/2 rotation of the target nuclear spin results in a nuclear controlled-NOT gate.
We use this gate to create all of the four Bell states, (leftvert {varPhi }^{pm }rightrangle =(leftvert Downarrow Downarrow rightrangle pm leftvert Uparrow Uparrow rightrangle )/sqrt{2}), (leftvert {varPsi }^{pm }rightrangle =(leftvert Downarrow Uparrow rightrangle pm leftvert Uparrow Downarrow rightrangle )/sqrt{2}), for each pair of nuclear spins (see Fig. 2a for the circuit diagram for nuclear spins 1 and 2). At the end of each measurement, we perform full-basis quantum state tomography (QST) to reconstruct the density matrix, ρij, and obtain the corresponding Bell state fidelity from ({F}_{{rm{BS}}}^{,ij}=leftlangle psi | {rho }^{ij}| psi rightrangle), where ψ is the target Bell state and i, j = 1, 2 or 3 label the nuclear spins (Supplementary Section VI). Figure 2b–d shows the reconstructed density matrices for (leftvert {varPhi }^{+}rightrangle) for each pair of nuclear spins, with the Bell state fidelities listed in the tables above with state preparation and measurement (SPAM) errors included. The density matrices for (leftvert {varPhi }^{-}rightrangle) and (leftvert {Psi }^{pm }rightrangle) are shown in Supplementary Section VII. We achieve average Bell state fidelities of ({F}_{{rm{BS}}}^{12}=(97.5pm 0.3) %), ({F}_{{rm{BS}}}^{13}=(97.7pm 0.4) %) and ({F}_{{rm{BS}}}^{23}=(96.8pm 0.4) %) for the three pairs of nuclear spins, among the highest fidelities that have been reported for spin qubits in Si (refs. 13,31).

a, The circuit diagram used to construct the Bell states for nuclear spins 1 and 2. The table presents the input states corresponding to the final Bell state. b–d, Fidelities for all Bell states and reconstructed density matrices for (leftvert {varPhi }^{+}rightrangle) obtained from full-basis QST, for all pairs of nuclear spins. The errors are obtained from Monte Carlo bootstrap resampling and represent 1σ from the mean. The graphs show nuclear spins 1 and 2 (b), nuclear spins 1 and 3 (c) and nuclear spins 2 and 3 (d) (see schematics). In the reconstructed density matrices, the filled bars represent experimental amplitudes, while the open bars indicate the amplitudes for an ideal (leftvert {varPhi }^{+}rightrangle) state. e–g, Two-qubit RB (orange) and two-qubit interleaved RB (purple), for all pairs of nuclear spins, corresponding to the same pairs of spins studied in b (e), c (f) and d (g). The physical CZ gate fidelites (({F}_{{rm{CZ}}}^{12}), ({F}_{{rm{CZ}}}^{13}) and ({F}_{{rm{CZ}}}^{23})) are calculated from the non-interleaved reference Clifford fidelities (({F}_{{rm{C,ref}}}^{12}), ({F}_{{rm{C,ref}}}^{13}) and ({F}_{{rm{C,ref}}}^{23})) and the interleaved Clifford fidelities (obtained from the fits to the purple data points). The errors are obtained from the least-square fits at a level of 1 s.d. The physical CZ gate fidelities for all pairs of nuclear spins are above the fault-tolerant threshold. Avg., average.
Bell state fidelities are affected by SPAM errors, single- and two-qubit gate errors, and errors that occur when qubits idle. To independently quantify the fidelity of the CZ gate, we perform two-qubit RB and two-qubit interleaved RB with the CZ gate as the interleaved gate (Supplementary Section VIII). As shown in Fig. 2e–g, we find CZ gate fidelities of ({F}_{{rm{CZ}}}^{12}=(99.65pm 0.35) %), ({F}_{{rm{CZ}}}^{13}=(99.49pm 0.39) %) and ({F}_{{rm{CZ}}}^{23}=(99.32pm 0.22) %) for the three pairs of nuclear spins. In Supplementary Section IX, we show that the residual infidelities of the CZ gates can be explained by quasistatic variation in the electron energy splitting, which has been drastically reduced in this device by using isotopically pure silicon-28 material grown at low temperature using molecular beam epitaxy28. Two-qubit gate fidelities above the fault-tolerant threshold remain scarce in Si spin qubits and have only recently been reported8,11,12,13,14,23.
As a final demonstration of our ability to create entangled states, we entangle all three nuclear spins to create a GHZ state using the circuit in Fig. 3a. The reconstructed density matrix obtained from full-basis QST is shown in Fig. 3b. We achieve a fidelity of ({F}_{{rm{GHZ}}}^{123}=(96.2pm 0.5) %) (including SPAM errors), among the highest GHZ state fidelities reported for semiconductor spin qubits so far (see Supplementary Table 1 in Supplementary Section I).

a, The circuit diagram used to construct the GHZ state. b, The reconstructed density matrix of the GHZ state and corresponding state fidelity (({F}_{{rm{GHZ}}}^{123}=(96.2pm 0.5) %)) as obtained from full-basis QST. The error is obtained from Monte Carlo bootstrap resampling and represents 1 s.d. from the mean. The filled bars represent experimental amplitudes, while the open bars represent amplitudes of an ideal GHZ state.
Grover’s search algorithm
Finally, we benchmark our four-qubit quantum processor by executing the well-known Grover’s search algorithm32, using the corresponding circuit shown in Fig. 4a. In general, this algorithm finds a specific bit string, xm, in the domain x of a function f, where f is defined such that it gives f(xm) = 1 and f(xi) = 0 for all other xi ≠ xm. In our case, the domain consists of the eight binary values {000, 001, …, 111}, which correspond to the eight possible nuclear spin states ({leftvert Downarrow Downarrow Downarrow rightrangle ,leftvert Downarrow Downarrow Uparrow rightrangle ,ldots ,leftvert Uparrow Uparrow Uparrow rightrangle }). Grover’s algorithm works by accessing f with a unitary operator (called oracle), ({U}_{{x}_{m}}), which performs the action ({U}_{{x}_{m}}leftvert xrightrangle ={(-1)}^{,f(x)}leftvert xrightrangle). That is, the searched-for state (xm) is marked with a negative phase, while all other states are left unchanged. Taking advantage of the all-to-all connectivity in our processor, this oracle operation can be performed on the three nuclear spins by applying a single 2π rotation of the electron spin at the ESR frequency corresponding to xm (highlighted in red in the circuit diagram in Fig. 4a). To find the marked state with high probability, the Grover iteration consisting of the oracle and the Grover diffusion operator (highlighted in blue in the circuit diagram and implementing the unitary (2{I}^{otimes 3}-{(leftvert +rightrangle leftlangle +rightvert )}^{otimes 3})) must be applied multiple times. Note that the Grover diffusion operator also benefits from all-to-all connectivity, requiring only a single entangling gate. For n = 3 qubits, the optimal number of repetitions is r = 2, which can be found using (r={{rm{argmax}}}_{r}{sin }^{2}left[(2r+1)arcsin left({2}^{-n}right)right]), where argmax takes the earliest local maximum33.

a, The circuit diagram implementing Grover’s algorithm on three nuclear spins. The oracle is highlighted in red (here marking the (leftvert Downarrow Downarrow Downarrow rightrangle) state), and the Grover diffusion operator is highlighted in blue. b, The measurement result when using (leftvert Downarrow Downarrow Downarrow rightrangle) as the marked state and performing r = 2 Grover iterations. c, The measurement result when marking the states (leftvert Downarrow Downarrow Uparrow rightrangle) and (leftvert Uparrow Uparrow Downarrow rightrangle), and performing r = 1 Grover iteration. For both b and c, the filled bars represent experimental probabilities, while the open bars represent the ideal performance of Grover’s algorithm if implemented on a quantum device with no errors.
In Fig. 4b, we demonstrate the final measurement outcome of Grover’s algorithm executed on the three nuclear spins when using (leftvert Downarrow Downarrow Downarrow rightrangle) as the marked state. The algorithm finds this state with a probability of 93.46%, which corresponds to 98.87% of the ideal probability (94.53%) of finding the marked state with r = 2 Grover iterations. We also run the algorithm for all other marked states (Supplementary Section X) and find an average probability of (89.40 ± 2.49)% of finding the marked state, which corresponds to (94.57 ± 2.63)% of the ideal value. The uncertainties represent 1 s.d. from the mean taken over all marked states. This average fidelity is in good agreement with the predicted fidelity based on considering all the errors during qubit operations characterized in this work, as shown in Supplementary Section XI. In addition, we show that the algorithm can be run with two marked states using r = 1, which we would expect to achieve a success probability of 100%. Here, we achieve a probability of 96.36% to find the two marked states (Fig. 4c). These results represent one of the most successful implementations of Grover’s algorithm among any qubit platform so far (Supplementary Section XII).
Conclusions
We have shown full coherent control in a four-qubit silicon processor consisting of three nuclear spins and one electron spin. The all-to-all qubit connectivity along with the long coherence times of the spin qubits allowed us to obtain control fidelities above the fault-tolerant threshold and to successfully execute a three-qubit Grover’s search algorithm with high accuracy.
Although in this work we used the electron spin to provide connectivity and to efficiently implement multi-qubit gates, it can also be used to couple neighbouring nuclear spin registers via the electron–electron exchange interaction. Exciting progress has been made in this direction34,35,36, and we anticipate the advent of quantum processors consisting of multiple connected registers in the near future. At the same time, as the placement precision of the STM approaches the atomic limit37,38,39, we anticipate future generations of devices with precisely engineered hyperfine interactions and tunnel couplings.
Methods
Fabrication
The device was fabricated using hydrogen STM lithography on a silicon chip with a 45 nm layer of isotopically purified silicon-28 (~200 ppm of residual Si-29 atoms). This epitaxial buffer layer decouples the device from the nuclear spin bath of the natural silicon substrate. After patterning the device, the sample is dosed with phosphine gas, followed by an incorporation anneal at 350 °C for 60 s to incorporate P atoms into the silicon crystal lattice. A 45 nm epitaxial layer of Si-28 is then grown at 250 °C and at a rate of 0.15 nm min−1 to ensure high-quality epitaxy. The buffer layer separates the qubits from any charged defects on the silicon surface and, together with the encapsulation layer, provides a monolithic qubit environment with minimal levels of spin and charge noise40. An STM image of the device is shown in fig. 1c,d in ref. 28, where the same device as studied in this work was also studied.
Statistics and reproducibility
No statistical method was used to predetermine sample size. No data were excluded from the analyses. The experiments were not randomized. The investigators were not blinded to allocation during experiments and outcome assessment.
Responses