## Abstract

Major advances in the precision of magnetic measurements bring us closer to quantum detection of individual spins at the single-atom level. On the quest for reducing both classical and quantum measurement noise, it is intriguing to look forward and search for precision limits arising from the fundamental quantum nature of the measurement process itself. Here, we present the limits of magnetic quantum measurements arising from quantum information considerations, and apply these limits to a concrete example of magnetic force microscopy (MFM). We show how such microscopes have a fundamental limit on their precision arising from the theory of imperfect quantum cloning, manifested by the entanglement between the measured system and the measurement probe. We show that counterintuitively, increasing the probe complexity decreases both the measurement noise and back action, and a judicious design of the magnetic interaction reveals optimal schemes already at spin-1 probes.

## Introduction

Quantum metrology, the study of high-precision quantum-assisted measurements, has been advancing rapidly in recent years, presenting sensing and imaging capabilities down to the nanometer scale^{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}. These capabilities display state-of-the-art precision in a vast variety of fields, ranging from quantum clocks^{18,19,20} and gravitational-radiation detectors^{21,22,23} to quantum-enhanced imaging^{24,25,26,27,28}. Experiments in quantum metrology utilize the control of quantum devices down to a single-particle resolution in systems such as nitrogen-vacancy centers^{29,30,31,32,33,34,35,36}, superconducting circuits^{37,38,39,40,41}, Bose-Einstein condensates^{42,43}, cold atoms^{44,45,46,47} and photonic systems^{48,49,50,51,52}.

Within the field of quantum metrology, the area of quantum-assisted magnetic sensing features a diverse set of capabilities—including coherent control^{53,54,55,56,57,58,59}, trapping^{60,61,62,63,64}, magnetic imaging^{7,65,66,67,68,69,70,71,72} and quantum state tomography^{73,74}. These capabilities have been used in a variety of systems such as neuron-activity tomography^{75,76}, NMR-based^{77,78,79} and ESR-based^{80,81,82} quantum computing, quantum magnetometers^{7,29,31,32,33,34,36,39,43,45,69,75,83,84,85,86,87,88,89,90,91,92,93} and magnetic resonance imaging^{67,73,88,94,95,96,97,98,99,100,101,102,103,104,105}. State-of-the-art magnetic microscopes enable probing of magnetic structures down to the atomic scale^{7,53,58,73,106,107,108}.

These advancements motivate analyzing the ultimate precision limits of such measurement schemes, to help identify optimal sensing schemes for the smallest scales. The precision of magnetic measurements today is limited by classical noise. For example, superconducting quantum interference devices (SQUIDs)^{109,110,111,112,113,114,115,116,117,118} are eventually limited by Johnson noise^{119}. Nevertheless, it is intriguing to look beyond current limitations and consider the fundamental limits that would arise at the most extreme conditions of measuring individual spins. At these scales, magnetic measurements become limited by the quantum interaction between the two parties: the measured (source) and measuring (probe).

The quantum nature of the measurement process raises fundamental questions regarding the ability to construct suitable measurement schemes. It is not entirely clear how to utilize the entanglement between the measuring and measured parties, and what are the intrinsic limitations on the precision of such measurements. Therefore, it would be interesting to find limits on the back action a measurement can induce on the measured party and explore the tradeoff between lowering the back action and improving the precision.

Here we present the fundamental limits of magnetic nearfield measurements, arising from no-go quantum information principles. Specifically, we show the trade-off between measurement precision and back action on the measured system governed by the theory of imperfect quantum cloning. Our work focuses on the conceptual example of magnetic force microscopes (MFMs), to show designs that achieve optimal measurement schemes. Specifically, we analyze scenarios where the source is a single spin and the probe is a general spin configuration, thus modeling an arbitrary detection probe, which can be a spin, atom, molecule, or complex solid object. We solve for the spin–spin interactions involved in the measurements, analyzing the results from the perspective of the measurement optimality using two criteria: the uncertainty of the measurement and the back action of the source. Finally, we discuss the fundamental connection between sensing and imperfect quantum cloning, presenting several consequences arising from this connection.

We find that counterintuitively, the most delicate quantum magnetic detector—a single spin-1/2 particle—is not the optimal magnetic detector. In fact, we show that better measurements are obtained by using higher spin probes, according to both the uncertainty and back-action criteria. Interestingly, classical measurements of quantum sources, as in the Stern-Gerlach apparatus, are retrieved as the classical limit of the quantum probe. Furthermore, we show how a judicious design of the source-probe interaction Hamiltonian can optimize both criteria already with spin-1 probes.

## Results

### Theoretical model

Our model of the magnetic measurement is inspired by the magnetic force microscope (MFM) apparatus^{95,97,98,99,100,101,102,104,105}. A conceptual scheme is presented in Fig. 1. The measurement device is a rigid tip that consists of a fixed spin configuration (probe), attached to an elastic cantilever which is allowed to bend in the vertical direction. The measured party (source) is part of a target sample and is assumed to remain static throughout the measurement process. The spin–spin interaction between the source and probe induces two types of effects: spin-rotation of the interacting spins (source and probe), and a lateral force between the source and the probe. Since the probe is a rigid body, this force bends the cantilever, resulting in a vertical displacement of the probe. This displacement can be detected using standard laser-interferometry techniques on the bent cantilever^{120,121,122,123}. Using the known mechanical properties of the cantilever, its bending is translated to the magnetic force exerted by the source spin.

To quantitatively compare various measurement configurations, we define the objective of our magnetic measurement to sense the vertical spin component of the source, i.e., the projection of its state on the cantilevers’ axis of movement (*z*). This objective is inspired by applications of quantum state tomography as used in quantum computing and simulators. For the sake of simplicity, we focus our attention on the case of spin-1/2 sources and general-spin probes with different properties and initial states. Our analysis can be directly extended to higher source-spin quantum numbers and to equivalent spin observables. Note that the spin states in the manuscript are written in the spin-*z* basis, so we can write a general spin-1/2 source as \(\left| \psi \right\rangle = {{{\mathrm{cos}}}}\frac{\theta }{2}\left| { + \frac{1}{2}} \right\rangle + e^{i\phi }{{{\mathrm{sin}}}}\frac{\theta }{2}\left| { - \frac{1}{2}} \right\rangle\). Throughout the analysis, we assume an initially pure state of the source spin, without loss of generality; generalization to mixed states appear in the Methods section. By the act of measurement we aim to estimate its *z*-spin component \(\left\langle {\sigma _z} \right\rangle = \cos \theta\).

We can model the act of measurement as a von-Neumann type interaction with a measuring pointer^{124,125}. The pointer state represents the vertical displacement of the rigid tip (cantilever and probe spins). The Hamiltonian of the system is:

where *p* and *z* are the *z*-axis momentum and position operators of the rigid tip (respectively). *K* and *M* are the vertical stiffness coefficient and mass of the cantilever (respectively). \(H_{{{{\mathrm{int}}}}} = H_{{{{\mathrm{int}}}}}\left( {z - z_0} \right)\) is the overall spin–spin interaction Hamiltonian and *z*_{0} is the vertical position of the source spin. The spin–spin interaction Hamiltonian *H*_{int} couples the source spin to the probe spins and the cantilever vertical displacement, thereby implementing the measurement.

We take the spin–spin interaction Hamiltonian without loss of generality as a sum of magnetic dipole–dipole interactions between the source spin and each of the probe spins:

where \({{{\mathbf{S}}}}_{1,2} = ( {S_{1,2}^x,S_{1,2}^y,S_{1,2}^z} )\) are the vector spin operators, *γ*_{1}, *γ*_{2} the gyromagnetic ratios, \({{{\vec{\mathbf r}}}} = \left( {x,y,z} \right)\) is the relative position operator of the spins (\(\widehat {{{{\vec{\mathbf r}}}}}\) is the unit vector), *μ*_{0} is the vacuum permeability and \(\hbar\) is the reduced Planck constant. We construct the overall *H*_{int} by summation of Hamiltonians as in Eq. (2), taking into account the spatial distribution of the probe spins (assumed to be rigid), and the spins properties—gyromagnetic ratios and spin quantum numbers. We note that we also sum over interaction terms between pairs that are both inside the probe. Their relative position will not change, but their spin states can change. The overall interaction Hamiltonian is:

The Hamiltonian governing the measurement consists of two types of operators: the spin states **S**_{i} and the cantilever’s relative vertical displacement from equilibrium *z*–*z*_{0}. Note the connection between these two degrees of freedom under this Hamiltonian: each collective spin state corresponds to a set of vertical equilibrium points, and each vertical displacement corresponds to a set of spin eigenstates.

The measurement process can be formulated as follows. The system is initialized to be in the states \(\left| {\psi _0} \right\rangle _{{{{\mathrm{source}}}}}\) for the source, \(\left| {{{\Psi }}_0} \right\rangle _{{{{\mathrm{probe}}}}}\) for the probe (generally multi-spin state), and \(\left| {z_{{{{\mathrm{init}}}}}} \right\rangle _{{{{\mathrm{pointer}}}}}\) for the pointer. Under the Hamiltonian in Eq. (1), the system evolves to the following state:

The quantum state of the system is a superposition of joint source-probe spin-states \(\left| {{{\Phi }}_{{{\mathrm{j}}}}} \right\rangle _{{{{\mathrm{source}}}} + {{{\mathrm{probe}}}}}\) and correlated pointer states \(\left| {z_k} \right\rangle _{{{{\mathrm{pointer}}}}}\), with corresponding amplitudes *α*_{j,k}. Meaning that the probe becomes entangled with the source, and the pointer occupies multiple vertical displacements *z*_{k}. Under the approximation of small cantilever displacements (see discussion), the states \(\left| {{{\Phi }}_{{{\mathrm{j}}}}} \right\rangle _{{{{\mathrm{source}}}} + {{{\mathrm{probe}}}}}\) are the eigenstates of *H*_{int}, and therefore the coefficients *α*_{j,k} have time independent absolute value. The act of measurement projects the state of the pointer into a certain vertical displacement and thus projects the source+probe spins into a certain joint state. The projection probabilities on each state depend on the overlap between the spin state and the initial state of the spins in the system, expressed through *α*_{j,k}. Note that a single pointer state can correspond to several spin eigenstates due to degeneracy of *H*_{int}. The final state of the system can be written as a density matrix:

Given the final state of the system, we compute the quality of the measurement using two criteria: the uncertainty of the measurement and the back action of the source. Since the uncertainty is calculated from the probability distribution of the pointer displacements and the back action is calculated from the source’s final density matrix, we can derive both from Eq. (5).

The density matrix of the spins without post-selection on the pointer state can be calculated by using partial trace on Eq. (5):

from which we can calculate an additional partial trace and find the density matrix of the source spin following its interaction with the probe:

Similarly, the density matrix of the pointer, which determines the probability of each measurement, can be calculated from Eq. (5) using a partial trace:

The back action exerted on the source is computed as one minus the similarity between the source’s final and initial states, for which we use the standard fidelity metric^{126}:

To find the measurement uncertainty, which quantifies the confidence level of a one-shot measurement, we first define the measured quantity—the force bending the cantilever. The force acting on the cantilever is calculated as the *z*-derivative of the magnetic spin energy for each spin state \(\left| {\psi _k} \right\rangle\) that corresponds to a measured \(\left| {z_k} \right\rangle\). Mathematically, we calculate the force as

The uncertainty is calculated by the variance in the force normalized by the range of possible mean results in this setup (mean-force range):

where Var(*F*) is the variance of the force distribution and range (*F*) is the mean-force range across all possible initial source states. The mean-force range is a property of the measurement setup; the normalization is done to appropriately represent the ability to extract information about the source spin from a single-shot measurement: differences in the mean force are detectable only when they are larger than the standard deviation of each mean. The normalization of the variance by the mean-force range eliminates some of the dependency of the uncertainty on Hamiltonian global factors such as gyromagnetic ratio or initial source-probe distance. This dependency elimination occurs when all the spins in the system share that same properties, which appear as pre-factors in the spin–spin Hamiltonian in Eq. (3). Importantly, both criteria in Eqs. (9), (11) are dimensionless, with lower values representing better measurement setups. The minimal value of both criteria is 0; the maximal value is 1 for the back action and infinity for the uncertainty.

Figure 2 presents the back-action and uncertainty criteria as heat maps on Bloch spheres, where the location on the Bloch sphere is the initial state of the source spin. These maps help compare between different measurement setups by extracting the maximal, minimal and averaged value from each map. The maps depend on the spins of the probe, as shown by comparing a single-spin probe (Fig. 2a–d) and a double-spin probe (Fig. 2e–h). Figure 2c displays one-dimensional cuts of maps as a function of initial source *z*-magentization (equivalent to elevation angle in the Bloch sphere). Figure 2d depicts the procedure of calculating the uncertainty: from the distribution of force values marked by their mean and standard deviation using error bars, the variance is calculated and divided by the mean-force range squared. It is interesting to note that the classical expected values of the forces arise as the means of these quantum force distributions, as expected from the correspondence principle.

We note how the symmetry of the maps arises from the symmetry of the probe spin distribution. This symmetry is seen in the case of a single spin in Fig. 2a, b, and in the mirror symmetry about the *x*-*z* plane throughout Fig. 2, arising from the probe spatial distribution having the same symmetry. Furthermore, the orientations of the probe spins strongly affect the map distribution and the overall quality of the measurement. Comparing Fig. 2e–h, a change in the orientation of the probe spin on the equator from radially outwards to \(\left| { + \frac{1}{2}} \right\rangle\) (i.e., up) strongly affects both maps. The uncertainty values are more strongly affected, having the average value increase almost by a factor of 5. Figure 2d shows the linear relation between the mean force and the source spin *z*-component, as expected for the classical limit. The standard deviation of each mean value displays the quantum nature of this measurement.

### Optimization using higher spin probes

We now turn to optimizing the probe based on the uncertainty and back-action criteria. Considering standard experiments of magnetic sensing in the quantum regime, we envision the probe as a quantum system such as an atom or a molecule constrained to the cantilever (e.g., refs. ^{7,58,107}). In principle, the probe could be described by its sub-atomic particles, e.g., as a large collection of spin-1/2 particles with complex spatial structure, yet it greatly complicates the analysis. Hence, for the results below, we take the reasonable assumption that the intra-atomic or intra-molecular distances between the spins are much smaller than the distance between the cantilever and the source, and model the probe as a single spin with a higher spin quantum number. This is justified when the energy scale of spin flips inside the probe dominates the Hamiltonian over spin flips of the source. Probes of this structure are thus modeled similarly to the single-spin setup presented in Fig. 2a, b, i.e., no inner-probe geometrical structure. Yet, although seemingly simple, this setup already provides much insight for the fundamental quantum limits of magnetic measurements, exhibiting intriguing features as a function of the spin quantum number.

Figure 3 presents the back action and uncertainty of the high spin number single-spin probes, based on derivations appearing in the Methods section. Figure 3b, c presents the average values of the back action and uncertainty, color coded by spin quantum number. Figure 3d summarizes the criteria for different spin numbers by taking *m* = *s*. Figure 3e, f present the dependence of the back action and uncertainty on the initial source *z*-magnetization component, for different spin numbers (again taking *m* = *s*). The limiting case of *s* → ∞ is plotted in black asterisks. Our results imply that higher spin quantum numbers yield better measurements, and within that, higher spin *z*-components yield better measurements. This conclusion is surprising, when bearing in mind the requirements of both minimal back action and minimal uncertainty. Specifically, this result comes against the classical intuition of having the smallest possible probe charge or mass for minimizing the measurement-induced back action on the source spin.

Note that within each spin quantum number, there is a strong variation of both criteria as a function of the probe’s spin *z*-component. This is especially true for integer-spin probes: in the case of 0-spin states, the lack of magnetic charge implies that no measurement occurs, yielding zero mean-force range and thus diverging uncertainty, yet there is still back action exerted on the source spin (although minimal), occurring due to quantum transitions of the two-particle system. This effect again demonstrates the fundamental difference between quantum and classical measurement—back action can be exerted even without any information being extracted.

It is interesting to compare the performance of this quantum-spin setup to its classical counterpart—the Stern-Gerlach apparatus (SG)—defined as a projection of the spin on its *z*-component by a classical magnetic field that experiences negligible back action. Markedly, our quantum measurement apparatus converges to the results of SG as *s* → ∞, both in average values (Fig. 3d) and in the dependence on initial source state (Fig. 3e, f). This convergence demonstrates the quantum-classical correspondence principle and implies that our measurement scheme can be seen as a quantum extension of the SG scheme. The emergence of the SG scheme raises intriguing questions about the universality of this convergence for other interaction Hamiltonians and whether it is possible to bypass the classical SG performance using a different quantum scheme. In the next part, we investigate this direction using different interaction types and show that the optimality of the SG scheme can already be achieved at lower spin values.

### Optimization using generalized spin–spin interaction

We generalize our model to include additional interaction types other than magnetic dipole-dipole (Eq. (2)), e.g., exchange interaction^{107,127,128,129}, spin quadruple interaction^{130} and the presence of external magnetic fields. The generalized model better captures inter-atomic and inter-molecular interactions of real atomic and molecular probes, as they are often modeled using the above-mentioned Hamiltonians to account for various electric and chemical phenomena. As an example for the richness of the interactions involved, MFMs were demonstrated to operate using exchange interaction even between non-identical atoms^{107,129,131}. In the case of a single-spin probe (as a model for molecular probes), we optimize the measurement by a judicious choice of the source-probe interaction and the probe spin number. To this end, we apply our methods directly on a generalized set of interaction Hamiltonians and investigate how the measurement qualities from Fig. 3 depend on the interaction parameters.

As a proof of concept, we choose a generalized Hamiltonian that includes both magnetic dipole–dipole interaction with an *r*^{−3} dependence (as in Eq. (2)) and ferromagnetic exchange interaction (−**S**_{1}**⋅S**_{2}) with an *r*^{−6} dependence, where *r* is the source-probe distance:

where *α*, *β* are parameters representing the effective strength of each interaction type. In realistic settings, they are functions of the source-probe initial distance and electro-chemical properties of the source and probes spins^{132}. The ratio \(\frac{\alpha }{\beta }\) shall be denoted as the interactions ratio. As guiding examples, note that \(\frac{\alpha }{\beta } = 1\) yields the Ising Hamiltonian \(- S_1^zS_2^z\)^{133} and \(\frac{\alpha }{\beta } = - \frac{1}{2}\) yields the XY Hamiltonian \(S_1^xS_2^x + S_1^yS_2^y\)^{127,128}. Since global Hamiltonian factors do not affect the measurement uncertainty and back action, we investigate this Hamiltonian as a function of \(\frac{\alpha }{\beta }\) and probe spin numbers. Hence, the result of the optimization we seek is triplets of values: \(\frac{\alpha }{\beta }\) and the probe’s state |*s*, *m*〉, which together optimize the measurement uncertainty and back action.

Figure 4 shows how the parameters of the interaction Hamiltonian determine the behavior of the measurement setup. Interestingly, the uncertainty and back action can both be optimized simultaneously by combining an exchange interaction and a dipole-dipole interaction. Spin-1/2 probes reach our best-achieved uncertainty value of \(\frac{1}{6}\) by taking \(\frac{\alpha }{\beta } = 2\), while the back action remains constant as a function of \(\frac{\alpha }{\beta }\) and is not optimized. Nonetheless, both the back action and uncertainty can be simultaneously optimized at larger spin values, reaching the optimal values of both criteria for \(\frac{\alpha }{\beta } = {1}\). The optimized values occur when *m* = *s*, achieved already at spin-1 particles. As a comparison, when the Hamiltonian is made solely of dipole-dipole interactions \(\Big( {\frac{\alpha }{\beta } \to \infty } \Big)\), this optimal value is reached only in the limit *s* → ∞. The optimal Hamiltonian reads \(H_{{{{\mathrm{int}}}}} = - S_1^zS_2^z\), which resembles the Ising model^{133}. An additional effect displayed in Fig. 4b is the divergence of the uncertainty for negative values of \(\frac{\alpha }{\beta }\), occuring for all spin values. This effect matches the limit of *m* = 0 probes in Fig. 3, and occurs due to the vanishing mean-force range, as evident from Eq. (11).

The analysis above can be applied for other types of interactions, including with external magentic fields, and even including molecular anisotropy^{130}. Different Hamiltonians could be relevant in determining the optimal properties for the probe, depending on experimnetal parameters such as the charateristic source-probe distance (affecting each interaction type differently) and the atomic/molecular properties of the source (yielding different interaction effects). Generalizing the source-probe interaction, one can write the interaction Hamiltonian:

where **S**_{1,2} are the vector spin operators, *T* denotes matrix transpose, and *A* is the 3-by-3 interaction tensor. For example, a dipolar interaction uses \(A_{{{{\mathrm{dipolar}}}}} \propto {{{\mathrm{diag}}}}\left( {1,1, - 2} \right)\) and an exchange interaction uses \(A_{{{{\mathrm{exchange}}}}} \propto {{{\mathrm{diag}}}}\left( {1,1,1} \right)\). The eigenvalues of *A* determine the nature of the interaction^{130}. The *A* interaction tensor can be further investigated to improve upon our result, potentially yielding an optimal measurement already at spin-1/2 probes rather than spin-1. In a similar way, additional terms can be added to the Hamiltonian, such as Zeeman terms (proportional to **S**_{1,2}) and spin anisotropy (proportional to \({{{\mathbf{S}}}}_{1,2}^2\) or \({{{\mathbf{S}}}}_{1,2}^{z\quad 2}\)).

### Possible generalizations of our approach

Our formalism can be further generalized in several different directions. One generalization is of the uncertainty measure defined in Eq. (11). The present one has the advantage of simplicity, especially for operations such as averaging and minimizing. Other options include the error-propagation-based uncertainty, replacing the denominator of Eq. (11) by a partial derivative or gradient of observable by the source initial state parameters: \(\frac{{\partial \left\langle {\sigma _z} \right\rangle _{{{{\mathrm{measured}}}}}}}{{\partial \theta _{{{{\mathrm{source}}}}}}}\). In case the derivative is constant, this definition coincides with Eq. (11). Additional options could be using the classical or quantum Fisher information^{1,17}. The quantum Fisher information can be applied on different options, such as the joint pure state of the entire system or the reduced mixed state of the probe. The main subtlety here is the existence of decoherence during the measurement process as experienced by the probe. Additionally, the quantum Fisher information could yield additional uncertainty bounds using the quantum Cramér-Rao bound^{1,134}. We leave this intriguing direction for future work.

A second generalization that can be made in our model is of the pointer (Eq. 4 and subsequent derivation), and specifically the vertical motion of the cantilever. In our formalism, we describe the cantilever using a single vertical displacement *z* with a corresponding quantum state \(\left| z \right\rangle _{{{{\mathrm{pointer}}}}}\), neglecting the inherent width in *z*. The width is related to the wavefunction of the pointer as a quantum harmonic oscillator, whose spatial representation can be written as \(\varphi \left( {z - z_k} \right)\), where *z*_{k} is the equilibrium due to the spin interaction. One may take *φ*(*z* − *z*_{k}) to be a Gaussian function as the ground state of the oscillator; its width would be manifested as an intrinsic quantum noise in the process of reading the cantilever state and inferring the spin–spin force from it. In this work, we assumed ideal cantilever-reading process, yet improvements in this realistically-imperfect process should be of great value in our model of measurement, as they might reduce measurement noise that could obscure our quantum optimization effect. Two types of possible improvements to the reading process are based on squeezed states. First, one can prepare the cantilever initial state *φ* to be squeezed in the *z*-direction, reducing its inherent quantum width, hence reducing the shot noise of measuring the cantilever displacement^{135}. Second, one can prepare the light that is used for measuring the cantilever displacement to be squeezed. This squeezed light has reduced fluctuations in a chosen quadrature (amplitude or phase), and has been proven to enhance measurement accuracy in a variety of setups^{136,137,138,139}. Note that these improvements are complementary to our quantum optimization analysis, as they are related only to the cantilever-reading process and not the spin properties and interaction.

A third generalization of our model can address the small displacement approximation. This approximation is a first-order perturbation of the spin–spin interaction on the cantilever harmonic movement, and is used to neglect the change in the spin–spin eigenstates due to the cantilever vertical displacement. This change occurs when the probe spins are arranged in a non-trivial geometrical structure, such that the cantilever displacement changes the relative distance of each probe spin to the source spin (\({{{\vec{\mathbf r}}}}_{ij}\) in Eq. (3)), which changes the spin–spin Hamiltonian of Eq. (3). Consequently, the first-order approximation is valid under the assumption that the probe-source distance is much larger than the length scale of the probe, and their ratio serves as the small parameter for this approximation. Note that this assumption is similar to the assumption we used to treat the higher spin probe of Fig. 3. Another independent condition that enables this approximation is a large spring constant / large mass of the cantilever. Both options reduce linear effects, but also impairs the overall sensitivity. Further note that this assumption must be relaxed in order to include exotic cantilever quantum states such as cat states. Going beyond the first-order approximation (as in ref. ^{140}) to a second-order approach can be done by incorporating the cantilever vertical displacement into the spin–spin eigenstates as a first-order correction. This correction will only affect the back action, but higher-order corrections could affect the uncertainty as well. An additional way to relax the small displacement assumption is to assume adiabatic changes in the cantilever vertical position compared to the timescale of the spin-state dynamics. The adiabatic changes could be incorporated into the spin–spin interaction, possibly without a perturbation theory.

A fourth generalization to our model is taking into account additional spins nearby the measured spin. In the picture portrayed in Fig. 1, the measured spin could be one of many to measure, and there might be a need to take this crowded environment into account. As a guiding example, there are some works (e.g., ref. ^{141}) that investigate the possibility of using a single spin probe for characterization of the dynamics, interaction type and dimensionality of a many-body spin state in which it is included. To proceed in this direction, there are two possible generalizations: when a nearby spin interacts solely with the measured spin, or interact with the probe spins as well. In the former case, the measured spin is part of a larger (possibly many-body) entangled state, in which case each spin by itself possess a mixed state. The measurement of such mixed state is modeled exactly as described in the Methods section, and very similarly to measurement of a pure state. In the latter case, a nearby spin can act as a weak perturbation on the cantilever, splitting each force-reading into 2^{n+1} values, with *n* being the number of measured spins in the sample, and with possible degeneracy in the forces. The case of *n* = 1 is described in the Methods section. To first order, the splitting is not likely to increase the measurement uncertainty, which is mainly influenced by the large separation between cantilever states. However, the additional perturbation could alter the states of the probe spins and cantilever in a way that alters the back action of the source. Furthermore, the additional spins in the sample might be close enough to the measured spin to prevent perturbative analysis, in which case measurement of a multi-spin simultaneous measurement must be considered.

## Discussion

A key conclusion from Figs. 3, 4 is that increasing the spin quantum number of the probe generally improves the measurement, both in the back-action and uncertainty criteria. Still, Fig. 4 displays that both criteria can be optimized for smaller spin values (all *m* = *s* > 1/2) in case of dipolar and exchange interaction with equal strengths \(\big( {\frac{\alpha }{\beta } = 1} \big)\). Even then, increasing *s* is beneficial for a lower sensitivity in the interaction ratio \(\frac{\alpha }{\beta }\), as seen graphically by the curvature of both Fig. 4a, b near \(\frac{\alpha }{\beta } = 1\). Physically, this means that higher spin values permit larger deviations from \(\frac{\alpha }{\beta } = 1\) for which the measurement quality remains relatively good. The deviation from the optimal ratio \(\frac{\alpha }{\beta } = 1\) could stem from, e.g., setting an improper cantilever vertical equilibrium position above the source.

The result that increasing the probe’s spin number optimizes the measurement may seem surprising given that the source spin is spin-1/2, the most delicate spin possible. Classical intuition for measurement in electro- or magneto-statics is that in classical cases, the best measurement is achieved using a test charge or test magnet, which are defined as probe particles that do not influence the field source. However, in our case, the quantum nature of the probe and source forces them to affect each other. An explanation for the measurement optimality at *s* → ∞ is that this limit resembles the asymmetry present in quantum metrology: where one party is quantum and the other is classical and does not change during the interaction.

A fundamental aspect of our work is the connection to the theory of imperfect quantum cloning^{142,143,144,145,146,147,148,149,150,151,152,153,154,155}. This connection can be utilized to gain a broader perspective on our framework using concepts from quantum information. The source-probe-cantilever system corresponds to a cloned-clone-machine system, respectively. This correspondence is in the sense that the information transfer from the source to the probe and the cantilever (cloning) is analogous to the information transfer from the cloned to the clone and the cloning machine. The theory of imperfect cloning can explain our results and find theoretical bounds on the back action and on the uncertainty of our proposed measurements.

As a simple example, the no-cloning theorem^{142} forbids creating a perfect clone without changing the state of the clone; analogously, any precise measurement should include a non-zero back action, and vice versa^{144,148,154,155}. Yet the theory of imperfect cloning goes beyond this no-go theorem: There is a substantial amount of works that classify cloning machines and bound their accuracy and back action, which we can use to bound the performance of our spin–spin measurements setups. One important example is the universal and optimal cloning machine by Buzek and Hilary^{149}, which present a lower bound on the average back action of cloning a spin-1/2 particle; they showed this lower bound to be 1/6. Later works extended this result to a general number of cloned/clone spins or higher Hilbert space dimensions^{145,147,150,151,152}, and cloning in specific cases, e.g., phase-covariant cloning, where the cloned is assumed to be on the equator of the Bloch sphere^{156,157,158}. Experimental works have obtained and verified these bounds in various physical settings and cloning interactions^{159,160,161,162,163,164}.

Let us further develop the cloning-measurement correspondence in our case. The scheme that measures a single spin-1/2 source using a single spin-*s* corresponds to a 1 → *M* cloning machine that clones a single spin-1/2 to a total of *M* spin-1/2 particles, prepared in advance in the probe with a total angular momentum spin state *s*. The correspondence is expressed both in the mathematical formulation of the interaction and in its physical origin: every spin-*s* probe (e.g., containing a single Nickel atom), is composed of many spin-1/2 particles (electrons, protons and neutrons), in a joint state that yields a higher spin value due to addition of angular momentum; all of the probe’s spins interact with the source spin, yielding the above-mentioned 1 → *M* cloning machine.

The optimal 1 → *M* machine was introduced in ref. ^{150} as an extension of the optimal 1 → 2 machine introduced in ref. ^{149}. Interestingly, the optimal machine in the *M* → ∞ limit and our machine in the *s* → ∞ limit are identical, and resemble the SG apparatus. Our setup yields this optimal machine already at *s* = 1 with the appropriate interaction, as shown in Fig. 4. In the absence of this optimization, our setup clones sub-optimally. The optimal machine has a state-dependent cloning fidelity, as it perfectly clones the states on the poles of the Bloch sphere, and transforms the states on the equator to a completely mixed state. Further note that the SG scheme is known as the best state estimation scheme given a single copy of a spin state^{146}, demonstrating the equivalence between state estimation and cloning to a clone’s Hilbert space of a diverging size.

Continuing this line of thought, we believe that one can take inspiration from optimal cloning machines in the conceptual design of future measurement devices, when such devices approach the ultimate sensitivity limited by the foundations of quantum information theory. Specifically, this means taking the definition of the cloning process and finding probes and interaction Hamiltonian whose eigenstates obey this definition. As an example, one can take the 1 → 2 universal machine from ref. ^{149}, and write it as a measurement in the notations of Eq. (4):

where \(\big| {{{\Psi }}^ \pm } \big\rangle = \frac{1}{{\sqrt 2 }}\big( {\big| { + \frac{1}{2}, - \frac{1}{2}} \big\rangle \pm \big| { - \frac{1}{2}, + \frac{1}{2}} \big\rangle } \Big)\) are the common Bell states. The case \(a,b = \sqrt {\frac{2}{3}} ,\sqrt {\frac{1}{3}}\) corresponds to ref. ^{149} and the case *a*, *b* = 1,0 corresponds to the Wootters-Zurek cloning machine^{142,149}. Using this notation helps identifying the relevant interaction Hamiltonian for each cloning process. It remains to be seen which specific physical Hamiltonian can implement each of these cases and their generalizations. Another interesting machine to mention is the optimal phase-covariant machine^{156,157,158}, which has some similarities in structure to our spin-1/2 probe case. This machine clones states on the equator with optimal fidelity.

Looking forward, our formalism can be applied to a wide range of scenarios, for example, finding which probe spin configuration best measures a high spin source. In this case, other interactions can be taken into account, such as quadruple-quadrupole interaction that stems from anisotropic electrostatic distributions of higher spin atoms. Our framework could also be extended to more complex observables, such as simultaneous measurements of non-commuting variables, or multi-spin observables of entangled sources. It would also be of interest to extend our methods for treating multiple-shot measurements and see how the uncertainty and back action behave as the number of shots increases. There is much more to pursue in analyzing the tradeoff between uncertainty and back action^{144,148,154,155,165,166,167,168}.

We expect more advanced fully analytical formulas to be obtainable for the back action and uncertainty as a function of the spatial spin distribution, possibly using a magnetic multipole expansion. Another important prospect worth-pursuing is the usage of more exotic probes, such as spin-squeezed probes^{169,170,171} or entangled probes^{172,173,174}, which are known to improve measurements in quantum metrology applications. This direction should be studied in light of cloning theory, where the cloning machine would now be of the form *N* → *M*^{145,150} and is related to similar concepts in quantum state estimation^{146,153,175}.

To conclude, we developed a framework to quantify and optimize magnetic nearfield measurement schemes at their ultimate limit of sensitivity, which arises from fundamental principles of quantum information. To exemplify this framework, we analyzed both analytically and numerically different measurement setups of the *z*-magnetization of a single spin. We quantified these measurements based on the back action they exert on the source spin and their uncertainty, finding fully analytical expressions for an arbitrary-spin-size probe. Our results display a quantum-to-classical transition as the spin size increases, converging into a Stern-Gerlach-type measurement. Furthermore, we showed how shaping the interaction Hamiltonian can achieve an optimal performance already at low spin numbers. Looking at the bigger picture, we expect the study of quantum cloning and its relation to measurement to further provide bounds and insights pertaining to fundamental measurement processes in many other physical systems.

## Methods

### Generalization to an initially mixed source spin state

The source spin might initially possess a mixed state, for example in the case of measuring a single spin out of a larger group. In this case, Eqs. (5–9) must be slightly modified as follows. We first define the initial source density matrix *ρ*_{0}

where \(p_0^n\) are real number between 0 and 1 and \(\left| {\psi _0^n} \right\rangle\) are pure spin states, possibly orthogonal. This representation may not be unique, but is written in this form to keep the formulation general. All the subsequent states from Eqs. (5–8) are modified to also include the incoherent summation over *n*, which signifies a state that originates from a measurement that starts from a source spin pure state \(\left| {\psi _0^n} \right\rangle\). As an example, the final total density matrix from Eq. (5) is now re-written as

and Eqs. (6–8) are modified accordingly. The \(\rho _{{{{\mathrm{tot}}}}}^n\) is the final total density matrix originating from the state \(\left| {\psi _0^n} \right\rangle\), taken from Eq. (5). The back action from Eq. (9) must use the proper fidelity measured between mixed states, which we still take as the standard one^{126}

where tr is the trace operator. All subsequent calculations can be carried out from here similarly to the pure-state case.

### Calculation for a probe of spin-1/2

The single-spin setup can be solved analytically for any spin quantum number. We first provide a full solution to the spin-1/2 case to illustrate our methodology, and then generalize our results for an arbitrary spin number. The geometrical setup is identical to the one depicted in Fig. 2a, b, and the results of our theoretical calculations agree with our numerical simulations. Based on Eq. (2), the Hamiltonian reads

In order to use Eqs. (4–8), we write the spectral decomposition of *H* up to its pre-factors from Eq. (19) as

where \(\left| {{{\Psi }}^ \pm } \right\rangle = \frac{1}{{\sqrt 2 }}\left( {\left| {\frac{1}{2}, - \frac{1}{2}} \right\rangle \pm \left| { - \frac{1}{2},\frac{1}{2}} \right\rangle } \right)\) are the common Bell states. For clarity, the probe- and source-spin states are written together in the same vector (in this order), and the probe/source notations are omitted.

Let us now compute the back action and uncertainty for an initial source state \(\left| {\psi _0} \right\rangle = \cos \frac{\theta }{2}\left| { - \frac{1}{2}} \right\rangle + e^{i\phi }{{{\mathrm{sin}}}}\frac{\theta }{2}\left| {\frac{1}{2}} \right\rangle\), where \(\theta \in \left[ {0,\pi } \right]\) and \(\phi \in \left[ { - \pi ,\pi } \right]\) are the elevation and azimuth angles (respectively) in the Bloch sphere. We take the probe state to be \(\left| { - \frac{1}{2}} \right\rangle\); this choice characterizes the measurement setup but does not change the final values of the criteria in the spin-1/2 case, due to rotational symmetry. Writing the state of the system in the notations of Eq. (4), we obtain

In the notations of Eq. (4), \(\left| {z_{1,2,3}} \right\rangle = \left| { - \frac{1}{2}} \right\rangle ,\left| 0 \right\rangle ,\left| 1 \right\rangle\) and \(\alpha _{11} = \cos \frac{\theta }{2}\), \(\alpha _{32} = \alpha _{43} = \frac{1}{{\sqrt 2 }}e^{i\phi }\sin \frac{\theta }{2}\). Using Eq. (7) for the source final state, we obtain \(\rho _{{{{\mathrm{source}}}}} = \cos ^2\frac{\theta }{2}\left| {\frac{1}{2}} \right\rangle \left\langle {\frac{1}{2}} \right| + \sin ^2\frac{\theta }{2} \cdot \frac{1}{2}{\Bbb I}\), and thus the back action is:

yielding a minimal value of 0 (*θ* = 0), maximal value of \(\frac{9}{{16}}\left( {\theta = \frac{{2\pi }}{3}} \right)\) and averaged value of \(\frac{5}{{12}}\).

For the uncertainty, we calculate the force of each eigenstate by its derivative with respect to *z*. For the case of a single-spin probe of any spin quantum number, the energy *E* depends on inter-spin distance *z* as \(E\sim \frac{1}{{z^3}}\), and thus the forces *F* scale as \(F = - \frac{d}{{dz}}E\sim - \frac{3}{{r^4}}\sim - \frac{3}{r}E\). Therefore, the set of forces equals the set of energies up to a constant, which cancels in the uncertainty calculation. The probabilities corresponding to the eigenenergies \(- \frac{1}{2},0,1\) are \({{{\mathrm{cos}}}}^2\frac{\theta }{2},\frac{1}{2}{{{\mathrm{sin}}}}^2\frac{\theta }{2},\frac{1}{2}{{{\mathrm{sin}}}}^2\frac{\theta }{2}\), respectively. The mean of the force distribution is cos *θ*, exactly as classical calculations predict. The variance is \({{{\mathrm{sin}}}}^2\frac{\theta }{2} + {{{\mathrm{sin}}}}^2\theta\), and the mean-force range is \(\frac{9}{2}\). Using the definition of the uncertainty (Eq. (11)), Eq. (23) yields

with minimal value of 0 (*θ* = 0), maximal value of \(\frac{{25}}{{48}}\left( {{{{\mathrm{cos}}}}\theta = - \frac{1}{4}} \right)\) and averaged value of \(\frac{7}{{24}}\). Note that all of the spin-1/2 results above are consistent with Fig. 2 that displays uncertainty and back-action maps for a spin-1/2 probe.

### Calculation for a probe of arbitrary spin *s*

We now generalize our results to higher spin quantum numbers. We denote the total spin of the probe by *s*. The Hamiltonian remains the same, with **S**_{2} being the spin-*s* operators. In this case, the probe’s initial state can be one of \(\left| { - s} \right\rangle ,\left| { - s + 1} \right\rangle , \ldots ,\left| s \right\rangle\), each yielding different values of back action and uncertainty, which we now explore. By using total spin conservation, the eigenstates and eigenvalues of the Hamiltonian, \(\left| {{{\Phi }}_m} \right\rangle ,\lambda _m\), are obtained

where \(S_2^ +\) is the raising operator for the probe spin. It holds that

where Eqs. (26–28) are obtained from algebraic manipulations on the eigenvalue problem, and Eq. (29) from eigenvector orthogonality.

Using the spectral decomposition of the Hamiltonian, we calculate the uncertainty and back action for a specific initial source state of angles *θ*, *ϕ*, as before. The probe initial state is |*m*〉 for \(\left| m \right| \le s\). In this case, we note two important remarks. First, the forces are simply −3 times the energies, as in the spin-1/2 case. Second, there is a strong degeneracy in this system: almost every eigenvalue has multiplicity of two, since the eigenvalue expression is symmetric under the exchange \(m \leftrightarrow - m - 1\) for \(- s \le m \le s - 1\). The only exception is the eigenvalues of \(m = \frac{1}{2}\), each appearing only once. Fortunately, this strong degeneracy only affects the back-action calculation for *m* = 0, since only this case features non-zero overlaps of the system state with two degenerate eigenstates. Therefore, we first treat the case of *m* ≠ 0 and then *m* = 0.

Given *m* ≠ 0, the system is initially at the state \(\left| m\right\rangle \left| {\psi_{0}} \right\rangle\), which overlaps with the eigenstates \(\big|{{{\Psi }}_{j}^{\pm} } \big\rangle = \alpha_{j}^{\pm} \big| {j,\frac{1}{2}} \big\rangle + \beta_{j}^{\pm} \big| {j + 1, - \frac{1}{2}} \big\rangle\) for *j* = *m* − 1, *m* (two eigenstates for each *j*), and with \(\left| { \pm s, \pm \frac{1}{2}} \right\rangle\) if *m* = ±*s*. We assume without loss of generality that *m* > 0, since symmetry arguments force both criteria to be even functions of *m*. Therefore, for 0 < *m* < *s*, there are four relevant non-degenerate eigenstates, \(\left| {{{\Psi }}_{m-1}^{+} } \right\rangle ,\left| {{{\Psi }}_{m-1}^{-}} \right\rangle ,\left| {{{\Psi }}_{m}^{+} } \right\rangle ,\left| {{{\Psi}}_{m}^{-} } \right\rangle\), for which the overlaps with the initial system state are \({\beta}_{m - 1}^{+} \cos \frac{\theta}{2},{\beta}_{m - 1}^{-}{\rm{cos}} \frac{\theta }{2},\alpha_{m}^{+} e^{i\phi }\sin \frac{\theta}{2},\alpha_{m}^{-} e^{i\phi }\sin \frac{\theta }{2}\). The back action in this case is \(\frac{1}{2}{\rm{sin}}^{2}\theta + 2{\rm{cos}} \theta \left({\rm{cos}}^{2}\frac{\theta}{2}\left(\alpha_{m-1}^{+}\beta_{m - 1}^{+}\right)^{2} - {\rm{sin}}^{2}\frac{\theta}{2}\left(\alpha_{m}^{+}\beta_{m}^{+}\right)^{2}\right)\), and its average is \(\frac{1}{3}( {( {\alpha _{m - 1}^ + \beta _{m - 1}^ + } )^2 + ( {\alpha _m^ + \beta _m^ + } )^2 + 1} )\).

For *m* = *s*, there are only three eigenstates: \(\left| {{{\Psi }}_{s - 1}^ + } \right\rangle ,\left| {{{\Psi }}_{s - 1}^ - } \right\rangle ,\left| {s,\frac{1}{2}} \right\rangle\), with the corresponding overlaps \(\beta _{s - 1}^ + \cos \frac{\theta }{2},\beta _{s - 1}^ - \cos \frac{\theta }{2},e^{i\phi }\sin \frac{\theta }{2}\). A similar calculation yields back action of \(\frac{1}{2}\sin ^2\theta - 2\left( {\alpha _{s - 1}^ + \beta _{s - 1}^ + } \right)^2\sin ^2\frac{\theta }{2}\cos \theta\), with average \(\frac{1}{3}( {( {\alpha _{s - 1}^ + \beta _{s - 1}^ + } )^2 + 1} )\), where \(\left( {\alpha _{s - 1}^ + \beta _{s - 1}^ + } \right)^2 = \frac{1}{2}\frac{s}{{4s^2 - 2s + 1}}\).

The case *m* = 0 deserves special treatment and yields peculiar results. In this case, there are two doubly-degenerate eigenstates that have non-zero overlap with the initial spins state: \(\left| {{{\Psi }}_{ - 1}^ + } \right\rangle ,\left| {{{\Psi }}_{ - 1}^ - } \right\rangle ,\left| {{{\Psi }}_0^ + } \right\rangle ,\left| {{{\Psi }}_0^ - } \right\rangle\), where the degeneracy is among the pairs \(| {{{\Psi }}_{ - 1,0}^ + } \rangle\) and \(| {{{\Psi }}_{ - 1,0}^ - } \rangle\), for which \(\left( {\alpha _{ - 1}^ \pm ,\beta _{ - 1}^ \pm } \right) = \left( {\beta _0^ \pm ,\alpha _0^ \pm } \right)\). Therefore, the final source state is \(\rho_{\mathrm{source}} = \left(\alpha_0^{+2} + \beta_0^{ + 2}\right)\left|\psi_{0} \right\rangle \left\langle \psi_{0} \right| + \left(1 - \left(\alpha_0^{ + 2} + \beta_0^{ + 2} \right) \right)\left(\sin ^{2}\frac{\theta }{2}\left| - \frac{1}{2} \right\rangle \left\langle - \frac{1}{2} \left| + \cos^{2}\frac{\theta }{2}\right|\frac{1}{2} \right\rangle \left\langle \frac{1}{2} \right| \right)\), yielding back action of \(\left( {\alpha _0^ + \beta _0^ + } \right)^2\left( {2 - \sin ^2\theta } \right),\frac{1}{{\left( {\alpha _0^ + \beta _0^ + } \right)^2}} = 1 + \frac{1}{{s^2 + s}}\), with average of \(\frac{4}{3}\left( {\alpha _0^ + \beta _0^ + } \right)^2\). Note that for a given *s*, the back action for *m* = 0 is minimal, yet this measurement setup does not extract any information, as discussed below.

For the uncertainty, we first calculate the mean force using the force values and probabilities. Interestingly, in all cases, the mean force equals the classical value \(m\cos \theta\). The variance equals \(\frac{1}{4}\left( {s\left( {s + 1} \right) + 3m^2 + m\cos \theta - 4m^2\cos ^2\theta } \right)\), with average value of \(\frac{1}{4}\left( {s\left( {s + 1} \right) + \frac{5}{3}m^2} \right)\). After normalizing by the mean-force range, the uncertainty reads \(\frac{1}{{16}}\left[ {\frac{{s\left( {s + 1} \right)}}{{m^2}} + \frac{5}{3}} \right]\). Note the −*m* ↔ *m* symmetry, as well as the monotonous decrease as a function of *s* (for *m* = *s*) and as a function of *m* (for a given *s*). Additionally, note the limit \(\to \frac{1}{6}\) for *m* = *s* → ∞. Finally, note the divergence at *m* = 0. This divergence stems from the vanishing mean-force range, implying that the measurement in this case gives zero information. This fact is quite intuitive, since *m* = 0 implies no magnetic interaction, implying no measurement.

## Data availability

The data that supports the findings of this study are available from the corresponding author upon request.

## Code availability

The codes used for numerical analysis are available from the corresponding author upon request.

## References

Helstrom, C. W. Quantum detection and estimation theory.

*J. Stat. Phys.***1**, 231–252 (1969).Giovannetti, V., Lloyd, S. & Maccone, L. Quantum-enhanced measurements: beating the standard quantum limit.

*Science***306**, 1330–1336 (2004).Tóth, G. & Apellaniz, I. Quantum metrology from a quantum information science perspective.

*J. Phys. A Math. Theor.***47**, 424006 (2014).Ahmadi, M., Bruschi, D. E., Sabín, C., Adesso, G. & Fuentes, I. Relativistic quantum metrology: exploiting relativity to improve quantum measurement technologies.

*Sci. Rep.***4**, 4996 (2015).Degen, C., Reinhard, F. & Cappellaro, P. Quantum sensing.

*Rev. Mod. Phys.***89**, 035002 (2017).Braun, D. et al. Quantum-enhanced measurements without entanglement.

*Rev. Mod. Phys.***90**, 035006 (2018).Czap, G. et al. Probing and imaging spin interactions with a magnetic single-molecule sensor.

*Science***364**, 670–673 (2019).Atzori, M. & Sessoli, R. The second quantum revolution: role and challenges of molecular chemistry.

*J. Am. Chem. Soc.***141**, 11339–11352 (2019).Meyer, J. J., Borregaard, J. & Eisert, J. A variational toolbox for quantum multi-parameter estimation.

*npj Quantum Inf***7**, 89 (2021).Cappellaro, P. et al. Entanglement assisted metrology.

*Phys. Rev. Lett.***94**, 020502 (2005).Berman, G. P. et al. Measurement of single electron and nuclear spin states based on optically detected magnetic resonance.

*J. Phys. Conf. Ser.***38**, 167–170 (2006).Giovannetti, V., Lloyd, S. & Maccone, L. Quantum metrology.

*Phys. Rev. Lett.***96**, 010401 (2006).Roy, S. M. & Braunstein, S. L. Exponentially enhanced quantum metrology.

*Phys. Rev. Lett.***100**, 220501 (2008).Wiseman, H. M. & Milburn, G. J.

*Quantum Measurement and Control*.*Quantum Measurement and Control*(Cambridge University Press, 2009).Rivas, Á. & Luis, A. Precision quantum metrology and nonclassicality in linear and nonlinear detection schemes.

*Phys. Rev. Lett.***105**, 010403 (2010).Giovannetti, V., Lloyd, S. & Maccone, L. Advances in quantum metrology.

*Nat. Photonics***5**, 222–229 (2011).Holevo, A.

*Probabilistic and Statistical Aspects of Quantum Theory*.*Probabilistic and Statistical Aspects of Quantum Theory*(Edizioni della Normale, 2011).Peres, A. Measurement of time by quantum clocks.

*Am. J. Phys.***48**, 552–557 (1980).Bužek, V., Derka, R. & Massar, S. Optimal quantum clocks.

*Phys. Rev. Lett.***82**, 2207–2210 (1999).de Burgh, M. & Bartlett, S. D. Quantum methods for clock synchronization: Beating the standard quantum limit without entanglement.

*Phys. Rev. A***72**, 042301 (2005).The LIGO Scientific Collaboration. A gravitational wave observatory operating beyond the quantum shot-noise limit.

*Nat. Phys.***7**, 962–965 (2011).Ma, Y. et al. Proposal for gravitational-wave detection beyond the standard quantum limit through EPR entanglement.

*Nat. Phys.***13**, 776–780 (2017).Khalili, F. Y. & Polzik, E. S. Overcoming the standard quantum limit in gravitational wave detectors using spin systems with a negative effective mass.

*Phys. Rev. Lett.***121**, 031101 (2018).Brida, G., Genovese, M. & Ruo Berchera, I. Experimental realization of sub-shot-noise quantum imaging.

*Nat. Photonics***4**, 227–230 (2010).Humphreys, P. C., Barbieri, M., Datta, A. & Walmsley, I. A. Quantum enhanced multiple phase estimation.

*Phys. Rev. Lett.***111**, 070403 (2013).Mauranyapin, N. P., Madsen, L. S., Taylor, M. A., Waleed, M. & Bowen, W. P. Evanescent single-molecule biosensing with quantum-limited precision.

*Nat. Photonics***11**, 477–481 (2017).Moreau, P.-A., Toninelli, E., Gregory, T. & Padgett, M. J. Imaging with quantum states of light.

*Nat. Rev. Phys.***1**, 367–380 (2019).Casacio, C. A. et al. Quantum-enhanced nonlinear microscopy.

*Nature***594**, 201–206 (2021).Balasubramanian, G. et al. Nanoscale imaging magnetometry with diamond spins under ambient conditions.

*Nature***455**, 648–651 (2008).Degen, C. L. Scanning magnetic field microscope with a diamond single-spin sensor.

*Appl. Phys. Lett.***92**, 243111 (2008).Taylor, J. M. et al. High-sensitivity diamond magnetometer with nanoscale resolution.

*Nat. Phys.***4**, 810–816 (2008).Maertz, B. J., Wijnheijmer, A. P., Fuchs, G. D., Nowakowski, M. E. & Awschalom, D. D. Vector magnetic field microscopy using nitrogen vacancy centers in diamond.

*Appl. Phys. Lett.***96**, 092504 (2010).Steinert, S. et al. High sensitivity magnetic imaging using an array of spins in diamond.

*Rev. Sci. Instrum.***81**, 043705 (2010).Zhao, N., Hu, J.-L., Ho, S.-W., Wan, J. T. K. & Liu, R. B. Atomic-scale magnetometry of distant nuclear spin clusters via nitrogen-vacancy spin in diamond.

*Nat. Nanotechnol.***6**, 242–246 (2011).Dolde, F. et al. Electric-field sensing using single diamond spins.

*Nat. Phys.***7**, 459–463 (2011).Fang, K. et al. High-sensitivity magnetometry based on quantum beats in diamond nitrogen-vacancy centers.

*Phys. Rev. Lett.***110**, 130802 (2013).Schlenga, K. et al. Low-field magnetic resonance imaging with a high-Tc DC superconducting quantum interference device.

*Appl. Phys. Lett.***75**, 3695–3697 (1999).Bending, S. J. Local magnetic probes of superconductors.

*Adv. Phys.***48**, 449–535 (1999).Thiel, L. et al. Quantitative nanoscale vortex imaging using a cryogenic quantum magnetometer.

*Nat. Nanotechnol.***11**, 677–681 (2016).Shlyakhov, A. R. et al. Quantum metrology with a transmon qutrit.

*Phys. Rev. A***97**, 022115 (2018).Wang, W. et al. Heisenberg-limited single-mode quantum metrology in a superconducting circuit.

*Nat. Commun.***10**, 4382 (2019).Wildermuth, S. et al. Sensing electric and magnetic fields with Bose-Einstein condensates.

*Appl. Phys. Lett.***88**, 264103 (2006).Vengalattore, M. et al. High-resolution magnetometry with a spinor bose-einstein condensate.

*Phys. Rev. Lett.***98**, 200801 (2007).Koschorreck, M., Napolitano, M., Dubost, B. & Mitchell, M. W. High resolution magnetic vector-field imaging with cold atomic ensembles.

*Appl. Phys. Lett.***98**, 074101 (2011).Behbood, N. et al. Real-time vector field tracking with a cold-atom magnetometer.

*Appl. Phys. Lett.***102**, 173504 (2013).Huang, J., Wu, S., Zhong, H. & Lee, C. Quantum metrology with cold atoms.

*Annu. Rev. Cold Atoms Mol.***2**, 365–415 (2014).Pezzè, L., Smerzi, A., Oberthaler, M. K., Schmied, R. & Treutlein, P. Quantum metrology with nonclassical states of atomic ensembles.

*Rev. Mod. Phys.***90**, 035005 (2018).O’Brien, J. L., Furusawa, A. & Vučković, J. Photonic quantum technologies.

*Nat. Photonics***3**, 687–695 (2009).Pirandola, S., Bardhan, B. R., Gehring, T., Weedbrook, C. & Lloyd, S. Advances in photonic quantum sensing.

*Nat. Photonics***12**, 724–733 (2018).Paulisch, V., Perarnau-Llobet, M., González-Tudela, A. & Cirac, J. I. Quantum metrology with one-dimensional superradiant photonic states.

*Phys. Rev. A***99**, 043807 (2019).Polino, E., Valeri, M., Spagnolo, N. & Sciarrino, F. Photonic quantum metrology.

*AVS Quantum Sci.***2**, 024703 (2020).Schmitt, S. et al. Optimal frequency measurements with quantum probes.

*npj Quantum Inf***7**, 55 (2021).Jelezko, F., Gaebel, T., Popa, I., Gruber, A. & Wrachtrup, J. Observation of coherent oscillations in a single electron spin.

*Phys. Rev. Lett.***92**, 076401 (2004).Childress, L. et al. Coherent dynamics of coupled electron and nuclear spin qubits in diamond.

*Science***314**, 281–285 (2006).Hanson, R., Dobrovitski, V. V., Feiguin, A. E., Gywat, O. & Awschalom, D. D. Coherent dynamics of a single spin interacting with an adjustable spin bath.

*Science***320**, 352–355 (2008).Hanson, R. & Awschalom, D. D. Coherent manipulation of single spins in semiconductors.

*Nature***453**, 1043–1049 (2008).Koehl, W. F., Buckley, B. B., Heremans, F. J., Calusine, G. & Awschalom, D. D. Room temperature coherent control of defect spin qubits in silicon carbide.

*Nature***479**, 84–87 (2011).Yang, K. et al. Coherent spin manipulation of individual atoms on a surface.

*Science***366**, 509–512 (2019).Forrester, P. R. et al. Quantum state manipulation of single atom magnets using the hyperfine interaction.

*Phys. Rev. B***100**, 180405 (2019).Hess, H. F. et al. Magnetic trapping of spin-polarized atomic hydrogen.

*Phys. Rev. Lett.***59**, 672–675 (1987).Huffman, P. R. et al. Magnetic trapping of neutrons.

*Nature***403**, 62–64 (2000).Hogan, S. D., Wiederkehr, A. W., Schmutz, H. & Merkt, F. Magnetic trapping of hydrogen after multistage zeeman deceleration.

*Phys. Rev. Lett.***101**, 143001 (2008).Lu, H.-I., Kozyryev, I., Hemmerling, B., Piskorski, J. & Doyle, J. M. Magnetic trapping of molecules via optical loading and magnetic slowing.

*Phys. Rev. Lett.***112**, 113006 (2014).Wang, Z. M., Wu, R. G., Wang, Z. P. & Ramanujan, R. V. Magnetic trapping of bacteria at low magnetic fields.

*Sci. Rep.***6**, 26945 (2016).Aguayo, J. B., Blackband, S. J., Schoeniger, J., Mattingly, M. A. & Hintermann, M. Nuclear magnetic resonance imaging of a single cell.

*Nature***322**, 190–191 (1986).Heinze, S. et al. Real-space imaging of two-dimensional antiferromagnetism on the atomic scale.

*Science***288**, 1805–1808 (2000).Mamin, H. J., Poggio, M., Degen, C. L. & Rugar, D. Nuclear magnetic resonance imaging with 90-nm resolution.

*Nat. Nanotechnol.***2**, 301–306 (2007).Meier, F., Zhou, L., Wiebe, J. & Wiesendanger, R. Revealing magnetic interactions from single-atom magnetization curves.

*Science***320**, 82–86 (2008).Chang, K., Eichler, A., Rhensius, J., Lorenzelli, L. & Degen, C. L. Nanoscale imaging of current density with a single-spin magnetometer.

*Nano Lett***17**, 2367–2373 (2017).Hauptmann, N. et al. Quantifying exchange forces of a spin spiral on the atomic scale.

*Nat. Commun.***11**, 1197 (2020).Sun, Q.-C. et al. Magnetic domains and domain wall pinning in atomically thin CrBr3 revealed by nanoscale imaging.

*Nat. Commun.***12**, 1989 (2021).Marchiori, E. et al. Nanoscale magnetic field imaging for 2D materials.

*Nat. Rev. Phys.***4**, 49–60 (2022).Rugar, D., Budakian, R., Mamin, H. J. & Chui, B. W. Single spin detection by magnetic resonance force microscopy.

*Nature***430**, 329–332 (2004).Neumann, P. et al. Single-shot readout of a single nuclear spin.

*Science***329**, 542–544 (2010).Barry, J. F. et al. Optical magnetic detection of single-neuron action potentials using quantum defects in diamond.

*Proc. Natl. Acad. Sci.***113**, 14133–14138 (2016).Rucco, R. et al. Brain connectivity study by multichannel system based on superconducting quantum magnetic sensors.

*Eng. Res. Express***2**, 015038 (2020).Cory, D. G., Fahmy, A. F. & Havel, T. F. Ensemble quantum computing by NMR spectroscopy.

*Proc. Natl. Acad. Sci.***94**, 1634–1639 (1997).Warren, W. S. The usefulness of NMR quantum computing.

*Science***277**, 1688–1690 (1997).Jones, J. A. & Mosca, M. Implementation of a quantum algorithm on a nuclear magnetic resonance quantum computer.

*J. Chem. Phys.***109**, 1648–1653 (1998).Leuenberger, M. N. & Loss, D. Quantum computing in molecular magnets.

*Nature***410**, 789–793 (2001).Harneit, W. Fullerene-based electron-spin quantum computer.

*Phys. Rev. A***65**, 032322 (2002).Yamamoto, S. et al. Adiabatic quantum computing with spin qubits hosted by molecules.

*Phys. Chem. Chem. Phys.***17**, 2742–2749 (2015).Owston, C. N. A Hall effect magnetometer for small magnetic fields.

*J. Sci. Instrum.***44**, 798–800 (1967).Auzinsh, M. et al. Can a quantum nondemolition measurement improve the sensitivity of an atomic magnetometer?

*Phys. Rev. Lett.***93**, 173002 (2004).Mitchell, M. W. & Palacios Alvarez, S. Colloquium: quantum limits to the energy resolution of magnetic field sensors.

*Rev. Mod. Phys.***92**, 021001 (2020).Ruster, T. et al. Entanglement-based dc magnetometry with separated ions.

*Phys. Rev. X***7**, 031050 (2017).Zhao, K. F. & Wu, Z. Evanescent wave magnetometer.

*Appl. Phys. Lett.***89**, 261113 (2006).Xu, S. et al. Magnetic resonance imaging with an optical atomic magnetometer.

*Proc. Natl. Acad. Sci.***103**, 12668–12671 (2006).Rondin, L. et al. Magnetometry with nitrogen-vacancy defects in diamond.

*Rep. Prog. Phys.***77**, 056503 (2014).Budker, D. & Romalis, M. Optical magnetometry.

*Nat. Phys.***3**, 227–234 (2007).Wasilewski, W. et al. Quantum noise limited and entanglement-assisted magnetometry.

*Phys. Rev. Lett.***104**, 133601 (2010).Cole, J. H. & Hollenberg, L. C. L. Scanning quantum decoherence microscopy.

*Nanotechnology***20**, 495401 (2009).Barry, J. F. et al. Sensitivity optimization for NV-diamond magnetometry.

*Rev. Mod. Phys.***92**, 015004 (2020).Degen, C. L., Poggio, M., Mamin, H. J., Rettner, C. T. & Rugar, D. Nanoscale magnetic resonance imaging.

*Proc. Natl. Acad. Sci.***106**, 1313–1317 (2009).Puntes, V. F., Gorostiza, P., Aruguete, D. M., Bastus, N. G. & Alivisatos, A. P. Collective behaviour in two-dimensional cobalt nanoparticle assemblies observed by magnetic force microscopy.

*Nat. Mater.***3**, 263–268 (2004).Chernobrod, B. M. & Berman, G. P. Spin microscope based on optically detected magnetic resonance.

*J. Appl. Phys.***97**, 014903 (2005).Wiesendanger, R. Spin mapping at the nanoscale and atomic scale.

*Rev. Mod. Phys.***81**, 1495–1550 (2009).Koblischka, M. R. & Hartmann, U. Recent advances in magnetic force microscopy.

*Ultramicroscopy***97**, 103–112 (2003).Hartmann, U. Magnetic force microscopy.

*Annu. Rev. Mater. Sci.***29**, 53–87 (1999).Kazakova, O. et al. Frontiers of magnetic force microscopy.

*J. Appl. Phys.***125**, 060901 (2019).Wadas, A. & Grütter, P. Theoretical approach to magnetic force microscopy.

*Phys. Rev. B***39**, 12013–12017 (1989).Schönenberger, C. & Alvarado, S. F. Understanding magnetic force microscopy.

*Zeit. Phys. B Condens. Matter***80**, 373–383 (1990).Mamin, H. J., Budakian, R., Chui, B. W. & Rugar, D. Magnetic resonance force microscopy of nuclear spins: Detection and manipulation of statistical polarization.

*Phys. Rev. B***72**, 024413 (2005).Zhao, X. et al. Magnetic force microscopy with frequency-modulated capacitive tip–sample distance control.

*New J. Phys.***20**, 013018 (2018).Dai, G. et al. Metrological large range magnetic force microscopy.

*Rev. Sci. Instrum.***89**, 093703 (2018).Verlhac, B. et al. Atomic-scale spin sensing with a single molecule at the apex of a scanning tunneling microscope.

*Science***366**, 623–627 (2019).Kaiser, U., Schwarz, A. & Wiesendanger, R. Magnetic exchange force microscopy with atomic resolution.

*Nature***446**, 522–525 (2007).Waldherr, G. et al. High-dynamic-range magnetometry with a single nuclear spin in diamond.

*Nat. Nanotechnol.***7**, 105–108 (2012).Clarke, J. In

*SQUID Sensors: Fundamentals, Fabrication and Applications*(Weinstock, H.) 1–62 (NSSE,1996).Kirtley, J. R. & Wikswo, J. P. Scanning SQUID microscopy.

*Annu. Rev. Mater. Sci*.**29**, 117–165 (1999).Veauvy, C., Hasselbach, K. & Mailly, D. Scanning μ-superconduction quantum interference device force microscope.

*Rev. Sci. Instrum.***73**, 3825 (2002).Kleiner, R., Koelle, D., Ludwig, F. & Clarke, J. Superconducting quantum interference devices: state of the art and applications.

*Proc. IEEE***92**, 1534–1548 (2004).Clarke, J. & Braginski, A. I.

*The SQUID Handbook*.*The SQUID Handbook*vol. 1 (Wiley Blackwell, 2005).Cleuziou, J.-P., Wernsdorfer, W., Bouchiat, V., Ondarçuhu, T. & Monthioux, M. Carbon nanotube superconducting quantum interference device.

*Nat. Nanotechnol.***1**, 53–59 (2006).Fagaly, R. L. Superconducting quantum interference device instruments and applications.

*Rev. Sci. Instrum.***77**, 101101 (2006).Vasyukov, D. et al. A scanning superconducting quantum interference device with single electron spin sensitivity.

*Nat. Nanotechnol.***8**, 639–644 (2013).Kremen, A. et al. Imaging quantum fluctuations near criticality.

*Nat. Phys.***14**, 1205–1210 (2018).Sochnikov, I., Davino, D. & Kalisky, B. dc SQUID design with femtotesla sensitivity for quantum-ready readouts.

*Phys. Rev. Appl.***14**, 014020 (2020).Persky, E., Sochnikov, I. & Kalisky, B. Studying quantum materials with scanning SQUID microscopy.

*Annu. Rev. Condens. Matter Phys.***13**, 385–405 (2022).Meyer, G. & Amer, N. M. Novel optical approach to atomic force microscopy.

*Appl. Phys. Lett.***53**, 1045 (1998).Alexander, S. et al. An atomic‐resolution atomic‐force microscope implemented using an optical lever.

*J. Appl. Phys.***65**, 164–167 (1989).Martin, Y., Williams, C. C. & Wickramasinghe, H. K. Atomic force microscope–force mapping and profiling on a sub 100‐Å scale.

*J. Appl. Phys.***61**, 4723–4729 (1987).Labuda, A. & Proksch, R. Quantitative measurements of electromechanical response with a combined optical beam and interferometric atomic force microscope.

*Appl. Phys. Lett.***106**, 253103 (2015).Zurek, W. H. Pointer basis of quantum apparatus: Into what mixture does the wave packet collapse?

*Phys. Rev. D***24**, 1516–1525 (1981).von Neumann, J.

*Mathematische Grundlagen der Quantenmechanik*.*Mathematische Grundlagen der Quantenmechanik*(Springer, 1932).Schumacher, B. Quantum coding.

*Phys. Rev. A***51**, 2738–2747 (1995).Heisenberg, W. Zur Theorie des Ferromagnetismus.

*Zeit.Phys.***49**, 619–636 (1928).Wahl, P. et al. Exchange interaction between single magnetic adatoms.

*Phys. Rev. Lett.***98**, 056601 (2007).Granovskij, M., Schrön, A. & Bechstedt, F. Magnetic exchange force microscopy from first principles: application to the antiferromagnetic NiO(001) surface.

*New J. Phys.***16**, 023020 (2014).Vaara, J., Jokisaari, J., Wasylishen, R. E. & Bryce, D. L. Spin–spin coupling tensors as determined by experiment and computational chemistry.

*Prog. Nucl. Magn. Reson. Spectrosc.***41**, 233–304 (2002).Ziv, A. et al. AFM‐based spin‐exchange microscopy using chiral molecules.

*Adv. Mater.***31**, 1904206 (2019).Yang, K. et al. Engineering the eigenstates of coupled Spin-1/2 atoms on a surface.

*Phys. Rev. Lett.***119**, 227206 (2017).Ising, E. Beitrag zur Theorie des Ferromagnetismus.

*Zeitschrift für Phys***31**, 253–258 (1925).Braunstein, S. L. & Caves, C. M. Statistical distance and the geometry of quantum states.

*Phys. Rev. Lett.***72**, 3439–3443 (1994).Wollman, E. E. et al. Quantum squeezing of motion in a mechanical resonator.

*Science***349**, 952–955 (2015).Polzik, E. S., Carri, J. & Kimble, H. J. Spectroscopy with squeezed light.

*Phys. Rev. Lett.***68**, 3020–3023 (1992).Pooser, R. C. et al. Truncated nonlinear interferometry for quantum-enhanced atomic force microscopy.

*Phys. Rev. Lett.***124**, 230504 (2020).Pooser, R. C. & Lawrie, B. Ultrasensitive measurement of microcantilever displacement below the shot-noise limit.

*Optica***2**, 393 (2015).Barnett, S. M., Fabre, C. & Maıtre, A. Ultimate quantum limits for resolution of beam displacements.

*Eur. Phys. J. D***22**, 513–519 (2003).Berman, G. P., Borgonovi, F. & Tsifrinovich, V. I. Quantum dynamics of the oscillating cantilever-driven adiabatic reversals in magnetic resonance force microscopy.

*Quantum Inf. Comput.***4**, 102–113 (2004).Davis, E. J. et al. Probing many-body dynamics in a two dimensional dipolar spin ensemble.

*Nat. Phys.*(2021). arXiv:2103.12742v3.Wootters, W. K. & Zurek, W. H. A single quantum cannot be cloned.

*Nature***299**, 802–803 (1982).Wootters, W. K. & Fields, B. D. Optimal state-determination by mutually unbiased measurements.

*Ann. Phys. (N. Y).***191**, 363–381 (1989).Ozawa, M. Uncertainty relations for noise and disturbance in generalized quantum measurements.

*Ann. Phys. (N. Y).***311**, 350–416 (2004).Scarani, V., Iblisdir, S., Gisin, N. & Acín, A. Quantum cloning.

*Rev. Mod. Phys.***77**, 1225–1256 (2005).Bae, J. & Acín, A. Asymptotic quantum cloning is state estimation.

*Phys. Rev. Lett.***97**, 030402 (2006).Fan, H. et al. Quantum cloning machines and the applications.

*Phys. Rep.***544**, 241–322 (2014).Fuchs, C. A. & Peres, A. Quantum-state disturbance versus information gain: uncertainty relations for quantum information.

*Phys. Rev. A***53**, 2038–2045 (1996).Bužek, V. & Hillery, M. Quantum copying: beyond the no-cloning theorem.

*Phys. Rev. A***54**, 1844–1852 (1996).Gisin, N. & Massar, S. Optimal quantum cloning machines.

*Phys. Rev. Lett.***79**, 2153–2156 (1997).Bužek, V. & Hillery, M. Universal optimal cloning of arbitrary quantum states: from qubits to quantum registers.

*Phys. Rev. Lett.***81**, 5003–5006 (1998).Bruß, D. et al. Optimal universal and state-dependent quantum cloning.

*Phys. Rev. A***57**, 2368–2378 (1998).Bruß, D. & Macchiavello, C. Optimal state estimation for d-dimensional quantum systems.

*Phys. Lett. A***253**, 249–251 (1999).Banaszek, K. Fidelity balance in quantum operations.

*Phys. Rev. Lett.***86**, 1366–1369 (2001).Fuchs, C. A. & Jacobs, K. Information-tradeoff relations for finite-strength quantum measurements.

*Phys. Rev. A***63**, 062305 (2001).Bruß, D., Cinchetti, M., Mauro D’Ariano, G. & Macchiavello, C. Phase-covariant quantum cloning.

*Phys. Rev. A***62**, 012302 (2000).D’Ariano, G. M. & Macchiavello, C. Optimal phase-covariant cloning for qubits and qutrits.

*Phys. Rev. A***67**, 042306 (2003).Buscemi, F., D’Ariano, G. M. & Macchiavello, C. Economical phase-covariant cloning of qudits.

*Phys. Rev. A***71**, 042327 (2005).Simon, C., Weihs, G. & Zeilinger, A. Optimal quantum cloning via stimulated emission.

*Phys. Rev. Lett.***84**, 2993–2996 (2000).Lamas-Linares, A., Simon, C., Howell, J. C. & Bouwmeester, D. Experimental quantum cloning of single photons.

*Science***296**, 712–714 (2002).Cummins, H. K. et al. Approximate quantum cloning with nuclear magnetic resonance.

*Phys. Rev. Lett.***88**, 187901 (2002).Milman, P., Ollivier, H. & Raimond, J. M. Universal quantum cloning in cavity QED.

*Phys. Rev. A***67**, 012314 (2003).Nagali, E. et al. Experimental optimal cloning of four-dimensional quantum states of photons.

*Phys. Rev. Lett.***105**, 073602 (2010).Chen, H. et al. Experimental demonstration of probabilistic quantum cloning.

*Phys. Rev. Lett.***106**, 180404 (2011).Roa, L., Retamal, J. C. & Saavedra, C. Quantum state discrimination.

*Adv. Opt. Photonics***1**, 238–278 (2009).Bae, J. & Kwek, L.-C. Quantum state discrimination and its applications.

*J. Phys. A Math. Theor.***48**, 083001 (2015).Sacchi, M. F. Information-disturbance tradeoff for spin coherent state estimation.

*Phys. Rev. A***75**, 012306 (2007).Massar, S. & Popescu, S. Optimal extraction of information from finite quantum ensembles.

*Phys. Rev. Lett.***74**, 1259–1263 (1995).Wineland, D. J., Bollinger, J. J., Itano, W. M., Moore, F. L. & Heinzen, D. J. Spin squeezing and reduced quantum noise in spectroscopy.

*Phys. Rev. A***46**, R6797–R6800 (1992).Kitagawa, M. & Ueda, M. Squeezed spin states.

*Phys. Rev. A***47**, 5138–5143 (1993).Ma, J., Wang, X., Sun, C. P. & Nori, F. Quantum spin squeezing.

*Phys. Rep.***509**, 89–165 (2011).Joo, J., Munro, W. J. & Spiller, T. P. Quantum metrology with entangled coherent states.

*Phys. Rev. Lett.***107**, 083601 (2011).Rossi, M. A. C. & Paris, M. G. A. Entangled quantum probes for dynamical environmental noise.

*Phys. Rev. A***92**, 010302 (2015).Huang, Z., Macchiavello, C. & Maccone, L. Usefulness of entanglement-assisted quantum metrology.

*Phys. Rev. A***94**, 012101 (2016).Bruss, D., Ekert, A. & Macchiavello, C. Optimal universal quantum cloning and state estimation.

*Phys. Rev. Lett.***81**, 2598–2601 (1998).

## Acknowledgements

The authors thank Ron Ruimy and Prof. Beena Kalisky for fruitful discussions and helpful comments. E.C. was supported by Grant No. FQXi-RFP-CPW-2006 from the Foundational Questions Institute and Fetzer Franklin Fund, a donor-advised fund of Silicon Valley Community Foundation. In addition, E.C. was supported by the Israeli Innovation Authority under Projects No. 70002 and No. 73795, by the Pazy Foundation, by ELTA Systems LTD—Israel Aerospace Industries (IAI) division, by the Israeli Ministry of Science and Technology, and by the Quantum Science and Technology Program of the Israeli Council of Higher Education. This work was supported by the ERC starting grant NanoEP (Grant No. 851780) and the Horizon FET grant SMART-electron (Grant No. 964591). I.K. acknowledges the support of the Azrieli Fellowship.

## Author information

### Authors and Affiliations

### Contributions

C.M., J.N., E.C., and I.K. initiated and devised this work. C.M., J.N., and E.C. developed the theory. C.M. and J.N. performed the numerical simulations. All authors made a significant contribution to the work and were involved in interpreting the results and writing the manuscript. C.M. and J.N. contributed equally to this work.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Additional information

**Publisher’s note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Mechel, C., Nemirovsky, J., Cohen, E. *et al.* Fundamental quantum limits of magnetic nearfield measurements.
*npj Quantum Inf* **9**, 12 (2023). https://doi.org/10.1038/s41534-022-00674-5

Received:

Accepted:

Published:

DOI: https://doi.org/10.1038/s41534-022-00674-5