Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Phase estimation algorithm for the multibeam optical metrology

## Abstract

Unitary Fourier transform lies at the core of the multitudinous computational and metrological algorithms. Here we show experimentally how the unitary Fourier transform-based phase estimation protocol, used namely in quantum metrology, can be translated into the classical linear optical framework. The developed setup made of beam splitters, mirrors and phase shifters demonstrates how the classical coherence, similarly to the quantum coherence, poses a resource for obtaining information about the measurable physical quantities. Our study opens route to the reliable implementation of the small-scale unitary algorithms on path-encoded qudits, thus establishing an easily accessible platform for unitary computation.

## Introduction

Unitary Fourier transform is a quintessential component for a multitude of quantum computational algorithms1,2,3 as it underlies a versatile phase estimation routine4 which is at the core of various quantum metrological protocols5,6,7,8. Such phase-sensitive protocols, utilizing coherence for measurements of physical quantities, find use in quantum sensors9,10, notably in the qudit-based devices (e.g., based on the superconducting artificial atoms or NV centers) for determining magnetic and electric fields11,12,13,14,15,16,17. Importantly, since these protocols do not necessarily employ quantum entanglement18, they may be implemented on the systems that manifest wave yet classical behavior. Therefore, methods borrowed from quantum metrology can be applied to the classical optical phase measurements19,20,21,22,23, which, in particular, can be used to measure the position, velocity, and displacement of physical objects. Here we report on constructing a complex linear-optic-based device capable to carry out the Fourier-based phase estimation algorithm. The metrological potential of the intricate multiple-beam interference schemes can be, for instance, seen in the LIGO optical gravitational wave detector where the Heisenberg-limited sensitivity is achieved through combining Michelson and Fabry-Pérot interferometers and employing the squeezed states of light.

Our approach is predicated upon the fact that any finite-dimensional unitary matrix can be realized by means of 50:50 beam splitters, phase shifters and mirrors24. In order to better demonstrate the computational capabilities of the linear optics, we adopt the laser as a source of the light having the coherence length by far exceeding the size of the setup. This ensures the speed of measurements that is sufficient to support the stability of the interference pattern during the time necessary for collecting the required statistics. Note that in the single-photon regime, the time needed to obtain the same statistics would be much too long to preserve the same quality of the interference pattern throughout the entire measurement procedure. Using the multiphoton source does not eliminate the unitary nature of the algorithm, which employs for this moderate computation scale only the wave aspect of the signal. Switching to the single-photon source for practical computation purposes will translate the scheme into the fully quantum one, while maintaining the major characteristics manifested by the present device. A general architecture for such a multiport interferometer was first proposed by Reck et al.24 and then further reframed by Clements et al.25. The theoretical prospects of the proposed architecture were discussed in refs. 26,27. Experimentally, it was shown that linear optical protocols can be implemented on a photonic chip22,28. Yet, the practical engineering of such a structure remains highly challenging.

In what follows, we will overview our algorithm and the theoretical background, describe our experimental layout, and construct the analytical description of the computational scheme. Finally, we discuss the results and outline the future research directions.

## Preliminaries

### Algorithm description

We start with the description of the Fourier phase-estimation algorithm operating in the qudit regime. The initial qudit state is taken as a superposition of all computational states:

$$|{\Psi }_{\phi }\rangle =\frac{1}{\sqrt{d}}\,\mathop{\sum }\limits_{k=0}^{d-1}\,{e}^{ik\phi }|k\rangle ,$$
(1)

where $$\{|k\rangle {\}}_{k=0}^{d-1}$$ is an orthonormal computational basis in the qudit’s Hilbert space. Additionally, we let $$\phi =\frac{2m\pi }{d}$$, $$m\in \{0,1,\ldots ,d-1\}$$. The algorithm has to unambiguously determine the value of $$\phi$$ via a single-shot measurement of the qudit state. This is achieved by applying a base-d quantum Fourier transformation with the corresponding unitary operator $$\hat{F}$$,

$$\hat{F}|n\rangle =\frac{1}{\sqrt{d}}\,\mathop{\sum }\limits_{k=0}^{d-1}\,{e}^{-2\pi ink/d}|k\rangle .$$
(2)

The action of $$\hat{F}$$ on the initial state $$|{\Psi }_{\phi }\rangle$$ yields one of the states from the computational set $$\{|k\rangle {\}}_{k=0}^{d-1}$$ depending on $$\phi =\frac{2\pi m}{d}$$:

$$|{\Psi }_{{\rm{out}}}\rangle =\hat{F}|{\Psi }_{\phi }\rangle =|m\rangle .$$
(3)

Accordingly, by measuring the output state $$|{\Psi }_{{\rm{out}}}\rangle$$ one determines the value of $$\phi$$.

The above algorithm appears as a subroutine in a family of conditional sequential sensing protocols with the scaling corresponding to the Heisenberg limit, for example, the Kitaev protocol. An essential principle of these protocols is the phase encoding: on each step of the procedure, the state of the qudit is tagged with the phase $$\phi$$ (as in Eq. (1)) which depends on the unknown constant physical value to be determined and on the sensing period of the step t.

### Optical scheme

Now we introduce our optical framework. In this setting the qudit is represented by the d coherent beams. Each element of its d-dimensional state vector is a complex amplitude of the corresponding beam. Accordingly, the state vector transforms when the light passes through the arrangement of beam splitters, phase shifters and mirrors. The task of constructing a particular unitary operator reduces to its decomposition into a sequence of the two-dimensional beam splitter transformations and individual phase shifts. In this section we devise base-3 (qutrit) scheme to carry out the Fourier transformation

$$\hat{F}=\frac{1}{\sqrt{3}}(\begin{array}{ccc}1 & 1 & 1\\ 1 & {e}^{4\pi i/3} & {e}^{2\pi i/3}\\ 1 & {e}^{2\pi i/3} & {e}^{4\pi i/3}\end{array}).$$
(4)

The matrix $${\hat{A}}_{jk}^{\chi }(\alpha ,\theta )$$ of an arbitrary lossless beam splitter with the jth and kth input beams is expressed in the form

$${\hat{A}}_{01}^{\chi }(\alpha ,\theta )=(\begin{array}{ccc}\cos \chi \,{e}^{i\theta } & \sin \chi \,{e}^{i(\theta +\alpha )} & 0\\ -\sin \chi \,{e}^{i(\theta -\alpha )} & \cos \chi \,{e}^{i\theta } & 0\\ 0 & 0 & 1\end{array});$$
(5)
$${\hat{A}}_{12}^{\chi }(\alpha ,\theta )=(\begin{array}{ccc}1 & 0 & 0\\ 0 & \cos \,\chi \,{e}^{i\theta } & \sin \,\chi \,{e}^{i(\theta +\alpha )}\\ 0 & -\sin \,\chi \,{e}^{i(\theta -\alpha )} & \cos \,\chi \,{e}^{i\theta }\end{array}),$$
(6)

where $$\chi$$ determines the split ratio ($$\sqrt{T}=\,\cos \,\chi$$, $$\sqrt{R}=\,\sin \,\chi$$); α and θ are certain phases. The matrix $${\hat{P}}_{j}^{\beta }$$ corresponding to the phase change by β of the j-th beam is defined as

$${\hat{P}}_{0,1,2}^{\beta }=\{(\begin{array}{ccc}{e}^{i\beta } & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1\end{array});\,(\begin{array}{ccc}1 & 0 & 0\\ 0 & {e}^{i\beta } & 0\\ 0 & 0 & 1\end{array});\,(\begin{array}{ccc}1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & {e}^{i\beta }\end{array})\}.$$
(7)

In order to prepare a beam splitter matrix with an arbitrary desired ratio of reflection to transmission, one has to assemble a Mach–Zehnder interferometer using two symmetric 50:50 beam splitters (for convenience, hereinafter we will omit the notation for dependence on $$\alpha$$ and $$\theta$$ if $$(\alpha ,\theta )=(\pi /2,0)$$):

$${\hat{A}}_{01}^{\chi }\equiv {\hat{A}}_{01}^{\chi }(\pi /2,0)={\hat{P}}_{0}^{\chi +\pi }\,{\hat{P}}_{1}^{\chi +3\pi /2}\,{\hat{A}}_{01}^{\pi /4}\,{\hat{P}}_{0}^{\pi -2\chi }\,{\hat{A}}_{01}^{\pi /4}\,{\hat{P}}_{1}^{\pi /2},$$
(8)

with $${\hat{A}}_{01}^{\pi /4}$$ corresponding to the ideal symmetric beam splitter.

As shown in Ref. 7, the Fourier transformation $$\hat{F}$$ can be factorized as follows:

$$\begin{array}{rcl}\hat{F} & = & {\hat{P}}_{1}^{\pi /2}\,{\hat{A}}_{12}^{\pi /4}\,{\hat{P}}_{0}^{\pi }\,{\hat{A}}_{01}^{\tilde{\chi }}\,{\hat{P}}_{0}^{\pi }\,{\hat{P}}_{1}^{\pi /2}\,{\hat{A}}_{12}^{\pi /4}\,{\hat{P}}_{2}^{3\pi /2}\\ & = & {\hat{P}}_{0}^{\tilde{\chi }+\pi }\,{\hat{P}}_{1}^{\pi /2}\,{\hat{A}}_{12}^{\pi /4}\,{\hat{P}}_{1}^{\pi /2+\tilde{\chi }}\,{\hat{A}}_{01}^{\pi /4}\,{\hat{P}}_{0}^{\pi -2\tilde{\chi }}\,{\hat{A}}_{01}^{\pi /4}\,{\hat{A}}_{12}^{\pi /4}\,{\hat{P}}_{2}^{3\pi /2};\end{array}$$
(9)

where $$\tilde{\chi }={\tan }^{-1}(\sqrt{2})$$. It is seen from this expression that the experimental realization of $$\hat{F}$$ requires no more than 4 symmetric 50:50 beam splitters. The optical circuit for $$\hat{F}$$ is depicted in Fig. 1.

### Experimental setup

The experimental layout is divided into two modules, as shown in Fig. 2. In the state preparation module, the incident laser beam is converted into the qutrit initial state given by Eq. (1). The beam splitters BSa and BSb generate three beams each representing a particular basis state $$|j\rangle$$ ($$j=\{0,1,2\}$$). The $$|1\rangle$$ and $$|2\rangle$$ beams then pass through respectively one ($${{\rm{PS}}}_{\phi }$$) and two ($${{\rm{PS}}}_{2\phi }$$) phase shifters attached to a swivel platform which sets the relative phases 0, $$\phi$$ and $$2\phi$$. The value of $$\phi$$ depends on the position of the platform: by rotating the platform one alters the length of the optical paths through the phase shifters and, therefore, changes $$\phi$$ without affecting the ratio between the relative phases.

The primary module shown in Fig. 2 realizes Eq. (9). However, although Eq. (9) directly translates the Fourier transformation into the optical setting, it fails to take account of limitations intrinsic to the real equipment. Namely, the transmission the phase shifters is associated with the intensity losses. In order to take such losses into account we should employ the corresponding operators $${\hat{L}}_{0,1,2}^{t}$$:

$${\hat{L}}_{0,1,2}^{t}=\{(\begin{array}{ccc}t & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1\end{array});\,(\begin{array}{ccc}1 & 0 & 0\\ 0 & t & 0\\ 0 & 0 & 1\end{array});\,(\begin{array}{ccc}1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & t\end{array})\},$$

where $$t$$ is the absolute value of the transmission coefficient of and individual phase shifter. After the appropriate alignments, the equation for the operation realized in the primary module assumes the form

$$\begin{array}{ccc}\hat{U} & = & {[{\hat{A}}_{12}^{{\chi }_{0}}({\alpha }_{4},{\theta }_{4}){\hat{P}}_{2}^{{\psi }_{6}}{\hat{P}}_{1}^{{x}_{4}}{\hat{L}}_{1}^{{t}_{{\rm{p}}{\rm{s}}}}{\hat{L}}_{2}^{{t}_{{\rm{p}}{\rm{s}}}}{\hat{P}}_{1}^{{\psi }_{5}}]}_{4}\\ & & \times \,{[{\hat{A}}_{01}^{{\chi }_{0}}({\alpha }_{3},{\theta }_{3}){\hat{P}}_{1}^{{\psi }_{4}}{\hat{P}}_{0}^{{x}_{3}}{\hat{L}}_{0}^{{t}_{{\rm{p}}{\rm{s}}}}{\hat{L}}_{1}^{{t}_{{\rm{p}}{\rm{s}}}}{\hat{P}}_{0}^{{\psi }_{3}}]}_{3}\\ & & \times \,{[{\hat{A}}_{01}^{{\chi }_{0}}({\alpha }_{2},{\theta }_{2}){\hat{P}}_{1}^{{x}_{2}}{\hat{L}}_{1}^{{t}_{{\rm{p}}{\rm{s}}}}{\hat{P}}_{1}^{{\psi }_{2}}]}_{2}\\ & & \times \,{[{\hat{A}}_{12}^{{\chi }_{0}}({\alpha }_{1},{\theta }_{1}){\hat{L}}_{2}^{{t}_{{\rm{p}}{\rm{s}}}}{\hat{P}}_{2}^{{x}_{1}}{\hat{P}}_{2}^{{\psi }_{1}}]}_{1},\end{array}$$
(10)

where $${t}_{{\rm{ps}}}$$ is the modulus of the transmission coefficient of PS1, …, PS4; $${\chi }_{0}$$ defines the beam splitters’ split ratio ($$\sqrt{T}=\,\cos \,{\chi }_{0}$$, $$\sqrt{R}=\,\sin \,{\chi }_{0}$$); $${\alpha }_{i}$$ and $${\theta }_{i}$$ correspond to BSi (see Eq. (5)); $${\psi }_{i}$$ is the phase change due to reflection of Mi; $${x}_{i}$$ is the phase change on PSi. In our experiment $${t}_{{\rm{ps}}}=0.935$$, $$T=0.445$$ and $$R=0.555$$. The notation $${[\ldots ]}_{i}$$ will be used later. For simplicity, the above formula does not explicitly include discrepancies in the optical distances. In this respect, we should define $${x}_{i}$$ as a relative phase in which such terms along with the phase shift on PSi are taken into account. The output state vector can be written as

$$|{\Psi }_{{\rm{out}}}({x}_{1},{x}_{2},{x}_{3},{x}_{4},\phi )\rangle =\hat{U}\{{\hat{P}}_{0}^{{\psi }_{a}}{\hat{L}}_{1}^{{t}_{\phi }}{\hat{P}}_{1}^{\phi }{\hat{L}}_{2}^{{t}_{ND}}{\hat{L}}_{2}^{{t}_{2\phi }}{\hat{P}}_{2}^{2\phi }{\hat{A}}_{01}^{{\chi }_{0}}({\alpha }_{a},{\theta }_{a}){\hat{A}}_{02}^{{\chi }_{0}}({\alpha }_{b},{\theta }_{b})|2\rangle {\}}_{{\rm{sp}}},$$
(11)

where the brackets $${\{\ldots \}}_{{\rm{sp}}}$$ denote the state prepared in the first module of the scheme; $${t}_{\phi }$$ are $${t}_{2\phi }$$ are the absolute values of the transmission coefficient of $${{\rm{PS}}}_{\phi }$$ and $${{\rm{PS}}}_{2\phi }$$ respectively (in our experiment $${t}_{\phi }=0.875$$, $${t}_{2\phi }=0.894$$); $${t}_{ND}=0.837$$ is the modulus of the transmission coefficient of neutral-density (ND) filter, used for leveling of the intensities; $$({\alpha }_{a},{\theta }_{a})$$, $$({\alpha }_{b},{\theta }_{b})$$ and $${\psi }_{a}$$ correspond respectively to BSa, BSb and Ma.

For certain values of $${x}_{i}$$ which we denote by $${x}_{i}^{F}$$ and which are given by

$$\begin{array}{rcl}{x}_{1}^{F} & = & -{\alpha }_{1}+{\alpha }_{a}-{\alpha }_{b}+{\theta }_{b}-{\psi }_{1}+\pi ;\\ {x}_{2}^{F} & = & -{\alpha }_{2}+{\alpha }_{b}-{\theta }_{1}+{\psi }_{a}-{\psi }_{2}-\pi /2;\\ {x}_{3}^{F} & = & -{\alpha }_{2}+{\alpha }_{3}-{\psi }_{3}+{\psi }_{4}+\pi -2\tilde{\chi };\\ {x}_{4}^{F} & = & -{\alpha }_{1}+{\alpha }_{2}+{\alpha }_{4}-{\alpha }_{b}+{\theta }_{1}-{\theta }_{2}-{\theta }_{3}-{\psi }_{4}-{\psi }_{5}+{\psi }_{6}-{\psi }_{a}-\pi +\tilde{\chi },\end{array}$$
(12)

the transformation implemented in the scheme is similar to Eq. (9):

$${\hat{F}}_{exp}={[{\hat{A}}_{12}^{{\chi }_{0}}{\hat{P}}_{1}^{\pi \mathrm{/2}+\tilde{\chi }}{\hat{L}}_{1}^{{t}_{{\rm{ps}}}}{\hat{L}}_{2}^{{t}_{{\rm{ps}}}}]}_{4}\,{[{\hat{A}}_{01}^{{\chi }_{0}}{\hat{P}}_{0}^{\pi -2\tilde{\chi }}{\hat{L}}_{0}^{{t}_{{\rm{ps}}}}{\hat{L}}_{1}^{{t}_{{\rm{ps}}}}]}_{3}\,{[{\hat{A}}_{01}^{{\chi }_{0}}{\hat{L}}_{1}^{{t}_{{\rm{ps}}}}]}_{2}\,{[{\hat{A}}_{12}^{{\chi }_{0}}{\hat{L}}_{2}^{{t}_{{\rm{ps}}}}{\hat{P}}_{2}^{3\pi \mathrm{/2}}]}_{1}\mathrm{}.$$
(13)

Here we ignored the phases of the resulting beams incident on the detectors. For the description of the alignment procedure see Methods and SI. Figure 3 displays the theoretical plots obtained using Eq. (9) (dashed lines) and (13) (solid lines). Both series of plots are almost identical. Note, that taking losses into account in Eq. (13) results in smaller secondary peaks.

## Results and Discussion

Figure 4 shows the measured intensities as functions of $$\phi$$. The data on Di are fit by the square of ith element of the output vector function given by Eq. (11):

$${p}_{i}={a}_{i}{|\langle i|{\Psi }_{{\rm{o}}{\rm{u}}{\rm{t}}}({x}_{1},{x}_{2},{x}_{3},{x}_{4},\kappa \cdot \phi +\mu )\rangle |}^{2}+{b}_{i},$$
(14)

where $${a}_{i}$$ is the intensity scaling parameter; $${b}_{i}$$ is the intensity bias simulating the interference visibility loss; $$\kappa$$ and $$\mu$$ are respectively the phase scaling parameter and phase shift independent of $$i$$. The fitting is done using the method of least squares. Note, that the same unitary transformation can be realized with the different sets of parameters. For details on fitting and determining the corresponding errors see SI and Methods. The phases $${x}_{i}$$ determined from the fit are given by

$$({x}_{1},{x}_{2},{x}_{3},{x}_{4})=({x}_{1}^{F},{x}_{2}^{F},{x}_{3}^{F},{x}_{4}^{F})\pm (0.28,0.30,0.30,0.28),$$
(15)

where the second term is the error of fitting. Despite the discrepancies (which, as a matter of fact, are small as compared to π) described by the second term, our data compare fairly well with the theoretical plots presented in Fig. 3. The results show that the interference is controlled to the high degree in spite of the complexity of the optical scheme. Thus, the described optical platform proves to be capable to perform small scale unitary operations.

Note that our experiment is carried out in a multiphoton rather than in a single-photon regime which typically serves as a bedrock for the optical implementations of the quantum algorithms. At the same time, similarly to many existing quantum algorithms, the realized Fourier phase-estimation protocol relies on the wave interference effects although it does not utilize specifically quantum phenomena. As any lossless quantum computation, the Fourier transform is described by the unitary operator4. We have constructed such a unitary operator through the specific arrangement of linear optical elements. It should be noted, however, that the discussed multiphoton approach does not support the algorithms relying on choosing between quantum alternatives (which takes place, for example, in the quantum random number generation procedure).

As shown in ref. 24, the number of beam splitters needed to construct a general $$N$$-dimensional unitary matrix $$U$$ grows as $$N(N-1)/2$$. The practical realization of such a multiport architecture, however, imposes additional scalability limitations (see SI for the detailed quantitative analysis):

1. 1.

Restricted phase adjustment precision. The relative cumulative error in the constructed matrix $$U$$ caused by the limited precision Δα with which we control the rotation angle of the optical holders and the width $$d$$ of the phase shifters is of order N(d/λ)(n-1)Δα. Here n is the refractive index of the phase shifters, and λ is the light wavelength.

2. 2.

Restricted precision of the wavefrontsalignment. The misalignment of the wavefronts results in the complex interference pictures which can no longer be considered one-dimensional. The visibility of the picture deteriorates with the factor ≈$$1-\frac{N{\left(R\Delta \alpha \frac{2\pi }{\lambda }\right)}^{2}}{8}$$, where $$R$$ is the size of the beam spot.

3. 3.

Phase fluctuations caused by the surface roughness. Assuming that the light acquires the delta-correlated random phase $$\delta \xi$$ due to the surface roughness of the optical elements, we estimate the corresponding visibility deterioration factor as ~$${e}^{-N\langle \delta {\xi }^{2}\rangle }$$.

4. 4.

Intensity losses. The intensity losses on the mirrors and beam splitters used in our experiment are about 1%, which is acceptable. By far larger losses (≈10%) are associated with the phase shifters. Nevertheless, the use of anti-reflective coating would reduce these losses to 1%. The signal intensity on the detector would be $${0.99}^{N}\approx \exp (\,-\,N/100)$$.

Based on these estimates, a detailed quantitative analysis devises the prospect for realizing matrices with $$N$$ up to of order 100 (this upper limit is set mostly by item 4, for other details see SI). This improvement will be built on the enhanced experimental and theoretical framework comprising the advanced adjustment precision of optical holders, eliminating the elements’ surface roughness, minimizing intensity losses (e.g., via employing the anti-reflective coating), and mitigating the drift of phases caused by the mechanical oscillations and instability of the optical elements. Note that the latter issue results in the rising deviation between the data and the fit as seen in Fig. 3. The corresponding improvement will be achieved by implementing the mechanical feedback phase control.

Further refining the concert between the theoretical description and the experimental realization will be achieved via including into the scheme the machine learning algorithms capable to compensate the imprecision in the alignment of the optical elements. These techniques have already passed the reliability test in the base-4 (ququart) version of the setup which we have already successfully realized. The obtained results manifest the improved accuracy and serve as the evidence of the scheme’s scalability. The detailed description of the ququart experiment will be the subject of the forthcoming publication.

There have been a recent progress in demonstrating the advantage of Quantum Fourier transforms (QFT) interferometers using both path and polarization modes29 and in realizing interferometric phase estimation algorithm approaching the Heisenberg limit30. Our scheme employs larger number of linear optic elements as compared to above references and utilizing path modes only. Yet we achieved a fairly high level of the correspondence between the experiment and theory. By adding the polarization degrees of freedom analogously to29,30, we will further increase the dimension of the unitary matrix realized by our scheme.

## Methods

Our optical setup includes the following equipment:

### Phase shifters

The phase shifters mainly serve to adjust the relative phases of the beams. In our setup, we use pieces of thick glass; the intensity loss on these elements is near $$\mathrm{12.5 \% }$$.

### Beam splitters

We employ beam splitters with dielectric coating optimized for the 400–700 nm range. The nominal split ratio is 50:50. In practice however, this holds only if the incident laser beam is unpolarized. For the case of the linearly polarized beam used in our experiment, the split ratio is close to 55:45.

### Mirrors

Dielectric mirrors optimized for the 400–700 nm range.

### Laser

Diode pumped solid state laser, 532 nm, 150 mW; the coherence length of light is 50 m.

### Detectors

Photodiode detectors.

The use of the photodiodes for the detection is justified by their high measurement speed (as opposed to the single-photon detectors), as the main goal of the present work was to test the interference capacity of the complex optical setup. However, an additional testing series employing the single-photon detectors has shown practically the same results as presented. This fact means that such a replacement does not pose any significant changes in the operation of the circuit.

The alignment of the scheme is done in accordance with a step-by-step procedure which lays in tuning the signal at the intermediate points of the beams’ paths (see Fig. 5). At each consecutive step, the interference intensity at the given point is matched with the theoretical value obtained through the breakdown of Eq. (13): the ith step of the procedure leverages the ith block of operators ($${[\ldots ]}_{i}$$) in the relation. At the first two stages, we receive the signal reflected from the phase shifters PS2 and PS3 using the detectors AD1 and AD2, respectively. In turn, the last two stages involve the signals from the detectors AD3 and AD4. The alignment is performed via rotating the phase shifters (i.e., altering the optical path length) preceding the given point. By doing so, one changes the phases $${x}_{i}$$ which in the end should be equal to $${x}_{i}^{F}$$ given by Eq. (12). For details see SI.

Each point in Fig. 4 is obtained by averaging signals from the detectors generated over ~0.5 s. The oscillations and instability of the optical elements are represented by the vertical error bars. To estimate the corresponding error, we measured the signal discrepancies appearing over a characteristic period of time (~0.5 s) with the fixed angle of the swivel platform (determining the value of $$\phi$$). The horizontal error bars express the limited precision of the swivel platform.

The fitting of the experimental data is done via applying the method of least squares, see more detail in SI. The phases $${\bf{x}}={[{x}_{1},{x}_{2},{x}_{3},{x}_{4}]}^{T}$$ corresponding to the optimal fit turned out to be very close to $${{\bf{x}}}^{F}={[{x}_{1}^{F},{x}_{2}^{F},{x}_{3}^{F},{x}_{4}^{F}]}^{T}$$. The fitting error of $${x}_{k}$$ ($$k\in \{1,2,3,4\}$$) is determined by the maximum size of the neighbourhood $${{\mathcal{O}}}_{k}^{F}$$ of $${x}_{k}^{F}$$ such that for any $${\tilde{x}}_{k}\in {{\mathcal{O}}}_{k}^{F}$$ the standard deviation of $${p}_{i}(\tilde{{\bf{x}}},\phi )$$ (with $$\tilde{{\bf{x}}}={[{x}_{1}^{F},\ldots ,{\tilde{x}}_{k}^{F},\ldots ,{x}_{4}^{F}]}^{T}$$) from $${p}_{i}({{\bf{x}}}^{F},\phi )$$ ($$i\in \{0,1,2\}$$) does not exceed the experimental error.

## Data availability

All data generated or analyzed during this study are included in this published article and its Supplementary Information file.

## References

1. 1.

Shor, P. Algorithms for quantum computation: discrete logarithms and factoring. In Proceedings 35th Annual Symposium on Foundations of Computer Science, https://doi.org/10.1109/sfcs.1994.365700 (IEEE Comput. Soc. Press 1991).

2. 2.

Harrow, A. W., Hassidim, A. & Lloyd, S. Quantum algorithm for linear systems of equations. Phys. Rev. Lett. 103, https://doi.org/10.1103/physrevlett.103.150502 (2009).

3. 3.

Peruzzo, A. et al. A variational eigenvalue solver on a photonic quantum processor. Nat. Commun. 5, https://doi.org/10.1038/ncomms5213 (2014).

4. 4.

Nielsen, M. A. & Chuang, I. Quantum Computation and Quantum Information: 10th Anniversary Edition, https://www.xarg.org/ref/a/1107002176/ (Cambridge University Press, 2011).

5. 5.

Giovannetti, V. Quantum-enhanced measurements: Beating the standard quantum limit. Sci. 306, 1330–1336, https://doi.org/10.1126/science.1104149 (2004).

6. 6.

Lesovik, G. B., Suslov, M. V. & Blatter, G. Quantum counting algorithm and its application in mesoscopic physics. Phys. Rev. A 82, https://doi.org/10.1103/physreva.82.012316 (2010).

7. 7.

Suslov, M. V., Lesovik, G. B. & Blatter, G. Quantum abacus for counting and factorizing numbers. Phys. Rev. A 83, 052317, https://doi.org/10.1103/PhysRevA.83.052317 (2011).

8. 8.

Giovannetti, V., Lloyd, S. & Maccone, L. Advances in quantum metrology. Nat. Photonics 5, 222–229, https://doi.org/10.1038/nphoton.2011.35 (2011).

9. 9.

Degen, C., Reinhard, F. & Cappellaro, P. Quantum sensing. Rev. Mod. Phys. 89, https://doi.org/10.1103/revmodphys.89.035002 (2017).

10. 10.

Pirandola, S., Bardhan, B. R., Gehring, T., Weedbrook, C. & Lloyd, S. Advances in photonic quantum sensing. Nat. Photonics 12, 724–733, https://doi.org/10.1038/s41566-018-0301-6 (2018).

11. 11.

Waldherr, G. et al. High-dynamic-range magnetometry with a single nuclear spin in diamond. Nat. Nanotechnol. 7, 105–108, https://doi.org/10.1038/nnano.2011.224 (2011).

12. 12.

Bal, M., Deng, C., Orgiazzi, J.-L., Ong, F. & Lupascu, A. Ultrasensitive magnetic field detection using a single artificial atom. Nat. Commun. 3, https://doi.org/10.1038/ncomms2332 (2012).

13. 13.

Puentes, G., Waldherr, G., Neumann, P., Balasubramanian, G. & Wrachtrup, J. Efficient route to high-bandwidth nanoscale magnetometry using single spins in diamond. Sci. Reports 4, https://doi.org/10.1038/srep04677 (2014).

14. 14.

Bonato, C. et al. Optimized quantum sensing with a single electron spin using real-time adaptive measurements. Nat. Nanotechnol. 11, 247–252, https://doi.org/10.1038/nnano.2015.261 (2015).

15. 15.

Chen, M. et al. Quantum metrology with single spins in diamond under ambient conditions. Natl. Sci. Rev. 5, 346–355, https://doi.org/10.1093/nsr/nwx121 (2017).

16. 16.

Danilin, S. et al. Quantum-enhanced magnetometry by phase estimation algorithms with a single artificial atom. npj Quantum Inf. 4, 29, https://doi.org/10.1038/s41534-018-0078-y (2018).

17. 17.

Shlyakhov, A. R. et al. Quantum metrology with a transmon qutrit. Phys. Rev. A 97, 022115, https://doi.org/10.1103/PhysRevA.97.022115 (2018).

18. 18.

Higgins, B. L., Berry, D. W., Bartlett, S. D., Wiseman, H. M. & Pryde, G. J. Entanglement-free heisenberg-limited phase estimation. Nat. 450, 393–396, https://doi.org/10.1038/nature06257 (2007).

19. 19.

Knill, E., Laflamme, R. & Milburn, G. J. A scheme for efficient quantum computation with linear optics. Nat. 409, 46 (2001).

20. 20.

Demkowicz-Dobrzański, R., Jarzyna, M. & Kołodyński, J. Quantum limits in optical interferometry. In Progress in Optics, vol. 60, 345–435 (Elsevier, 2015).

21. 21.

Dowling, J. P. & Seshadreesan, K. P. Quantum optical technologies for metrology, sensing, and imaging. J. Light. Technol. 33, 2359–2370 (2015).

22. 22.

Carolan, J. et al. Universal linear optics. Sci. 349, 711–716, https://doi.org/10.1126/science.aab3642, https://science.sciencemag.org/content/349/6249/711.full.pdf (2015).

23. 23.

Tan, S.-H. & Rohde, P. P. The resurgence of the linear optics quantum interferometer — recent advances & applications. Rev. Phys. 4, 100030, https://doi.org/10.1016/j.revip.2019.100030 (2019).

24. 24.

Reck, M., Zeilinger, A., Bernstein, H. J. & Bertani, P. Experimental realization of any discrete unitary operator. Phys. Rev. Lett. 73, 58–61, https://doi.org/10.1103/PhysRevLett.73.58 (1994).

25. 25.

Clements, W. R., Humphreys, P. C., Metcalf, B. J., Kolthammer, W. S. & Walmsley, I. A. Optimal design for universal multiport interferometers. Opt. 3, 1460–1465, http://www.osapublishing.org/optica/abstract.cfm?URI=optica-3-12-1460, https://doi.org/10.1364/OPTICA.3.001460 (2016).

26. 26.

Qi, H., Helt, L. G., Su, D., Vernon, Z. & Brádler, K. Linear multiport photonic interferometers: loss analysis of temporally-encoded architectures 1812, 07015 (2018).

27. 27.

de Guise, H., Di Matteo, O. & Sánchez-Soto, L. L. Simple factorization of unitary transformations. Phys. Rev. A 97, 022328, https://doi.org/10.1103/PhysRevA.97.022328 (2018).

28. 28.

Harris, N. C. et al. Large-scale quantum photonic circuits in silicon. Nanophotonics 5, 456–468, https://doi.org/10.1515/nanoph-2015-0146 (2016).

29. 29.

Su, Z.-E. et al. Multiphoton interference in quantum fourier transform circuits and applications to quantum metrology. Phys. Rev. Lett. 119, 080502, https://doi.org/10.1103/PhysRevLett.119.080502 (2017).

30. 30.

Daryanoosh, S., Slussarenko, S., Berry, D. W., Wiseman, H. M. & Pryde, G. J. Experimental optical phase measurement approaching the exact heisenberg limit. Nat. Commun. 9, 4606 (2018).

## Acknowledgements

We thank Andrey Elagin, Sandy Heinz and Scott Wakely for furnishing facilities at the UChicago Enrico Fermi Institute where the part of this work was completed. The work of V.M.V. was supported by the U.S. Department of Energy, Office of Science, Basic Energy Sciences, Materials Sciences and Engineering Division. The work was also supported by the Government of the Russian Federation (Agreement 05.Y09.21.0018), by the RFBR Grants No. 17-02-00002 (M.V.L. and O.V.M.), 17-02-00396A, 18-02-00642A and 19-32-80005 (N.S.K. and M.R.P.), Foundation for the Advancement of Theoretical Physics and Mathematics “BASIS”, the Ministry of Education and Science of the Russian Federation 16.7162.2017/8.9, and by NSF grant DMR1809188 (N.S.K.).

## Author information

Authors

### Contributions

V.V.Z., N.S.K., M.R.P., O.V.M., M.V.L. and G.B.L. conceived and planned the research. V.V.Z., O.V.M., M.V.L. and G.B.L. carried out the main part of the fieldwork. V.V.Z., N.S.K., D.I.L., V.M.V. and G.B.L. analyzed data and discussed results. N.S.K. and V.M.V. wrote the manuscript. All authors reviewed the manuscript.

### Corresponding author

Correspondence to V. M. Vinokur.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

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

## Rights and permissions

Reprints and Permissions

Zemlyanov, V.V., Kirsanov, N.S., Perelshtein, M.R. et al. Phase estimation algorithm for the multibeam optical metrology. Sci Rep 10, 8715 (2020). https://doi.org/10.1038/s41598-020-65466-3

• Accepted:

• Published:

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.