Introduction

The induction of quantum correlations between any two physical systems interacting with a common environment is a well-studied mechanism in the research of strongly correlated systems. Singlet pairing among electrons mediated by phonons in superconductors1, 2 or pairing among next nearest neighbors induced by superexchange interaction are well known examples of such mechanisms3. Quantum particles paired in singlets share maximal entanglement and their total vanishing spin additionally renders them robust to external noise4. Singlets are also known to form ground states of certain spin-1/2 dimer compounds5. As singlets have zero spin and behave like bosons, systems with a spin singlet ground state have also been extensively studied in the context of Bose-Einstein condensation6. Thus pairing spins into singlet states is relevant for understanding both many body aspects of spin dynamics in strongly correlated systems and for quantum protocols that require long spin life times (T 1)7. For example such extended life times of over few hours are observed for protons in parahydrogen, when paired as singlets, making them a natural resource for polarization experiments. Singlets are also a key resource for entanglement and quantum information protocols8,9,10,11. In this work we show how unpolarized nuclear spins dynamically pair (form spin-1/2 dimers) into maximally entangled (singlet) states when they are inhomgoeneously coupled to an electron spin that is repeatedly projected onto a preferred state.

Optically addressable electron spins associated with atomic-sized nitrogen-vacancy (NV) defect centres in diamond have been extensively studied over the past decade for precision sensing, and for implementing quantum information protocols at ambient conditions. With the ability to achieve near unity polarization on very short time scales, NVs can be used to polarize nearby nuclear spins achieving dynamical nuclear polarization even for low magnetic fields and high temperatures12, 13. While the polarization transfer between electron and nuclear spins is well known in magnetic resonance studies, we show here that by further exploiting the state specific readout and polarization of the electron spins of NV centers it is possible to go beyond standard polarization schemes and achieve deterministic singlet pairing among randomly distributed nuclear spins.

The NV center has an electronic spin triplet (S = 1) ground state and an intrinsic 14N nuclear spin. The center is surrounded by a nuclear spin bath of 13 C spins with a natural abundance of about 1.1 percent. The NV can be optically excited by a strong off-resonant laser allowing it to polarize into one of the ground states. On the other hand at low temperature (4K) where the excited state spectrum of the NV is well resolved, it can be excited by resonant optical fields. Due to this, the three ground states can be individually read out and initialized with high fidelity14. Such state specific excitation and readout has already been used to achieve deterministic nuclear spin state preparation15, entanglement between solid state qubits mediated by photons16, transfer and storage of single photon states in nuclear spins17, cooling nanomechanical oscillators18 and for generating decoherence free subspaces19. Entanglement induced by projective measurement has also been considered in electron scattering20 and for models in condensed matter and quantum optical systems21. While previous studies are either restricted to fewer quantum subsystems or to a smaller number of projections, we here give a formal prescription for the dynamics induced on an arbitrarily sized spin ensemble by multiple projective measurements of a central spin.

Results

Model

We consider a generic central spin model with a central spin-S (spin-1/2) inhomgoeneously coupled to a spin-bath composed of spin-1/2 particles (I). One example of such a central spin system is given by choosing any two-level subspace within the triplet ground state of an NV electron spin in diamond. The spin-bath is then constituted either by the internal 13 C or by external nuclear spins. Due to a very weak dipolar coupling among the nuclear spins, we consider the spin-bath to be noninteracting. In the reference frame of the central spin (NV) one can think of the spins of the bath as being randomly distributed in a three-dimensional plane comprising of the S-spin polarization and the plane perpendicular to it. With the magnetic field aligned along the central spin axis (say NV z-axis) the Hamiltonian that determines the dynamics is given by ref. 22

$$H={S}^{z}\otimes \sum _{k}{\vec{g}}_{k}(r)\cdot {\vec{I}}_{k}+\omega \sum _{k}\mathbb{1}\otimes {I}_{z}^{(k)}$$
(1)

where g k is the strength of dipolar coupling between the central spin and the k-th nuclear spin, dependent on the spatial separation between these spins. The random spatial location of the spins with respect to the probe results in inhomogeneous couplings such that the bath has neither conserved quantities nor preferred symmetries. The external field ω under which the nuclear spins precess is assumed to be uniform over the entire sample and is along the z-direction. The dynamics generated by the above Hamiltonian is exactly solvable23. In the S z basis of the central spin (|1〉, |−1〉), the above Hamiltonian can be rewritten as

$$\begin{array}{rcl}H & = & {H}^{+}|1\rangle \langle 1|+{H}^{-}|-1\rangle \langle -1|,\\ {H}^{\pm } & = & \sum _{k}{\omega }_{k}{I}_{z}^{k}\pm \sum _{k}{\overrightarrow{g}}_{k}(r)\cdot {\overrightarrow{I}}_{k}\end{array}$$
(2)

where H ± are the nuclear spin-bath operators. The simple form of H ± makes it easy to diagonalize, so that we obtain a closed-form equation for the time-evolution operator of the total system

$$U(t)=[{U}_{I}^{+}(t)|1\rangle \langle 1|+{U}_{I}^{-}(t)|-1\rangle \langle -1|]$$
(3)

where \({U}_{I}^{\pm }(t)={\otimes }_{k}{U}_{k}^{\pm }(t)\), and

$${U}_{k}^{\pm }(t)=[\cos \,{\delta }_{k}t\hat{{\rm{I}}}+\frac{i\,\sin \,{\delta }_{k}t}{{\delta }_{k}}(\omega {I}_{k}^{z}\pm {\vec{g}}_{k}(r)\cdot {\vec{I}}_{k})].$$
(4)

with \({\delta }_{k}=\sqrt{{\omega }^{2}+{|{\vec{g}}_{k}(r)|}^{2}}\).

Analysis

Starting from the initial spin state |−1〉, we prepare a superposition state using the first π/2 pulse and allow it to evolve for a time τ. The spin is then brought back to the energy basis (|1(−1)〉) with the final π/2 pulse. We now read out the state of the spin optically and note the measurement result. Conditional on a successful measurement result, e.g. finding the spin in the state |−1〉, the procedure is repeated M times, as shown in Fig. 1. Since the time τ is arbitrary, the probability of obtaining a successful measurement is always below unity. Given this conditional spin state dynamics, the nuclear spin ensemble evolves from a fully mixed state to a pure state as we show below.

Figure 1
figure 1

(a) Schematic illustration of the scheme, where the central spin (single NV center in diamond) shown as solid blue arrow, is dipolar coupled to nuclear spins (orange spheres) on the surface. The spin is initialized and read out optically. Successful state selective readouts lead to pairwise entanglement of the nuclear spins. (b) The purity and the success probability as a function of the number of measurements M is shown for a spin ensemble of 10 spins. The inset shows the linear chain of nuclear spins considered for this calculation. (c) Schematic of the pulse sequence and measurement on the NV electron spin. The ω − τ contour plots in units of the effective coupling \(g=\sqrt{\mathrm{1/}N{\sum }_{k}{|{\vec{g}}_{k}|}^{2}}\) are illustrating (d) the total number of singlet pairs and (e) the final success probability P S (). In (d) we also show the corresponding purity p of the spin bath. Moreover the line ω = 1/τ is plotted in (d and e) to indicate a good choice of time and frequency for both pairing and success probability.

A successful spin state measurement projects the spin-bath onto a state

$${\rho }_{I}(\tau )=\frac{V(\tau ){\rho }_{I}(0)V{(\tau )}^{ {\dagger } }}{{\rm{Tr}}[V(\tau ){\rho }_{I}(0)V{(\tau )}^{ {\dagger } }]}.$$
(5)

where \(V(\tau )=\frac{1}{2}({U}_{I}^{+}+{U}_{I}^{-})\), and ρ I (0) is the initial state of the spin-bath. As V(τ) is a non-unitary operator, the state needs to be normalized as shown above to get a valid density matrix for the spin-bath. The success probability for this projection is then simply given by

$${P}_{S}(\tau )={\rm{Tr}}[V(\tau ){\rho }_{I}(0)V{(\tau )}^{ {\dagger } }].$$
(6)

Now ρ I (τ) is the initial state of the spin-bath for the next repetition and after evolving again for a time τ, a successful measurement of the spin will project the spin-bath onto the state \({\rho }_{I}(2\tau )=\frac{V(\tau ){\rho }_{I}(\tau )V{(\tau )}^{ {\dagger } }}{{\rm{Tr}}[V(\tau ){\rho }_{I}(\tau )V{(\tau )}^{ {\dagger } }]}\). After M successful projections of the spin to its desired state, the final state of the spin-bath is given by

$${\rho }_{I}(t=M\tau )=\frac{{V}^{M}(\tau ){\rho }_{I}(0){V}^{M}{(\tau )}^{ {\dagger } }}{{\rm{Tr}}[{V}^{M}(\tau ){\rho }_{I}(0){V}^{M}{(\tau )}^{ {\dagger } }]}.$$
(7)

If ρ I (t) is the desired state of the dynamics, the probability to achieve this state is given by

$${P}_{S}(t)=\prod _{k=1}^{M}{P}_{S}(k\tau ),$$
(8)

which is usually much smaller than unity. To obtain the final state given in Eq. (7) within the relaxation time of the spin-bath, the probability of obtaining successful projections should slowly converge to unity such that P S (t) attains a constant value and does not change with further measurements24. Hence, the readout times τ and the external field ω have to be chosen optimally such that both the overlap with the desired end state and the total probability P S (t) is maximized. After the above discussion on the conditions required to observe measurement induced back-action on the dynamics of the spin bath, we will now characterize the steady state.

Dynamics

The conditional dynamics imposed by the central spin S on an unpolarized bath allow the generation of both classical and quantum correlations among the bath spins alongside the purification of the spin ensemble. In the steady state the nuclear spins can either be (i) purely uncorrelated, \({\rho }_{U}={\rho }_{1}\otimes {\rho }_{2}\cdots \otimes {\rho }_{n}\), (ii) classically correlated, \({\rho }_{C}={\sum }_{k}{p}_{k}{\rho }_{1,k}\otimes {\rho }_{\mathrm{2,}k}\cdots \otimes {\rho }_{n,k}\) or (iii) quantum mechanically correlated in which case the total nuclear spin state ρ Q cannot be written as either of the above. Using the measurement based protocol described above one can tune the external field to generate either of these cases.

Classical correlations

To observe only classical correlations one may switch off the external magnetic field, i.e. set ω = 0. In this case, \({U}_{I}^{+}{U}_{I}^{-}=\hat{I}\), and the non-unitary operator V takes a simple form, \(V(\tau )={\rm{Re}}[{U}_{I}^{+}]\). As we start with a completely unpolarized bath, we can choose the bath spins to be diagonal in the eigenbasis of \({H}_{B}={\sum }_{k}{\vec{g}}_{k}(r)\cdot {\vec{I}}_{k}\). Since there is no magnetic field, the spin bath, which is diagonal in the eigenbasis of H B initially, continues to remain diagonal throughout the evolution. As \({U}_{I}^{\pm }\) is diagonal in the eigenbasis of H B (t), so is the operator V. In the limit of large number of measurements, the operator V M has only one surviving diagonal entry which corresponds to the maximum eigenvalue of V 24. The gap between the maximum eigenvalue with the remainder sets the speed of convergence towards the steady state. The maximum value is chosen both by the free evolution time τ and the couplings g k . For the case of identical couplings there are N C N/2 degenerate eigenvalues of V that attain the maximum value independent of τ. Due to this, the bath gets polarized only into the sector for which \(\langle {\sum }_{k}{I}_{k}^{z}\rangle =0\). Hence, the enhancement in the purity is only by a factor \(\frac{{2}^{N}}{{}^{N}{C}_{N\mathrm{/2}}}\). On the other hand for completely random couplings the maximum eigenvalue sector is doubly degenerate, thereby allowing the bath to achieve a purity of 0.5. In the limit of large number of measurements M, the steady state of the bath

$${\rho }_{C}=\frac{1}{2}(|{\psi }_{+}\rangle \langle {\psi }_{+}|+|{\psi }_{-}\rangle \langle {\psi }_{-}|)$$
(9)

is an equal mixture of the macroscopic superposition states \(|{\psi }_{\pm }\rangle =\frac{1}{\sqrt{2}}[|{\phi }_{1}{\phi }_{2}{\phi }_{3}\cdots {\phi }_{n}\rangle \pm |{\phi }_{1}^{\perp }{\phi }_{2}^{\perp }{\phi }_{3}^{\perp }\cdots {\phi }_{n}^{\perp }\rangle ]\), where \(|{\phi }_{i}\rangle ,|{\phi }_{i}^{\perp }\rangle \) is the diagonal basis of any i-th spin. Clearly, even though the state is mixed it cannot be written as a product state of individual spins, and hence is classically correlated.

Quantum correlations - Singlet Pairing

By switching on the magnetic field (ω ≠ 0), the unitary operators \({U}_{I}^{+}\), \({U}_{I}^{-}\) can no more be diagonalized in a common eigenbasis as the two parts of the Hamiltonian given in Eq. (1) do not commute. Due to the mixing caused by the applied field in the eigenbasis of H B , powers of the operator V cannot be diagonalized in a given basis. This non-trivial structure of V M results in generating quantum correlations among the baths spins with increasing M 24. For random couplings g k , the dynamics is no more amenable to analytical diagonalization. We hence resort to exact numerical diagonalization methods and develop a technique to simulate spin baths with larger number of spins. We shall first consider a linear chain of spins arranged along the x-direction at a distance z 0 along the z-axis, from the central spin S. Though the geometry is one-dimensional and the spins are positioned homogeneously, the 1/r 3 dependence of the dipolar coupling results in nonlinear variation in both x and z components of the coupling g. Due to this inhomogeneity, for any k-th spin the spin to the left (k − 1) appears more homogeneous in coupling than the spin to the right (k + 1). This marks the key step for singlet pairing. In Fig. 1b we plot the purity and measurement probability as a function of increasing number of measurements. The bath evolves towards a pure state with a high probability, and the spins of the bath pair up in singlets as shown in Fig. 1a. As mentioned above the singlet pairing happens only between the k-th and (k − 1)-th spin which are less inhomogeneous in their coupling to the central spin S. Hence in the asymptotic limit, the steady state of the ensemble takes the form

$${|\psi \rangle }_{Q}=\underset{k=2}{\overset{N}{\otimes }}|{S}_{k-\mathrm{1,}i}\rangle ,$$
(10)

where \(|{\tilde{S}}_{i,j}\rangle =\frac{1}{\sqrt{2}}[|1,-1\rangle -|-1,1\rangle ]\), written in the eigenbasis |±1〉, of the \({I}_{k}^{z}\) operator. While the partners of a given pair, here the k-th and (k − 1)-th spins, are all unidentical with respect to the central spin, they still tend to pair up identically into a similar singlet state. This is remarkable, as inhomogeneity drives the ensemble towards a homogeneous state of identical singlet paired states. We would also like to note that such singlet pairing does not occur if the central spin were coupled identically to all other spins. We show in Fig. 1c,d the optimal conditions on the applied field and the free evolution time τ for obtaining singlet pairing with high probability. From the ω − τ plot we see that not all values of applied fields ω and measurement times τ result in singlet pairing. We numerically find the optimal choice for the external field ω and the time τ required to purify the ensemble should be chosen such that

$$\tau \sim \frac{1}{\omega },\omega \sim \frac{1}{2N}\sum _{l\in \{x,y,z\}}\sum _{k=1}^{N}|{g}_{k}^{l}|.$$
(11)

We now move to a more generic case where the spins are randomly distributed over the x − y plane as shown in Fig. 2a. For complete random positioning of the nuclear spins there is still high probability to observe pairing of spins into entangled states. But now the entangled pair state is not only restricted to the singlet sector as it is the case for the 1D chain, but rather into the entangled state \(|{\tilde{S}}_{i,j}\rangle =\frac{1}{\sqrt{2}}[|1,-1\rangle -{{\rm{e}}}^{i\phi }|-1,1\rangle ]\). The additional phase ϕ arises when the difference in the x and y couplings of the pairing spins to the central spin S has a large variation. But we show the pairing in the real space and in the coupling space of a spin ensemble comprised of 8 spins. The choice of pairing is purely determined by the minimal inhomogeneity of the partners in their coupling to the central spin. For example in the 1D-case (see Fig. 1b), the inhomogeneity decreases for farther away spins from the central spin. Hence pairing starts from the end of the chain farther away from the central spin and defines the pairing pattern in the chain. In the 2D-case the situation is more complex as the inhomogeneity both in the x and y direction together determine the pairing partners. Additionally, we see that singlets are not the only choice and there are four different relative phases \(\phi =\{0,\frac{\pi }{2},\pi ,\frac{3\pi }{2}\}\) dependent on the x − y position of the spins. For example in Fig. 2a, where spin 5 could only pair with its farthest partner 6, as all other spins have paired up. Remarkably, even though these spins are (effectively) weakly interacting, they still tend to polarize into entangled pairs rather than polarizing into some unentangled pure states.

Figure 2
figure 2

(a) Nuclear spins are randomly distributed in the x − y plane and pair up into the entangled state \(|{\tilde{S}}_{i,j}\rangle =\frac{1}{\sqrt{2}}[|1,-1\rangle -{{\rm{e}}}^{i\phi }|-1,1\rangle ]\). We also show the relative phase ϕ of each pair in this configuration. (b) We plot the entanglement fidelity for various pairs as function of measurements M. (c) The purity is shown as a function of the number of measurements for different spin numbers in the presence of dephasing. (d) The average pairwise concurrence of the steady state is plotted as a function of the dephasing rate γ d multiplied by τ.

Dephasing of the nuclear spins

During the cooling process, the nuclear spins can be subject to dephasing noise caused by the finite relaxation time (T 1) of the electron spin and due to the measurement of the electron spin. As τT 1, the dephasing caused during the free evolution time is negligible, but on the other hand the dephasing occurring during the state selective readout of the central spin S could have a dominant effect on the dynamics. For example, the electronic spins of NV centers in diamond are measured by polarization dependent resonant optical excitation. The difference in the ground and excited state dipolar coupling strengths between the electron spins will give rise to a random phase for the nuclear spins, causing them to dephase. We have also evaluated these dephasing effects (see Methods) on the pairing process for different sizes of the spin ensemble. We see that the purity and the average pairwise concurrence becomes robust to dephasing with increasing size of the ensemble. This is counterintuitive, as the scaling of the decoherence is known to become worse with increasing size of the system25. To understand this inverse behavior in the measurement-driven dynamics we analyze the process involved during the projection by the operator V. The act of projection is to change (increase) the purity of the spin-bath. The relative change in purity from m-th and (m + 1)-th measurement depends on the size of the ensemble, and similarly dephasing also changes (decreases) the purity between m-th and (m + 1)-th measurement depending on the ensemble size. The ratio between the two competing processes decides the equilibrium value of the purity (see Fig. 2c) and the equilibrium value of entanglement (Fig. 2d) in the spin-bath.

Enhanced Quantum Sensing

The measurement-induced quantum state engineering of the spin-bath can be advantageous for quantum information protocols for sensing applications26,27,28,29,30. The convergence of measurement probability towards unity is a signature of a decoherence free environment for the central spin. By deterministically pairing the right partners into maximally entangled states, a decoherence free environment is obtained for the central spin (see Fig. 3a). In addition to long coherence times, the central spin has become transparent to farther away spins which were initially unresolvable when the spin-bath was in an unpolarized state. We show this superresolution in Fig. 3b, where two spin species with different Larmor frequencies are better resolved when the closest (strongly interacting) spin-bath is prepared into a paired state.

Figure 3
figure 3

(a) The coherence of the central spin is plotted as a function of time for three different initial states of the spin-bath. (b) The central spin transition conditioned on its coupling to three different nuclear spin species that have Larmor frequencies ω, ω 1 = ω + ε, ω 1 = ω − ε (we chose ε = ω/10) is shown as a function of the interrogating time τ, for three different initial states of the strongly interacting spin-bath (ω). Clearly, when the spin bath is initialized into the singlet paired state, the two farther nuclear spins are well resolved. The inset displays the spin configuration with different spin species.

Discussion

The proposed scheme can be experimentally implemented at low temperatures (T < 8 K) in a low strain (≈1.2 GHz) NV center. At such temperatures the optical transitions are well resolved allowing for resonant excitation to perform efficient initialization and projective high-fidelity single shot readout on the electron spin (see Methods). For a nuclear spin ensemble (protons, fluorine31) deposited on the surface of the diamond with a NV center at a depth of 5 nm, and having a 2D distribution (i.e. the variation of the spin density along the z (principal axis of NV) is much smaller than that along x and y), with a density of ~5 nm−2, the average field required to observe pairing with high probability will be ω ~ 10−2 T and the probing time will be τ ~ 2.5 μs. With a typical readout time of the electron spin ~1 μs, the time required for 100 measurements would be ~0.35 ms, which is well within the relaxation times of the nuclear spins. The total probability to achieve success in all 100 measurements for the case of 8 nuclear spins is estimated to be ~10−3. Thus, the event rate to observe high fidelity (0.95) pair formation would be one event per ~3 sec. Over such time scales the singlet pairs can decohere both due to the T 1 of the NV center and also due to the surrounding electron spin-bath formed of paramagnetic defects (P1) and surface spins. With a typical density of 1015cm −3  32, 33 these spins should contribute to dephasing on the order of seconds, and can be removed by optimally choosing the NV centers and with better surface treatments of the diamond. Thus the dominant contribution would come from the T 1 of the NV center which can be of the order of 1–10 seconds at liquid-He temperatures33.

One may also generalize the proposed scheme to other physical systems based on central spin models, where the central spin can be projectively readout. For example using impurity mediated coupling of Rydberg-excited atoms34 or superconducting qubits35 where projective measurements can be performed with very high fidelities36.

To conclude, we have shown how nuclear spins can pair up into maximally entangled states as they are cooled down via a central spin, subject to frequent projective spin state measurements. The natural inhomogeneity in their coupling to the central spin imposed by the dipolar coupling is key for observing such pairing phenomena. While standard methods for polarizing nuclear spins by the NV center only use its fast optical pumping feature, we show that using its high fidelity state-selective readout allows to steer the quantum correlations among the nuclear spins alongside their polarization. Additionally, we have shown how classical correlations can be converted into quantum correlations or vice-versa by changing the applied field or the measurement time. To observe the effects on a realistic timescale, i.e. within the T 1 times of the nuclear spins, the selective spin state measurements of the NV are required to occur with high probability. For this we have identified a regime for the applied field and measurement time that maximizes both the probability and the fidelity of obtaining the macroscopic pair state. The scheme can also be extended further to larger spin ensembles (see Methods) and to observe the formation of triplets (maximally entangled states of 3 spins) as well as higher clusters by manipulating the external frequency ω and the measurement time τ. The growth of entanglement through the spin diffusion process caused by their mutual dipolar couplings could shed light on the dynamics of many body correlations in nuclear spin ensembles. In addition the singlet paired states could be a test bed for quantum simulations of low energy excitations in spin models with exact dimer ground states37.

Methods

Analytical derivation of the effective dynamics

Using spectral decomposition of the total Hamiltonian in equation (1) and time evolution according to the Schrödinger equation as U = e iHt we can write

$$U=|1\rangle \langle 1|{e}^{i{H}_{+}t}+|-1\rangle \langle -1|{e}^{i{H}_{-}t}$$
(12)

Thus, we decompose the time evolution operator of the combined NV and nuclear spin Hamiltonian into operators acting on the nuclear spins, depending on the state of the electron spin. H ± are defined as in equation (2). As an example, if the electron spin is initialized into the spin state \(|{{\rm{\Psi }}}_{el}\rangle =\frac{|1\rangle +|-1\rangle }{\sqrt{2}}\) it is clear that the time evolution yields

$$U|{{\rm{\Psi }}}_{el}\rangle |{{\rm{\Psi }}}_{ns}\rangle =\frac{1}{\sqrt{2}}(|1\rangle {e}^{i{H}_{+}t}+|-1\rangle {e}^{i{H}_{-}t})|{{\rm{\Psi }}}_{ns}\rangle .$$
(13)

When a subsequent state specific readout of the electron spin is performed, this results in an effective operation on the nuclear spins

$$|{{\rm{\Psi }}}_{el}\rangle \langle {{\rm{\Psi }}}_{el}|U|{{\rm{\Psi }}}_{el}\rangle |{{\rm{\Psi }}}_{ns}\rangle =|{{\rm{\Psi }}}_{el}\rangle \frac{{e}^{i{H}_{+}t}+{e}^{i{H}_{-}t}}{2}|{{\rm{\Psi }}}_{ns}\rangle .$$
(14)

The effect of a successful projection into a superposition state is thus a non-unitary operation V with the property

$$V\ne \mathop{\otimes }\limits_{i}{U}_{ns,i}\,,$$
(15)

which demonstrates that V can be an entangling operation. Moreover, in line with the findings of Nakazato et al.24, the final state of the evolved system is exclusively given by the (left) eigenstate |u max 〉 corresponding to the unique maximal eigenvalue of V, in the limit of a large number N of projective measurements of the NV electron. Therefore, the choice of the state |Ψ el 〉 the NV is projected into, defines the target state the surrounding nuclear spins will reach, regardless of their initial state. This presents a useful tool for engineering the multi-qubit state of the nuclear spins. Generalizing the example above, projecting into a general state \(|{{\rm{\Psi }}}_{el}\rangle =\frac{\alpha |1\rangle +\beta |-1\rangle }{\sqrt{{|\alpha |}^{2}+{|\beta |}^{2}}}\) yields the operation on the nuclear spins as

$$V=\frac{\alpha {e}^{i{H}_{+}t}+\beta {e}^{i{H}_{-}t}}{{|\alpha |}^{2}+{|\beta |}^{2}}\mathrm{.}$$
(16)

where \({|\alpha |}^{2}+{|\beta }^{2}|=1\). By optimizing these degrees of freedom, a large array of target states defined by the respective operator V can be accessed. This includes states containing bipartite entanglement as presented in this manuscript, but generalizations to multipartite entanglement are possible.

State selective readout of NV centers in diamond

The electron spins of the NV center have a triplet ground state with magnetic quantum numbers m s  = 0, ±1. Spin selective initialization and readout of the ground state spins is optically possible only by resonant excitation at sufficiently low temperature (T < 8 K), where the excitation spectrum of the NV center is well resolved15, 38, 39. One can induce a cycling transition between the ground |m s  = 0〉 and the excited states |E x 〉 or |E y 〉 to achieve a high fidelity singlet shot (projective) readout of the NV center in the state |m s  = 0〉. Due to the high probability of spin mixing in the excited state, this readout leads to large dephasing of nuclear spin correlations. To avoid this, one can make use of another resonant excitation channel i.e., from the ground |m s  = ±1〉 to the excited states |A 1(2)〉 which allow very small spin mixing and hence lead to a lower dephasing of the nuclear spin correlations. A more extensive analysis of various resonant excitation channels at low temperatures for spin selective readout and initialization has been shown by Reiserer et al.40

Verification

Singlet pairing of nuclear spins will affect the way they interact with the central spin. This can then be used as a verification step to know what fraction of the nuclear spin ensemble has been paired into singlets. In Fig. 3 we have shown how singlet pairing can be advantageous in increasing the coherence time of the probe spin which can lead to finer resolution in detecting weakly interacting spins. Though these can be used as signatures for the singlet pairing, there are other direct methods to verify their formation. For this we consider the example of two spins coupled to the central spin by the following Hamiltonian:

$$H={S}^{z}({g}_{1}{I}_{1}^{x}+{g}_{2}{I}_{2}^{x})+\omega ({I}_{1}^{z}+{I}_{2}^{z}).$$
(17)

If the free evolution U(τ) governed by the above Hamiltonian is alternated with π-pulses on the central spin with the following pulse sequence

$${U}_{\frac{\pi }{2}}-{(U(\tau )-{U}_{\pi }-U(\tau ))}^{m}-{U}_{\frac{\pi }{2}}$$
(18)

where U = exp(−iθS x), then a central-spin observable will behave differently if the spins are in the singlet state or in (un)polarized states, i.e. starting from the S-spin in state |0〉, the number of repetitions m required to find it in the state |1〉 will be

$$\begin{array}{llll}m & \approx & \frac{\omega }{\sqrt{{g}_{1}^{2}+{g}_{2}^{2}}} & {\rm{unpolarized}}\\ m & \approx & \frac{\omega }{|{g}_{1}-{g}_{2}|} & {\rm{singlet}}\,{\rm{paired}}\mathrm{.}\end{array}$$
(19)

Calculation of Relaxation

We introduce dephasing by a Krauss channel, assuming Markovian relaxation such that the state of the central spin is given by

$$ {\mathcal E} (\rho (t))=\frac{1}{2}(1-{{\rm{e}}}^{-{\gamma }_{d}t})1\otimes {{\rm{Tr}}}_{S}(\rho (t))+{{\rm{e}}}^{-{\gamma }_{d}}\rho (t).$$
(20)

Here, ρ(t) is the density matrix of the total system while γ d is the relaxation rate the central spin is subjected to. Tr S defines the partial trace over the central spin.

Simulation of large spin registers

In order to simulate the evolution of larger (N ≥ 20) ensembles of nuclear spins, we make use of the composition of the non-unitary operation \(V(\tau )=\frac{1}{2}({U}_{I}^{+}+{U}_{I}^{-})\). Note first that H ± in equation (2) equals the sum of single qubit operations

$${H}_{\pm }=\sum _{k}(\pm {\vec{g}}_{k}\cdot {\vec{I}}_{k}+\omega {I}_{k}^{z})\mathrm{.}$$
(21)

Successive application of the operation V can therefore be rewritten as

$${V}^{n}=\frac{1}{{2}^{n}}{({U}_{1}+{U}_{2})}^{n}=\frac{1}{{2}^{n}}{(\mathop{\otimes }\limits_{i}{U}_{\mathrm{1,}i}+\mathop{\otimes }\limits_{j}{U}_{\mathrm{2,}j})}^{n}$$
(22)

where U 1,i is the single qubit unitary acting on the i-th qubit. We now rewrite the power n as the sum of all occurring terms and apply it to a pure separable input state \(|{{\rm{\Psi }}}_{0}\rangle ={\otimes }_{k}|{{\rm{\Psi }}}_{\mathrm{0,}k}\rangle \)

$${V}^{n}|{{\rm{\Psi }}}_{0}\rangle =\frac{1}{{2}^{n}}\sum _{nPer{m}_{2}}\mathop{\otimes }\limits_{k}nPer{m}_{2}({U}_{\mathrm{1,}k},{U}_{\mathrm{2,}k})|{{\rm{\Psi }}}_{\mathrm{0,}k}\rangle $$
(23)

where nPerm 2(U 1,k , U 2,k ) denotes one of the terms obtained when applying the power n, more formally the matrix product of a multiset permutation or equally of an n-tuple whose entries come from the set {U 1,k , U 2,k } with cardinality 2. All of the possible terms are added up and thus the problem is reduced to a sum of Kronecker products of single qubit operations and can be easily parallelized in numerical simulations. Moreover, the numerical calculations are simplified further by observing that the sum over the permutations in (23) is equivalent to a sum over binary numbers from 0 to 2n − 1 when each 0 in the digits of the binary number is replaced by U 1,k and each 1 by U 2,k , followed by matrix multiplication.