Protocol

We first briefly review the parallel quantum phase estimation algorithm14. Consider a group of t probes, made of k = 1, 2…2t−1 qubits and prepared in the state \(\left\vert {{\mbox{GHZ}}}_{k}\right\rangle =({\left\vert 0\right\rangle }^{\otimes k}+{\left\vert 1\right\rangle }^{\otimes k})/\sqrt{2}\). Encode the optical phase ϕ ∈ [0, 2π) in \(U(\phi )=| 0\rangle \,\langle 0| +{{\rm{e}}}^{{\rm{i}}\phi }| 1\rangle \,\langle 1|\), evolving each probe with U⊗k. Apply a chain of k − 1 subsequent CNOTs, after which, the kth qubit evolves into \((\left\vert 0\right\rangle +{e}^{\imath k\phi }\left\vert 1\right\rangle)/\sqrt{2}\). Let \(\left\vert m\right\rangle\) label the computational basis of the register made by the least significant qubit of each probe, with size t and state \({\sum }_{m=1}^{t}{{\rm{e}}}^{{\rm{i}}m\phi }| m\rangle /\sqrt{{2}^{t}}\). Taking the inverse quantum Fourier transform (QFT†) yields \(\left\vert {b}_{1}\ldots {b}_{t}\right\rangle\). Measuring in the computational basis provides the binary expansion of the optical phase as ϕ = 2π∑mbm/2m, and thus, the protocol acts as a QADC for the estimation process. We discuss a specific implementation of such a protocol comprising three steps, tailored to the photonic platform design. In this case, the CNOTs chain is achieved by a sequence of Hadamard gates, followed by a controlled σz operation. The QFT†, instead, is implemented without SWAPs30, dividing the experiment in three ordered parts: four-photon, two-photon and one-photon steps, whose outputs control the rotations \({R}_{l}^{-1}=U(-2\uppi /{2}^{l})\) (Fig. 1). An alternative conceptual scheme that uses the same physical device for the phase-encoding step is reported in Supplementary Note 1 and Supplementary Fig. 1.

Fig. 1: QADC phase estimation protocol.Fig. 1: QADC phase estimation protocol.

a, Quantum digital phase estimation protocol consisting of three stages involving four, two and one qubit states, respectively. A unitary operation encodes the phase ϕ in each mode, followed by Hadamard gates and a σz operation, conditioned on the measurement outcomes on the first modes. Depending on the results obtained in the four-qubit and two-qubit steps, controlled phase gates \({R}_{l}^{-1}\) are taken. The bit string {b1, b2, b3} is obtained at the output. Here b3 indicates the higher-precision part of the measurement outcome, that is, the higher-frequency part of the binary expansion. b, Classical interferometric estimation.

Consider the four-photon state \(\left\vert {{\mbox{GHZ}}}_{4}\right\rangle\), evolved by the phase transformation into \((| 0000\rangle +{\text{e}}^{{\rm{i}}4\phi }| 1111\rangle )/\sqrt{2}\). Apply Hadamard gates to the first three photons and then measure their parity \(\hat{P}\) in the computational basis, which reads 1 or 0 for bit strings that contain an odd or even number of 1s, respectively. When the parity gives 0, the fourth photon is in \((| 0\rangle +{{\rm{e}}}^{{\rm{i}}4\phi }| 1\rangle )/\sqrt{2}\), otherwise apply σz, obtaining the same result. This procedure, which can be implemented in post-selection, is equivalent to the CNOTs chain. Finally, apply a Hadamard gate and a measurement in the computational basis. The output returns b3, the least significant bit of the binary expansion of ϕ.

Consider the two-photon state \(\left\vert {{\mbox{GHZ}}}_{2}\right\rangle\). Due to the phase shift, this evolves into \((| 00\rangle +{{\rm{e}}}^{{\rm{i}}2\phi }| 11\rangle )/\sqrt{2}\). Apply a Hadamard gate to the first photon, followed by a computational basis measurement. When this returns 0, the other photon is projected into \((| 0\rangle +{{\rm{e}}}^{{\rm{i}}2\phi }| 1\rangle )/\sqrt{2}\), otherwise apply σz. We implement the QFT† adding a rotation \({R}_{2}^{-1}\), controlled by the value of b3, and followed by a Hadamard gate. A measurement in the computational basis yields b2.

Consider the one-photon state \(\left\vert +\right\rangle\). The phase shift gives \((| 0\rangle +{{\rm{e}}}^{{\rm{i}}\phi }| 1\rangle )/\sqrt{2}\). Apply two subsequent rotations, \({R}_{2}^{-1}\) and \({R}_{3}^{-1}\), controlled by b2 and b3, respectively. Finally, apply a Hadamard gate and a measurement in the computational basis. This gives b1, the most significant bit of the binary expansion of ϕ.

The classical counterpart of our protocol consists in an entanglement-free interferometric estimation. Consider 2t − 1 qubits, all prepared in \(\left\vert +\right\rangle\). After the phase shift, each qubit evolves into \((| 0\rangle +{{\rm{e}}}^{{\rm{i}}\phi }| 1\rangle )/\sqrt{2}\). Apply a Hadamard gate, followed by a computational basis measurement. For each qubit, the output probability of obtaining outcome 1 is \({p}_{{{\rm{c}}}}(1| \phi)={\sin }^{2}(\phi /2)\). The optical phase reads \(\phi =2\arcsin ({N}_{1}/({2}^{t}-1))\), where N1 is the number of 1s in the output bit string. This protocol shows an ambiguity in [0, π] and [π, 2π], which is typically addressed by introducing and recursively adapting a reference phase for repeated multiround trips31. In our QADC case, this ambiguity is addressed since the measurement outcomes from the group of probes are jointly used for the estimation. Thus, this ambiguity reduces with the number of qubits, for example, to the interval [7π/4, 2π] for t = 3.

In our protocol, post-selection is used both for preparing the GHZ states and at the measurement stage. At the preparation stage, discarded states are irrelevant to the metrological resource count, as they do not carry information about the unknown phase. At the measurement stage, post-selection requires repeating at most 2l times the measurement relative to the bit that requires 2t−l qubits, where t is the number of bits in the outcome. Namely, instead of the number of qubits O(2 × 2t) of the ideal case, where fast feed-forward would avoid post-selection, we need O(t × 2t) qubits, a (moderate) logarithmic overhead. The protocol performance analysis is, therefore, performed on the conditional distribution obtained from successfully detected events.

Experimental implementation

The experimental apparatus, for the implementation of the digital estimation algorithm, is based on a photonic hybrid platform (Fig. 2a). The exploited photon source is a quantum dot (QD) semiconductor, emitting a train of single photons. A 79-MHz pulsed laser is injected in an optical setup tailored to double the pulse repetition rate up to 158 MHz, and then is subsequently used to excite (pump) the QD source at the same wavelength of the energy transition (resonance fluorescence regime)32,33. Single photons are properly discriminated by the pump laser, using a cross-polarization filtering scheme. A time-to-spatial demultiplexer, based on the acousto-optic effect34,35, spatially splits the train of photons into n channels, every 180 ns. Finally, the photon streams are temporally synchronized by fibre delays, and a set of polarization controllers compensate for the relative polarization among the channels. In this way, an n-photon Fock state is produced in the photon spatial degree of freedom. Specifically, the photon numbers required for this experiment are n = 1, 2, 4. Subsequently, the multiphoton state is injected into a universal photonic processor that consists of a fully programmable eight-mode photonic integrated circuit36,37 and a power supply, which provides electrical currents to the chip and allows implementing arbitrary unitary transformations by actuating multiple thermal phase shifters on top of the photonic circuit. The optical circuit comprises 28 Mach–Zehnder unit cells, organized according to a universal rectangular layout38. The unit cell is a reconfigurable beamsplitter composed of two balanced directional couplers and two reconfigurable phases θ ∈ [0, π) and φ ∈ [0, 2π). More specifically, the reflectance R of the reconfigurable beamsplitter is set by tuning θ, whereas φ determines the complex phase of the two-mode transformation. Finally, single photons exiting the interferometer are routed towards a detection stage, which is constituted by superconductive nanowire single-photon detectors and a time-tagging system, having ~42-ps time resolution, which is capable of registering n-fold coincidence detection events. A processing unit is involved in controlling the power supply that sets the currents on the thermo-optic phase shifters, and in recording the detection events coming from the time-tagging system. Further details on the experimental setup are reported in Methods.

Fig. 2: Experimental setup for the QADC.Fig. 2: Experimental setup for the QADC.

a, Schematic of the experimental setup comprising the QD source, a time-to-spatial demultiplexing module, coupling to the integrated circuit and the detection stage. Circuit programming and data acquisition are orchestrated by a processing unit. Inset: internal structure of the integrated device, comprising 28 fully reconfigurable Mach–Zehnder interferometers, acting as an elementary cell, which corresponds to a fully programmable beamsplitter transformation on the modes. PCs, polarization controllers; PS, power supply; UPP, universal photonic processor; SNSPDs, superconducting nanowire single-photon detectors; TTS, time-tagging system. b–d, Circuit programming for the different steps of the protocol. The colours represent the following: orange, layers used for the state preparation; green, layers used for phase encoding; red, layers used for the σz and \({R}_{l}^{-1}\) operations; cyan, layers used for the Hadamard operations.

The protocol is implemented in the dual-rail encoding39, where each rail consists of a spatial mode of the device. In such a way, the first qubit is encoded in the logical state \(\left.| 0\right\rangle\) or \(\left.| 1\right\rangle\) depending on the presence of a photon in one of the modes (1, 2) of the eight-mode interferometer, the second qubit by a photon in the modes (3, 4) and so on. The experiment relies on the reconfiguration capabilities of our device, which can be programmed to implement each step shown in Fig. 1, where each section of the processor is used to obtain the required functionalities (Fig. 2b–d). (1) As the first step, the input resource states are generated via the first two layers of the interferometer. For instance, n-photon GHZ states40 are prepared with the first layer of reconfigurable beamsplitters with R = 0.5, and the second layer in which the beamsplitters are programmed in cross-configuration (R = 0) (Fig. 2b,c, orange section). The preparation is performed in a post-selected configuration conditioned to the presence of one photon for each pair of dual-rail encoded modes. Such a scheme leads to the generation of states \(\left.| {\tilde{{{\rm{GHZ}}}}}_{4}\right\rangle =(\left.| 0101\right\rangle +| 1010\rangle)/\sqrt{2}\) and \(\left.| {\tilde{{{\rm{GHZ}}}}}_{2}\right\rangle =(\left.| 01\right\rangle +| 10\rangle)/\sqrt{2}\) for the four- and two-photon cases, respectively. Those states are equivalent up to local unitary operations to those discussed in the ‘Protocol’ section. The one-qubit state \((\left\vert 0\right\rangle +\left\vert 1\right\rangle)/\sqrt{2}\) (Fig. 2d) is generated deterministically with a single reconfigurable balanced beamsplitter. (2) The phase ϕ is encoded in the second section of the circuit (Fig. 2b–d, green), whereas (3) the third section implements the controlled phase gates \({R}_{l}^{-1}\) and σz (Fig. 2b–d, red). Here σz is controlled by the parity of the output bit strings, whereas \({R}_{l}^{-1}\) require feed-forward propagation after each step. Such operations are implemented in post-selection by collecting data for all possible configurations, and then by applying post-processing to properly combine such data. (4) The Hadamard operations H are applied in the final section (Fig. 2b–d, cyan). More details on the data analysis are provided in Supplementary Note 2 and Supplementary Figs. 2–5.

Experimental results

A thorough characterization of the system operation is conducted by examining the generation of the various resource states. This analysis serves as a crucial preliminary step before implementing the estimation protocol, offering an overview of the generated quantum states and their corresponding measurement outcomes. The results of this characterization are presented in Fig. 3. More specifically, in Fig. 3a–c, we report the tomographic reconstructions of the generated resource states (ρ1, ρ2, ρ4) for the one-, two- and four-photon steps, respectively. The fidelities between the reconstructed state and the ideal state are F(1) = 0.9972 ± 0.0001 for the state \((\left\vert 0\right\rangle +\left\vert 1\right\rangle)/\sqrt{2}\), F(2) = 0.9476 ± 0.0004 for the state \(\left.| {\tilde{{{\rm{GHZ}}}}}_{2}\right\rangle\) and F(4) = 0.811 ± 0.005 for the state \(\left.| {\tilde{{{\rm{GHZ}}}}}_{4}\right\rangle\). Such values depend on the different noise sources present in the platform (Supplementary Note 3 and Supplementary Figs. 6–9). Additionally, in Fig. 3d–f, we report the experimentally retrieved marginal probability distributions as a function of the phase ϕ, where all conditional phases are set to 0. These probabilities are expected to have a periodic behaviour with the phase period proportional to 1/n, where n is the number of photons.

Fig. 3: Calibration of the measurement outcomes.Fig. 3: Calibration of the measurement outcomes.

a–c, Plots of the experimental tomographies for the one-qubit (a), two-qubit (b) and four-qubit (c) states used for the quantum digital protocol. d–f, Plots of the experimentally reconstructed marginal probabilities on the informative qubits for the one-photon (d), two-photon (e) and four-photon (f) post-selected measurement outcomes of the digital estimation scheme. The blue and orange points correspond to the experimental probabilities for two different outcomes.

To validate the protocol experimentally, we collected a dataset comprising a vector \(\vec{m}\) of seven distinct measurement outcomes for 99 phase values uniformly distributed across the interval [0, 2π). For each phase value, the measurements are repeated \({n}_{\mathrm{shots}}^{\max }=5,377\) times to ensure the statistical robustness of the obtained results. From the collected data, we reconstruct the conditional probability distribution \(p(\vec{m}| \phi)\) corresponding to the full 7-bit vector of outcomes \(\vec{m}\), required for computing the mutual information. Additionally, we estimate the optical phase using the quantum protocol described, benchmarking its performance against that of the classical strategy shown in Fig. 1.

For the implementation of the quantum estimation protocol, the phase to be estimated is applied across different modes of the integrated photonic device, depending on the quantum state used, as described above. Specifically, the phase is set on four modes when utilizing the GHZ state, two modes for a two-photon state and a single mode for single-photon states. Post-selected measurement outcomes are used to retrieve the phase estimates via a digital estimation approach, as previously discussed. This quantum digital strategy is compared with a classical method in which the device is seeded with single photons, and phase estimation is performed using standard interferometric procedures based on the outcome probabilities of photons in the upper or lower mode.

Experimental results reveal that for moderate values of nshots, the mutual information obtained with the quantum strategy exceeds that of the classical counterpart, derived from single-photon measurements and the standard interferometric approach. However, as the number of phase repetitions increases, the observed advantage diminishes, highlighting the sensitivity of the quantum probes to experimental imperfections. This effect arises from the noise factors that have a greater impact on the quantum experiment compared with the classical approach. These factors, mentioned previously, include optical losses within the setup, errors in the circuit programming including those in the phase-encoding stage, partial distinguishability of the multiphoton probe states and fluctuations in the g(2) correlation function during the extended measurement period (Supplementary Note 3 and Supplementary Figs. 6–9 provide the numerical simulations discussing the impact of different noise factors).

To mitigate the impact of these experimental imperfections, we exploit a DAE to process the probabilities reconstructed from raw experimental data. A DAE is a NN comprising two components: an encoder, which maps the input data to a compressed latent representation by capturing its essential features, and a decoder, which reconstructs the original data from this representation and discards irrelevant variations caused by noise. This architecture is particularly well-suited for isolating meaningful features embedded in noisy data41, effectively reducing the impact of experimental imperfections. DAEs have been widely adopted in various unsupervised learning tasks, including image denoising42, anomaly detection43 and speech recognition tasks44, due to their robustness and ability to effectively generalize to unseen noisy data. They have also been used for improving the process tomography of a quantum channel45.

For our application, we train the DAE using ideal conditional probabilities corrupted with Gaussian noise, with the targets set as clean, noise-free probabilities. This approach forces the encoder to identify invariant features resilient to noise and enables the decoder to reverse the noise effects during reconstruction. We take the mean square error as a loss function for driving the optimization process, ensuring that the reconstructed probabilities closely match the clean targets. Once trained, the DAE is applied to the experimental probabilities \(p(\vec{m}| \phi)\), reconstructed from our raw data, obtaining their denoised version \(\tilde{p}(\vec{m}| \phi)\). The scheme representing the action of the DAE is reported in Fig. 4a.

Fig. 4: DAE and feed-forward NN architectures together with experimental results.Fig. 4: DAE and feed-forward NN architectures together with experimental results.

a, Architecture of the DAE implemented to mitigate the influence of noise on the conditional probabilities \(\tilde{p}(\vec{m}| \phi)\), reconstructed from experimental data. b, Comparison of the mutual information computed from experimental data using quantum probes (light blue) against the one retrieved with single-photon probes (orange). The same quantity is then computed using the denoised experimental probabilities of the quantum (blue triangles) and the classical (red crosses) probes. Note that the mutual information becomes a meaningful figure of merit only after accumulating a sufficient number of probes; for this reason, we have shaded (grey) the initial region. c, Feed-forward NN architecture used for phase estimation, trained to map the reconstructed conditional probabilities to the true phase values, refining the estimation process. d, Optical phase estimate ϕest obtained by applying the quantum digital protocol (light blue) and the classical interferometric strategy (orange) as a function of the true value of the parameter ϕT. The performance of the quantum protocol is further improved by using an NN capable of removing ambiguities.

Phase estimation requires only the probabilities \(\tilde{p}(\vec{b}| \phi)\), obtained by marginalizing \(\tilde{p}(\vec{m}| \phi)\) to the significant bits \(\vec{b}=({b}_{1},{b}_{2},{b}_{3})\). At the output of the DAE, we compute a vector of 23 elements, representing the frequencies of observing each computational basis state, namely, \(\tilde{p}(\vec{b}| \phi)\).

To show the effectiveness of the denoising approach, we analyse the mutual information obtained with quantum probes compared with classical ones as a function of the number of detected probes nshots (Fig. 4b reports the experimental results). More specifically, the comparison is performed by comparing the two strategies for the same number of successfully collected events. After using the denoised probabilities to compute the mutual information, the advantage of the quantum strategy becomes evident regardless of the number of phase repetitions considered. A complementary analysis in terms of phase variance is reported in Supplementary Note 2E and Supplementary Fig. 5.

As the next step, we study the performance of the phase estimation strategy obtained through the described digital protocol. It can be shown that even under ideal conditions (Supplementary Note 3), the retrieved phase estimate exhibits an oscillatory behaviour, with values close to the true phase value inspected. For this reason, the digital quantum strategy can be further enhanced, in terms of the overall accuracy, by integrating a second feed-forward NN that linearizes the phase estimation process. Specifically, this can be done by training the NN on simulated measurement outcomes corresponding to a range of phase values. These simulations provide a mapping between the measured data and the actual phase values, enabling the network to optimize the estimation process. In this case, the NN is used to learn the complex relationship between the conditional probabilities \(p(\vec{b}| \phi)\) and the corresponding phase values, capturing both linear and nonlinear dependencies. The training data incorporate noise and variations consistent with the experimental conditions, ensuring the network ability to generalize effectively to actual experimental data. Once the NN is trained, it can be directly fed with the experimentally denoised conditional probabilities \(\tilde{p}(\vec{b}| \phi)\) to give a refined and more accurate phase estimate (Fig. 4c). The denoising process effectively restores the quality of the experimental probabilities, allowing for a more accurate computation of both mutual information and phase estimate.

The performance of the estimation strategy obtained with the experimental data is reported in Fig. 4d. Here the average phase estimation results over nshots detected probes for both quantum and classical strategies are shown. A notable distinction between the two approaches arises from the periodicity inherent in the outcome probabilities. Classical probes, constrained by their single-photon nature and standard interferometric techniques, can only resolve phases within the interval [0, π). By contrast, entangled quantum probes enable phase discrimination across the entire 2π range. Indeed, although the measurements at each step are characterized by probabilities oscillating more rapidly with an increasing number of photons, the phase ambiguity is directly resolved by the protocol since the outcomes are analysed as a whole, and by the presence within the protocol of controlled operations conditioned to the outcomes of the previous steps. A significant improvement is obtained when applying the second NN to the denoised probabilities, obtained from the experimental quantum data. Once the NN is trained, it can be directly fed with the experimentally denoised conditional probabilities \(\tilde{p}(\vec{b}| \phi)\) to give a refined and more accurate phase estimate. This approach significantly reduces systematic deviations and nonlinear distortions inherent in the raw estimation process, providing an unbiased result with no ambiguities or periodicity constraints. The improved estimates obtained using this NN-assisted digital strategy are also presented in Fig. 4d, demonstrating enhanced accuracy and consistency compared with the raw estimate. The NN also compensates for imperfections in the experimental setup, making the estimation strategy more robust to different sources of noise without requiring the use of additional physical resources, since the NN is previously trained with simulated data.