Open Access Article
Eric D.
Switzer
*abc,
Jose
Reina-Gálvez
def,
Géza
Giedke
g,
Talat S.
Rahman
c,
Christoph
Wolf
de,
Deung-Jang
Choi
ghi and
Nicolás
Lorente
*gh
aDonostia International Physics Center (DIPC), 20018 Donostia-San Sebastián, Euskadi, Spain. E-mail: eric.switzer@nist.gov
bNanoscale Device Characterization Division, National Institute of Standards and Technology, Gaithersburg, Maryland 20899, USA
cDepartment of Physics, University of Central Florida, Orlando, Florida 32816, USA
dCenter for Quantum Nanoscience, Institute for Basic Science, 03760 Seoul, Republic of Korea
eEwha Womans University, 03760 Seoul, Republic of Korea
fUniversity of Konstanz, D-78457 Konstanz, Germany
gDonostia International Physics Center (DIPC), 20018 Donostia-San Sebastián, Spain. E-mail: nicolas.lorente@ehu.eus
hCentro de Física de Materiales CFM/MPC (CSIC-UPV/EHU), 20018 Donostia-San Sebastián, Spain
iIkerbasque, Basque Foundation for Science, 48013 Bilbao, Spain
First published on 31st October 2025
Quantum entanglement is a fundamental resource for quantum information processing, and its controlled generation and detection remain key challenges in scalable quantum architectures. Here, we numerically demonstrate the deterministic generation of entangled spin states in a solid-state platform by implementing quantum gates via electron spin resonance combined with scanning tunneling microscopy (ESR-STM). Using two titanium atoms on a MgO/Ag(100) substrate as a model, we construct a two-qubit system whose dynamics are coherently manipulated through tailored microwave pulse sequences. We generate Bell states by implementing a Hadamard gate followed by a controlled-NOT gate, and evaluate its fidelity and concurrence using the quantum-master equation-based code TimeESR. Our results demonstrate that ESR-STM can create entangled states with significant fidelity. This study paves the way for the realization of atom-based quantum circuits and highlights ESR-STM as a powerful tool for probing and engineering entangled states on surfaces.
ESR-STM enables the coherent control of individual spins through the application of microwave fields, providing an efficient means to implement quantum logic operations.4,6,9 By positioning magnetic atoms on thin insulating layers such as magnesium oxide (MgO) grown on metallic single crystal substrates such as Ag(100), their interactions can be precisely controlled, and their quantum coherence properties can be studied precisely at the level of individual spin states. Recent experimental and theoretical advancements have demonstrated that two-qubit quantum gates can be realized by exploiting the interaction between adjacent magnetic adatoms.4,5 Specifically, a controlled-NOT (CNOT) gate, in combination with a Hadamard gate, allows for the deterministic generation of maximally entangled Bell states.10
In this work, we numerically demonstrate the realization of a two-qubit quantum gate using ESR-STM to create a Bell state between two titanium (Ti) adatoms located approximately 1 nm apart on MgO/Ag(100) (Fig. 1(b)) and predict realistic time-dependent STM currents using the quantum master equation-derived code TimeESR. These atoms have shown to host an effective spin S = 1/2 orbital. An applied external magnetic field splits the ms = ±1/2 state energies, creating a quantum two-level system. Our approach utilizes a sequence of pulsed microwave excitations to implement the necessary quantum operations. The Hadamard gate is achieved through coherent Rabi oscillations and brings the first qubit into a superposition state. The CNOT gate is implemented by selectively driving a single-spin transition conditioned on the spin state of the control qubits adatom (see Fig. 1(c)). We characterize the performance of the quantum circuit through theoretical simulations and analyze the effects of decoherence due to tunneling currents. This study demonstrates that ESR-STM can serve as a powerful tool for the implementation of elementary quantum circuits, providing a pathway toward atom-based quantum information processing. We aim to highlight that it is possible to entangle two spins using only oscillating electric fields and the resulting time-dependent currents, something that sets it apart from all other approaches. The ability to create, manipulate, and read out entangled spin states using STM not only advances our understanding of quantum coherence at the atomic scale but also opens up new possibilities for developing quantum technologies on solid surfaces.
In Sections II A and II B, we provide a brief introduction to the physical model, its implementation in the TimeESR code, and the code's relevant outputs. In Sections II C–E, we generally outline how one-qubit and two-qubit operations are implemented in ESR-STM. Then in Section II F, we show the microwave pulse sequence modeled with TimeESR to entangle two qubits in one of the maximally-entangled Bell states.12
The physical system under consideration consists of a quantum impurity (QI, physically a magnetic adsorbate which may contain one or more magnetic sites) placed in an STM junction, where it is tunnel-coupled to two electronic reservoirs: the metallic tip (electrode α = T) and the substrate (α = S). The role of the STM is twofold: it enables charge transport through the adsorbate, and it provides a means to apply time-dependent electric fields that modulate the tunneling rates between the adsorbate and the electrodes. By solving the reduced density matrix dynamics under microwave driving and a bias drop between electrodes, TimeESR computes the dynamics of the QI and the evolution of the electronic current that flows through the QI.
The total Hamiltonian of the system is partitioned into three contributions:
| Ĥ(t) = Ĥelec + ĤQI + ĤT(t) | (1) |
The first term, Helec, describes the two non-interacting electron reservoirs which model the tip and substrate:
![]() | (2) |
(ĉαkσ) creates (annihilates) an electron in electrode α with momentum k and spin projection σ ∈ {↑, ↓} with energy εαk. Each electrode is characterized as a bath with temperature Tα and chemical potential μα.
The second term, ĤQI, is the impurity Hamiltonian and it is given by,
![]() | (3) |
(dσ) creates (annihilates) an electron in a single impurity orbital (henceforth designated as the “transport” site) with spin σ and energy εσ, and
is the number operator, μB is the Bohr magneton, B is the local magnetic field on the transport site, g is the g-tensor, and ŝ is the spin operator of the transport orbital. Interactions on the N magnetic sites not participating in transport, together with the environmental effects via spin–orbit coupling, are taken into account using a spin Hamiltonian ĤS,i following ref. 13 and 14. Eqn (3) models a many-body entangled system consisting of a single impurity orbital with onsite Coulomb repulsion U, under the influence of a local magnetic field B, coupled to additional N magnetic sites. In our two-site QI model in Fig. 1(b), eqn (3) corresponds to a transport orbital on the first Ti atom exchange-coupled to the second Ti atom described by ĤS,i with a different local magnetic field. TimeESR allows for additional complexity of the other magnetic sites ĤS,i in the QI, as explained in the Appendix.
The final contribution, ĤT(t), describes the tunnel coupling between the QI and the electrodes. Importantly, this tunneling is modulated by an external time-dependent driving field, which in ESR-STM setups is caused by an oscillating electric field applied between the tip and the substrate. The tunneling Hamiltonian reads,
![]() | (4) |
| Tα(t) = Tα0[1 + Aα cos(ωt + δ)], | (5) |
which captures the effect of the modulated tunneling barrier due to the driving field. Here, Aα is the amplitude of the modulation (assumed small), ω is the driving frequency, and δ is a phase shift in the drive. Our calculations19,20 have shown that this mechanism is extraordinary efficient in driving the spin, leading to Rabi rates Ω and coherence times T2 in excellent agreement with experiments.4
The full dynamics of the system, including the coupling to the electrodes, is described by a reduced density matrix ρlj(t), where l and j label the eigenstates of ĤQI by diagonalizing eqn (3). We derive the equation of motion for ρ(t) within the Born-Markov approximation,21,22 treating the coupling ĤT(t) to second order in perturbation theory. This results in the time-dependent quantum master equation,
![]() | (6) |
Continuous-wave ESR spectra can also be computed by repeating calculations in TimeESR over a range of different driving frequencies ω, in which each calculation's time propagation is long enough to reach a steady state (dictated by the coherence times of the system studied). The DC component of the current, as a function of the driving frequency, is directly comparable with experimental ESR spectra23–26 whilst the time-dependent component is not accessible in the experiment directly due to the slow integrating nature of STM amplifiers, generally limiting the time-resolution to kHz.27 The computed current is also accurate at shorter times, permitting the calculation of electronic currents under the presence of short bias pulses. Thus, the code is best suited to model time-dependent driving protocols that implement quantum gate operations such as π-pulses, π/2-pulses, and more complex sequences designed to achieve universal quantum control, whilst for the long-time limit other methods such as Floquet expansion might be more suitable.17–19 TimeESR also supports the inclusion of multiple simultaneous or sequential driving frequencies, enabling the study of advanced multi-frequency pulsed protocols used in contemporary ESR-STM experiments. These include selective addressing of multiple spins and conditional gate operations akin to two-qubit gates such as the CNOT gate.
On resonance in the absence of noise, using Ω ≪ ω0, the time-dependent state can be written as |Ψ(t)〉 = Û(t)|Ψ(0)〉. Under the above provisos, the unitary in the lab frame can be expressed by the Wigner D-matrix28D1/2(ω0t − δ′, Ωt, δ′) multiplied by an arbitrary phase factor exp(iα), or equivalently,29
![]() | (7) |
![]() | (8) |
It is in this rotating frame that one can attempt to match the pulsed unitary to a qubit gate operation. However, eqn (8) is restrictive in the sense that it alone does not generate all useful qubit gate operations. Instead, one must apply one or more pulses of carefully chosen duration t, Rabi frequency Ω, and phase δ to achieve any particular single qubit gate operation. If each pulse is “switched on and off” sufficiently fast (compared to the timescale 2π/Ω), the full unitary qubit gate operation may be approximated by a product of discrete pulses,
| Ûdesired = Ûn⋯Û2, Û1, | (9) |
, Ŷ, Ẑ and their fractional powers, e.g., H = Ŷ1/2Ẑ or H =
Ŷ1/2.
Directly comparing the ESR-STM evolution in eqn (8) to rotations
, one sees that matching phases δ in ESR pulses effectively generates “rotations” around different axes on the Bloch sphere. To generate an effective Hadamard gate, one can then follow the procedure,
1. A π/2 pulse (t = π/2Ω) with phase δ = −π/2. From eqn (8), this yields
.
2. A π-pulse (t = π/Ω) with δ = 0, which is effectively an
gate (up to a global phase):
.The combined operation
results in a Hadamard gate, up to an overall phase factor i. Another route is Ŷ−1/2
, achieved by reversing the order and switching the sign of δ. Either ESR-STM pulse scheme yields the same final result.
|σT⋯↓T⋯σT⋯σn〉 ↔ |σT⋯↓T⋯ T′⋯σn〉 |
| {|1〉, |2〉, |3〉, |4〉} = {|↓↓〉, |↑↓〉, |↓↑〉, |↓↓〉}, | (10) |
whose spin to digital mapping is |↓〉 → |0〉 and |↑〉 → |1〉. These states can be simulated by using the parameters described in the Appendix, resulting in frequencies (in GHz),
Fig. 2 shows a scheme of the energy levels and single-qubit transitions of this two-spin system, assuming the states are sufficiently “Zeeman-like,” corresponding with well-known experimentally-accessible systems.5,8,30 The system contains additional configurations describing different transient charge states of the transport site (the unoccupied and doubly-occupied states) in order to account for the electron transport process. For the operations on the spins that we describe, we only consider the above four states that correspond to the longer-lived charge state.
![]() | ||
| Fig. 2 Two-qubit system stemming from two spin-1/2 sites weakly interacting and slightly detuned such that Zeeman-product states, eqn (10), are an excellent approximation to the four-level system. The single-qubit transitions between them are designated by their respective rates γi. | ||
Using TimeESR, we identify drive frequencies near the Larmor frequency ωij = ω(j) − ω(i) near each relevant transition energy, each maximizing population transfer between |i〉 and |j〉. For example, ω13 ≈ 16.161 GHz drives |1〉 ↔ |3〉 nearly perfectly (see Fig. 4(a) and 5(a); at t ≈ 200 ns the spin on the second site flips to almost +0.50 and consequently the population largely shifts from state |1〉 to |3〉), if the time duration of the pulse corresponds to half a Rabi period. This is called a π pulse. In Fig. 3 the first pulse is this π pulse with duration tpulse = π/Ω13 ≈ 200 ns, where Ω13 is the Rabi frequency for the oscillation |1〉 ↔|3〉. The Rabi frequencies are determined numerically by plotting the time-dependence of the populations over time at resonant driving.
![]() | ||
| Fig. 3 Pulse sequence used in the input of TimeESR to produce an entangled |Φ+〉 Bell state. Colors indicate the position of the pulse within the sequence, corresponding with the sequences shown in Fig. 4 and 5. | ||
In this system, a possible sequence to create the Bell state
is:
1. Initialize the system in the ground state |00〉.
2.
on site 2: apply a π pulse at ω = ω13 ≈ 16.161 GHz addressing the transition |1〉 ↔ |3〉 with no phase shift. The resulting state is −i|01〉.
3. Ŷ−1/2 on site 2: apply a π/2 pulse at the same ω13 frequency with a phase shift δ = π/2. The result is a state
.
4. CNOT with site 2 as the control qubit: apply a π pulse for the |3〉 ↔ |4〉 transition at ω = ω34 ≈ 15.359 GHz with no phase shift. The resulting state is the Bell state |Φ+〉 with a global phase −i.
Steps (2) and (3) together implement the Hadamard-like operation on the second site, while step (4) implements a CNOT-like flipping of the transport site, conditional on the second site's state as the logical |1〉. Fig. 3 is a snapshot of the input of TimeESR needed to implement the above sequence of pulses. In the first line the input establishes the total time of the simulation, 750 ns in this example. The next line of the input declares the number of pulses, and the maximum number of driving frequencies ωij per pulse (in our example, there is only one frequency per pulse). Next, the four pulses are described by declaring the time interval where it acts, an on/off toggle switch value (1.0 for on, 0.0 for off), its frequency in GHz, and the phase of the pulse in radians. Numerical precision of the inputs and a small time-step for the time propagation are important because the decoherence of the spins is fast and quantum operations quickly become noisy.
In ESR-STM, the combination of (i) distinct spin-resonance frequencies ωij for different qubit sites and (ii) the ability to introduce phase shifts δ and fine-tune pulse durations t allows one to implement universal one- and two-qubit operations.5,7 Single-qubit gates such as the Hadamard gate can be constructed from a pair of carefully phased pulses, while two-qubit gates like CNOT can be realized by single-frequency pulses, since every transition frequency is naturally conditional on the control-qubit state (i.e., γ1 is different from γ3 since they differ by the state of the transport site qubit). These building blocks enable the generation of important entangled states, including Bell states.
![]() | ||
| Fig. 4 Spin evolution during the quantum circuit execution. The top color bar represents a schematic of the four pulse regions described in Fig. 3. (a) Expectation value of the spin operator aligned to the locally-applied magnetic field Ŝx for each site; see the inset for a description of the principal axes. Initially the frequency is tuned to drive the second site to a superposition state. During this time, no operation is performed on the transport site, but the electronic current causes decoherence and the value of the spin slightly drifts away from 〈S1x〉 = −0.50. At 281 ns, the CNOT gate is applied and both expectation values go to zero. (b) Expectation value of the spin operator aligned to the electrode's spin polarization (Z-axis) Ŝz for each site. The expectation value of 〈Sy〉 (not shown) follows the same pattern as 〈Sz〉. The profile of 〈Sz〉 tracks with the result of each pulse operation. As shown in the inset, all calculations are done in the lab frame, leading to oscillations at the Larmor frequency of the in-plane spin expectation values. | ||
After the second pulse, the π/2 pulse at the |00〉 → |01〉 transition frequency, the π pulse on the |01〉 → |11〉 transition is turned on at 281 ns. As a consequence, we see that the spin expectation value of the two sites becomes zero along the quantization axis. This is an indication that we have created a Bell state, however it is not direct proof as this representation does not directly show the coherent properties of the system. To show that we have created Bell states, we detail the fidelity and concurrence of the system in the following section.
Each spin oscillates in their respective Bloch spheres, as seen in Fig. 4(b). Both the Y and Z components show fast oscillations at the Larmor frequency (see the inset of Fig. 4(b)), producing complete turns around the X-axis until the final π pulse. After this pulse, the oscillations are greatly reduced in amplitude. Fig. 5(a) shows the populations of the four states during the realization of the circuit. These populations follow the sequence of pulses, and because to the simple form of the quasi-Zeeman states of the QI Hamiltonian, one can rationalize the values of 〈S1x〉 and 〈S2x〉 in Fig. 4(a), based on the population of each state.
![]() | ||
| Fig. 5 Population of the different states, Fig. 2, during the quantum circuit execution (a) and the computed electronic current (b). The top color bar represents a schematic of the four pulse regions described in Fig. 3. Both graphs show the fast evolution taking place before the pulses are turned off at around 300 ns and the free evolution of the two spins is allowed. The population of the states can be easily identified with the expectation value of each single spin in Fig. 4. | ||
Finally, Fig. 5(b) shows the electronic current that is driven through the transport spin. The division of current is apparent before and after the pulse at around 300 ns because it separates the driven and free evolution of the two-spin system. The current appears noisy but contains clear patterns that reflect the pulses and the dynamic response of the spin system. Unfortunately, the time scale of the fluctuations is too fast to allow a direct detection in STM.27 Accumulated statistics of the time-averaged current from a large number of consecutive realizations of this gate sequence might allow one to reconstruct the dynamics.
| F = 〈Φ+|ρ|Φ+〉, | (11) |
A better insight in the entanglement properties of our system is provided by the concurrence,
31 since it is not affected by the rapidly-oscillating relative phase between the two eigenstates.
takes values between 0 and 1. For two qubits,
holds for all separable states, while
implies a maximally entangled state (i.e., the state |Φ+〉 up to local unitaries). The concurrence gives an upper bound to the possible Bell-state fidelity
.32,33 Both quantities show that a highly entangled state close to the Bell state was achieved. As ρ evolves, current-induced decoherence accumulates. This results in the decline of the concurrence at a rate larger than the decay of the fidelity envelope. Like the fidelity envelope, the decay occurs over an experimentally-reasonable μs scale, and is an order of magnitude larger than the slowest gate operation of the circuit.
By using the numerical results of TimeESR in the time-dependent quantum master equation formalism, the results shown here go beyond prior theoretical studies of entanglement generation in ESR-STM,10,34 and more generalized tripartite spin systems in which the transport site functions as an entanglement witness.35 Specifically we show the crucial impact of the tunneling processes in ESR-STM on system properties and experimental observables during entanglement generation. Our results also show use of a transport spin and an exchange coupled second spin are sufficient for quantum gate operations in ESR-STM within the available coherence time of the transport spin.
The work presented here establishes ESR-STM as a viable platform for the implementation of elementary quantum circuits at the atomic scale. The precise control of individual spins and their coherent coupling opens promising avenues for developing atomically defined quantum devices. Challenges remain, however, in the scalability of the platform (e.g., dynamically tuning the coupling between magnetic sites in the QI), and the generation of entanglement over a larger number of magnetic sites. Future work will focus on extending this approach to larger qubit arrays, and exploring more complex gate sequences. This may require improved coherence times and Rabi rates through optimized surface preparation and quantum control.36 Our findings contribute to the growing field of quantum coherence and entanglement in atomic-scale solid-state systems, highlighting ESR-STM as a unique method for the realization of atomic-scale quantum information circuits on surfaces.
| ĤS,i = ĤZ,i + ĤJ,i + ĤA,i, | (12) |
which accounts for the Zeeman, exchange interaction, and magnetic anisotropy Hamiltonian terms, respectively. The Zeeman term ĤZ,i is,
![]() | (13) |
Ĥ J,i represents the exchange interaction Hamiltonian between all impurities and impurity site i,
![]() | (14) |
![]() | (15) |
| ĤZ = gμ(B1xŜ1x + B2xŜ2x). | (16) |
The exchange interaction Hamiltonian is simplified to be isotropically ferromagnetic,
| ĤJ = JŜ1 × Ŝ2 | (17) |
The magnitude of B and J are set so that the Zeeman term is two orders of magnitude larger than the exchange interaction Hamiltonian, and the occupation energy ε is negative and two orders of magnitude larger than the Zeeman term.
The values that we have used in the simulations of Fig. 3–6 are εd = −5.0 meV, U = 50 meV, B1x = 0.5509026 T, B2x = 0.5751223 T, J = −0.11390 GHz, and the bias drop is symmetric with magnitude 6.0 mV. The exchange value corresponds to the experimental values of two Ti adatoms located approximately 1 nm apart on MgO/Ag(100) as given in ref. 5 and 30. The rates due to the coupling with the electrodes are 5.0 and 1.0 μeV with the sample and tip electrodes, respectively. The drive has been chosen to correspond to 50% of the rate with the tip which is 100% spin polarized along the Z-axis. These parameters allow us to drive both the quantum impurity beneath the tip and the connected magnetic site outside the tunneling junction without the need to enhance the driving of the latter by placing a quantum magnet nearby, a mechanism described in ref. 36. Nevertheless, such a configuration could relax the parameter requirements employed here.
The temperature is fixed for both electrodes at Tα = 0.05 K. The system is initialized by thermalization with the baths represented by the temperature of the electrodes. With increasing temperature the polarization of the QI decreases proportional to the energy difference relative to the Boltzmann factor kBTα. This has been shown before to limit the achievable entanglement.10 From this, for the typical energy splittings in the 10 GHz regime, a temperature of 0.4 K appears to be the limit above which no entanglement can be reliably detected.
= maxψ{〈ψ|ρ|ψ〉}, where the maximum is taken over all maximally entangled states. This quantity (for which our F is a lower bound) satisfies max{(1+
)/4,
}≤
≤(1+
)/2 [32]. Given that F ≤
the upper bound also holds for F. The maximum concurrence
and fidelity F = 0.946 that can be read off from Fig. 6 almost saturate that bound.| This journal is © The Royal Society of Chemistry 2025 |