Introduction

A striking difference between quantum mechanics and classical mechanics arises from understanding the measurements. In quantum mechanics, the uncertainty principle asserts that it is impossible to define a joint probability distribution of statistical properties of non-commuting variables, thus prohibiting a description of quantum physics using classical probability theory. This leads to the introduction of quasi-probability distributions (QPDs), a prototypical example of which is the Wigner function1 describing quantum phase space. Another important class of QPDs is the Kirkwood-Dirac (KD) distribution2,3,4, which can be applied to any two incompatible sets of measurement operators. The nonclassical features in these QPDs, characterized by negative1,5 or even non-real values2,3, have been investigated within the realms of quantum foundations6,7, closely connected to quantum contextuality8,9,10,11,12,13, and recently recognized as a resource in quantum computing14,15,16,17,18,19 and quantum metrology20,21,22,23.

The same principle is applied when performing sequential measurements during the evolution of a quantum state. The double-slit experiment serves as an illustration of this phenomenon: attempting to extract path information causes the final interference patterns to disappear. Consequently, one cannot obtain a classical joint probability distribution that simultaneously describes both the which-path information and the final position of the particle. The absence of the classical probability description of quantum mechanical processes gives rise to the nonclassicality of temporal correlation described by the Leggett-Garg inequality7 and the no-go theorem for defining work observables in quantum thermodynamics24. Meanwhile, with recent advances in quantum information science, there has been an increasing demand to study multi-time quantum statistics to explore exotic features of quantum dynamics, such as information spreading throughout quantum dynamics25,26. Recently, it has also been shown that monitoring the dynamics of a quantum system at multiple time points can witness entanglement27.

On the other hand, a major challenge arises when attempting to access these quantum correlations over time in experiments. As observed from the double-slit experiment, direct measurements performed on a quantum state wash out quantum coherences so that they can no longer contribute to the subsequent dynamics. The destructive and irreversible effect of measurements on a quantum system raises an ongoing question: Is it possible to extract information about the system at intermediate points in time throughout quantum dynamics while minimizing the impact of the measurement on subsequent events? The most widely adopted method is the use of weak measurements28,29,30,31,32,33 (see refs. 34,35,36,37,38,39 for experimental realizations) to gain little information with little disturbance of the system40,41,42. Over the years, various quantum measurement schemes31,32,43 beyond weak measurement have been proposed to extract temporal quantum correlation functions. Alternative approaches have also been explored, including those utilizing long-time entanglement between the system and the ancilla44,45,46,47, as well as methods involving multiple copies of quantum states for each trial24,48,49.

In this work, we propose a method to simultaneously extract multiple types of quantum system’s dynamical information through ancilla-assisted measurements at intermediate time points, which we term snapshotting quantum dynamics (see Fig. 1). The key idea is to cancel out the impact of the measurements via classical post-processing of the outcomes, which enables us to obtain multi-time QPDs as well as both time-ordered and out-of-time-ordered quantum correlation functions. We experimentally demonstrate the proposed method in a 171Yb+-138Ba+ trapped-ion system by reconstructing QPD and quantum correlation functions with the full contribution of coherence up to three time points.

Fig. 1: Schematic procedure for snapshotting quantum dynamics.
figure 1

Various types of information on quantum dynamics are obtained simultaneously through classical post-processing of the intermediate measurement outcomes. These include the multi-time quasi-probability distribution (QPD) with the correct marginal probabilities at the respective time points, as well as both time-ordered and out-of-time-ordered correlation functions.

Results

QPD for multiple time points

Suppose a quantum state is \({\rho }_{{t}_{i}}\) at ti and evolves in time. The quantum state at a certain time tj can be expressed as

$${\rho }_{{t}_{j}}={{{\mathcal{N}}}}_{{t}_{i}\to {t}_{j}}({\rho }_{{t}_{i}}),$$
(1)

where \({{{\mathcal{N}}}}_{{t}_{i}\to {t}_{j}}\) is a completely positive trace-preserving quantum channel describing the evolution from time ti to tj. To obtain the information of the quantum state at time ti, one may perform measurements given by a set of projection operators \({\Pi }_{{x}_{i}}= \left\vert {x}_{i}\right\rangle \left\langle {x}_{i}\right\vert\) satisfying \({\sum }_{{x}_{i}}{\Pi }_{{x}_{i}}={\mathbb{1}}\), which leads to the outcome distribution of xi at time ti, \(p({x}_{i};{t}_{i})={{\rm{Tr}}}[{\rho }_{{t}_{i}}{\Pi }_{{x}_{i}}]\). After the measurement is performed, the state collapses to \(\left\vert {x}_{i}\right\rangle \left\langle {x}_{i}\right\vert\). Such a projective measurement incurs a critical issue when obtaining quantum statistics for more than two sequential time points. For example, the joint distribution of outcomes by performing projective measurements at times t1 and t2 can be written as \({p}^{{{\rm{proj.}}}}({x}_{1},{x}_{2};{t}_{1},{t}_{2})=p({x}_{1};{t}_{1}){{\rm{Tr}}}[{{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}(\vert {x}_{1}\rangle \langle {x}_{1}\vert ){\Pi }_{{x}_{2}}]\). However, the marginal distribution at time t2 was obtained from the joint distribution pproj.(x1x2t1t2) does not match the statistics without the measurement at time t1, i.e., \({\sum }_{{x}_{1}}{p}^{{{\rm{proj.}}}}({x}_{1},{x}_{2};{t}_{1},{t}_{2})\ne p({x}_{2};{t}_{2})\). This invokes the so-called measurement problem that the wave-function collapse induced by the measurement cannot be explained as a direct consequence of the Schrödinger equation50,51,52. Consequently, the joint distribution of projective measurement outcomes becomes unsuitable for providing a complete description of quantum dynamics.

To address such a problem, one can introduce an alternative two-time joint distribution,

$$p({x}_{1},{x}_{2};{t}_{1},{t}_{2}) \equiv \, {{\rm{Tr}}}[{{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}({\rho }_{{t}_{1}}{\Pi }_{{x}_{1}}){\Pi }_{{x}_{2}}]\\= \, {{\rm{Tr}}}[({{{\mathcal{M}}}}_{{x}_{2}}\circ {{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}{\circ }{{{\mathcal{M}}}}_{{x}_{1}})({\rho }_{{t}_{1}})],$$
(2)

where \({{{\mathcal{M}}}}_{x}(\rho )\equiv \rho {\Pi }_{x}\). We note that p(x1x2t1t2) is well-normalized, \({\sum }_{{x}_{1},{x}_{2}}p({x}_{1},{x}_{2};{t}_{1},{t}_{2})=1\), and correctly indicates the marginal distribution, \({\sum }_{{x}_{1}}p({x}_{1},{x}_{2};{t}_{1},{t}_{2})=p({x}_{2};{t}_{2})\). However, p(x1x2t1t2) can have complex values, i.e., being a QPD, and can be understood as the KD distribution2,3 of the two different measurement operators \({\Pi }_{{x}_{1}}\) and \({{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}^{{\dagger} }({\Pi }_{{x}_{2}})\)53. Such a distribution has been recently rediscovered to provide a useful mathematical formalism to explore the concept of work and the fluctuation theorems in quantum thermodynamics24,47,53,54,55,56,57,58.

The QPD based on the KD distribution was also generalized to multiple-time points23,54. In this paper, we define N-time QPD as

$$\begin{array}{l}p\left({x}_{1},{x}_{2},\cdots \,,{x}_{N};{t}_{1},{t}_{2},\cdots \,,{t}_{N}\right)\\ \equiv {{\rm{Tr}}}\left[({{{\mathcal{M}}}}_{{x}_{N}}\circ {{{\mathcal{N}}}}_{{t}_{N-1}\to {t}_{N}}\circ \cdots \circ {{{\mathcal{M}}}}_{{x}_{2}}\circ {{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}\circ {{{\mathcal{M}}}}_{{x}_{1}})({\rho }_{{t}_{1}})\right].\end{array}$$
(3)

When the quantum state at each time point commutes with the measurement operator, i.e., \([{\rho }_{{t}_{i}},{\Pi }_{{x}_{i}}]=0\) for all ti, the distribution coincides with the classical joint distribution obtained from sequential projective measurements. Consequently, nonclassical values, i.e., negative or non-real values in the QPD, capture the coherence of the system state within the measurement basis by witnessing the non-commutativity between the state and the measurement operator (see, e.g., refs. 11,12,13,59 for more detailed analysis). Throughout the manuscript, we will also use the simplified notation p(x1x2,  , xN) = p(x1x2,  , xNt1t2,  , tN) when the time sequence is trivial from the context.

An important property of the N-time QPD is that it correctly reproduces marginal distributions, satisfying

$${\sum}_{{x}_{k}}p({x}_{1},\cdots \,,{x}_{N})=p({x}_{1},\cdots \,,{x}_{k-1},{x}_{k+1},\cdots \,,{x}_{N})$$
(4)

for any k = 1, 2,  , N, where \(p(\cdots \,,{x}_{k-1},{x}_{k+1},\cdots )\quad \equiv {{\rm{Tr}}}[(\cdots \circ {{{\mathcal{M}}}}_{{x}_{k+1}}\circ {{{\mathcal{N}}}}_{{t}_{k-1}\to {t}_{k+1}}\circ {{{\mathcal{M}}}}_{{x}_{k-1}}\circ \cdots )({\rho }_{{t}_{1}})]\) is a joint QPD without performing a measurement \({{{\mathcal{M}}}}_{{t}_{k}}\) at time tk. This is known as the Kolmogorov consistency condition in classical probability theory60. In other words, the N-time QPD incorporates all the information from the k-time QPDs \(p({x}_{{i}_{1}},{x}_{{i}_{2}},\cdots \,,{x}_{{i}_{k}};{t}_{{i}_{1}},{t}_{{i}_{2}},\cdots \,,{t}_{{i}_{k}})\) for any sub-time sequences with 1 ≤ i1 < i2 < < ik≤ N. In particular, the marginal distribution of the QPD at a single time ti, p(xi), becomes real and non-negative, correctly indicating the probability distribution of the measurement outcome xi at time ti.

We also note that the N-time QPD cannot simply be expressed as a product of two-time QPDs, since it does not obey the Markov chain property60, i.e., p(x1,  , xN) ≠ p(xNxN−1) p(x2x1)p(x1) with \(p({x}_{k}| {x}_{k-1})=\frac{p({x}_{k-1},{x}_{k})}{p({x}_{k-1})}\). We highlight that the quantum channel \({{{\mathcal{N}}}}_{{t}_{k}\to {t}_{k+1}}\) for each time interval is Markovian, hence the non-Markovianity arises from the effect of \({{{\mathcal{M}}}}_{{x}_{k}}\).

Snapshotting quantum dynamics

The primary challenge in dealing with QPDs is that experimental reconstruction is not straightforward due to the presence of negative or non-real values. For the N-time QPD defined in Eq. (3), this stems from the fact that \({{{\mathcal{M}}}}_{{x}_{i}}({\rho }_{{t}_{i}})={\rho }_{{t}_{i}}{\Pi }_{{x}_{i}}\) at each time, ti is a non-physical process that does not yield a Hermitian matrix. Our key observation to overcome this issue is that \({{{\mathcal{M}}}}_{x}\) can be alternatively expressed as a weighted sum of \({{{\mathcal{K}}}}_{m}(\rho )\equiv {K}_{m}\rho {K}_{m}^{{\dagger} } ={p}^{{{\mathcal{K}}}}(m){\rho }_{m}^{{{\mathcal{K}}}}\), which can be interpreted as the result of a generalized measurement with outcome m61. The probability of the outcome is given by \({p}^{{{\mathcal{K}}}}(m)={{\rm{Tr}}}[{{{\mathcal{K}}}}_{m}(\rho )]={{\rm{Tr}}}[\rho {K}_{m}^{{\dagger} }{K}_{m}]\), and the state after the measurement becomes \({\rho }_{m}^{{{\mathcal{K}}}}=\frac{{K}_{m}\rho {K}_{m}^{{\dagger} }}{{p}^{{{\mathcal{K}}}}(m)}\). The measurement operators compose a set of Kraus operators {Km}, satisfying \({\sum }_{m}{K}_{m}^{{\dagger} }{K}_{m}={\mathbb{1}}\).

More explicitly, we aim to prove the following expression,

$${{{\mathcal{M}}}}_{x}(\rho )={\sum}_{m}{\gamma }_{xm}{{{\mathcal{K}}}}_{m}(\rho ),$$
(5)

with complex-valued coefficients γxm. The complex coefficients can be implemented via classical post-processing by weighting the measurement outcomes differently, which will be discussed in more detail. For example, the projection onto the computational basis of a qubit system, \({\Pi }_{x}= \left\vert x\right\rangle \left\langle x\right\vert\) with x = 0, 1, can be decomposed into

$$\rho {\Pi }_{x}=\frac{\rho -Z\rho Z+4{\Pi }_{x}\rho {\Pi }_{x}-i{(-1)}^{x}S\rho {S}^{{\dagger} }+i{(-1)}^{x}{S}^{{\dagger} }\rho S}{4},$$
(6)

where \(S= \left\vert 0\right\rangle \left\langle 0\right\vert+i\left\vert 1\right\rangle \left\langle 1\right\vert\) is the phase gate. We further note that any Kraus operators can be realized by ancilla-assisted measurements61. For the qubit case in Eq. (6), the CNOT gate between the system and the ancilla followed by the ancilla measurement in the x-, y-, and z-bases leads to the set of Kraus operators, \(\{{K}_{m}\}= \left\{\frac{{\Pi }_{0}}{\sqrt{3}},\frac{{\Pi }_{1}}{\sqrt{3}},\frac{{S}^{{\dagger} }}{\sqrt{6}},\frac{S}{\sqrt{6}},\frac{{\mathbb{1}}}{\sqrt{6}},\frac{Z}{\sqrt{6}}\right\}\) (see Fig. 2(a)).

Fig. 2: Quantum circuit for ancilla-assisted measurement.
figure 2

a Ancilla-assisted measurement for realizing Kraus operators. By performing z-, y- and x-basis measurements on the ancilla, the system state is updated depending on the measurement outcome. b The quantum circuit to obtain the QPD p(x1,  , xN) for a qubit system. \({{{\mathcal{N}}}}_{{t}_{N-1}\to {t}_{N}}\) describes the dynamics of the system from tN−1 to tN. The ancilla-assisted measurement is performed at each time ti with the outcome mi. The system state is updated to \({\rho }_{{t}_{N}}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\) when the measurement outcomes read (m1,  , mN), which happens with probability \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\).

This observation can be further generalized to any d-dimensional quantum system as follows:

Theorem 1

For any set of projectors \({\{{\Pi }_{x}\}}_{x=0}^{d-1}\) acting on a d-dimensional quantum state ρ, one can always construct a set of Kraus operators {Km} from ancilla-assisted measurement and find coefficients γxm satisfying Eq. (5). The Kraus operators are determined by the informationally complete measurement on a d-dimensional ancilla state after its interaction with the system.

The proof of Theorem 1 with more details can be found in Methods.

Now, we introduce a protocol for snapshotting quantum dynamics via intermediate measurements. As an illustrative example, we show that the two-time QPD p(x1x2t1t2) can be obtained by ancilla-assisted measurements at times t1 and t2 as follows. At time t1, we interact the state \({\rho }_{{t}_{1}}\) with the ancilla and measure the ancilla state. For the ancilla state’s outcome m1, the system state is updated to \({\rho }_{{t}_{1}}^{{{\mathcal{K}}}}({m}_{1})=\frac{{{{\mathcal{K}}}}_{{m}_{1}}({\rho }_{{t}_{1}})}{{p}_{{t}_{1}}^{{{\mathcal{K}}}}({m}_{1})}\) with probability \({p}_{{t}_{1}}^{{{\mathcal{K}}}}({m}_{1})={{\rm{Tr}}}[{{{\mathcal{K}}}}_{{m}_{1}}({\rho }_{{t}_{1}})]\). Subsequently, the system evolves to \({\rho }_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{1})={{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}({\rho }_{{t}_{1}}^{{{\mathcal{K}}}}({m}_{1}))\) from time t1 to t2. We then perform the second measurement at time t2. When the outcome is m2, the system state is updated to \({\rho }_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{1},{m}_{2})=\frac{{{{\mathcal{K}}}}_{{m}_{2}}({\rho }_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{1}))}{{p}_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{2}| {m}_{1})}\) with conditional probability \({p}_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{2}| {m}_{1})={{\rm{Tr}}}[{{{\mathcal{K}}}}_{{m}_{2}}({\rho }_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{1}))]\) for a given first measurement outcome m1. The joint probability of the sequential measurement outcome (m1m2) becomes \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2})={p}_{{t}_{1}}^{{{\mathcal{K}}}}({m}_{1}){p}_{{t}_{2}}^{{{\mathcal{K}}}}({m}_{2}| {m}_{1})={{\rm{Tr}}}[({{{\mathcal{K}}}}_{{m}_{2}}\circ {{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}\circ {{{\mathcal{K}}}}_{{m}_{1}})({\rho }_{{t}_{1}})]\). We note that this joint probability is a classical probability distribution that can be obtained directly from the outcome statistics.

We emphasize that the QPD p(x1x2) and the classical joint distribution \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2})\) are linked through Eq. (5) in the form of \(p({x}_{1},{x}_{2})={\sum }_{{m}_{1},{m}_{2}}{\gamma }_{{x}_{1}{m}_{1}}{\gamma }_{{x}_{2}{m}_{2}}{p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2})\). Therefore once the probability distribution \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2})\) is obtained from the measurement outcomes, p(x1x2) can be reconstructed via classical post-processing by the weighted sum of these probabilities.

As shown in Fig. 2(b), it is straightforward to repeat this protocol for multiple time points, which leads to the following expression of the N-time QPD:

$$p({x}_{1},\cdots \,,{x}_{N})={\sum}_{{m}_{1},\cdots \,,{m}_{N}}{p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\left[{\prod }_{i=1}^{N}{\gamma }_{{x}_{i}{m}_{i}}\right]={\mathbb{E}}\left[{\prod }_{i=1}^{N}{\gamma }_{{x}_{i}{m}_{i}}\right],$$
(7)

where \({\mathbb{E}}[\cdot ]\) denotes averaging over all possible sequential measurement outcomes (m1,  , mN), which can be understood as the observed trajectories of the quantum dynamics following the distribution \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})={{\rm{Tr}}}[({{{\mathcal{K}}}}_{{m}_{N}}\circ {{{\mathcal{N}}}}_{{t}_{N-1}\to {t}_{N}}\circ \cdots \circ {{{\mathcal{N}}}}_{{t}_{1}\to {t}_{2}}\circ {{{\mathcal{K}}}}_{{m}_{1}})({\rho }_{{t}_{1}})]\).

We note that the number of observed trajectories to be collected to reconstruct quantum statistics p(x1,  , xN) is greater than that for classical statistics \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\) with the same precision. More precisely, the number of trajectories Mtraj to estimate p(x1,  , xN) for each time point within a fixed precision ϵ with probability 1 − δ scales as \({M}_{{{\rm{traj}}}}=\frac{2{({\max }_{x,m}| {\gamma }_{xm}| )}^{2N}}{\epsilon }\ln (2/\delta )\) from Hoeffding’s inequality62. Our protocol can also be applied to local projectors of multi-qubit systems with the same sampling overhead. We also provide a systematic algorithm to find the optimal coefficient γxm to reconstruct the joint probability with the minimum number of measurement outcomes (see “Methods”).

Our method shares an advantage with sequential weak measurements32,37,38,39, requiring a short interaction time between the system and the ancilla. However, the main difference lies in the ability of our protocol to completely cancel out the measurement effect through classical post-processing without approximating the system state in the weakly interacting regime. The resource requirement of the proposed protocol can be compared to other schemes for obtaining the KD distribution, while explicit comparisons between these protocols are challenging due to their different natures (see also refs. 53,54 for an overview). Compared to the two-point measurement-based scheme43, which requires the measurement of multiple measurement distributions to infer the KD distribution, our protocol only requires a single measurement distribution \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2})\). The main difference compared to the weak measurement-based schemes31,32 is that our protocol does not need to implement a weak coupling between the system and the ancilla to ensure that the system is undisturbed. While the schemes63,64 entailing strong measurements for two-time points share a similar structure with our protocol, our protocol provides a straightforward multi-time generalization. Another scheme based on characteristic function estimation44 requires classical post-processing of the inverse Fourier transform, while our protocol has a relatively simple post-processing with pre-determined coefficients \({\gamma }_{{x}_{i}{m}_{i}}\). The interference-based scheme47 requires overlapping measurement and tomography of a quantum state on some occasions, both of which are not required in our scheme. A recently proposed quantum circuit model based on the block-encoding65 could have a lower sampling cost than our protocol, but its application is limited to unitary dynamics and requires the implementation of the inverse unitary channel.

Taking into account the physical constraints, our protocol has a short time of system-ancilla coherence during a measurement process at each time, which has an advantage over interferometric schemes44,47 that require a long time of system-ancilla coherence throughout the entire protocol. While applying measurements in sequential times could also be a challenging task, it has been realized on various physical platforms37,49,66,67,68,69. We also note that such intermediate measurement has been an active research area, as being an essential technique for quantum information processing, such as syndrome detection for quantum error correction61.

In the following section, we discuss that the classical post-processing of the sequential measurement outcomes leads to a unique feature of our approach, which allows the simultaneous extraction of exponentially many correlation functions.

Extraction of multi-time correlation functions

While the N-time QPD provides valuable information about the marginal distribution at each time, its utility can even go beyond that. We demonstrate that correlation functions with different time orderings can be obtained simultaneously from the N-time QPD. The quantum correlation function of an observable A throughout unitary quantum dynamics given by \({U}_{{t}_{i}\to {t}_{j}}\) is defined as

$$C({t}_{1},\cdots \,,{t}_{N})\equiv \langle A({t}_{1})\cdots A({t}_{N})\rangle \equiv {{\rm{Tr}}}[{\rho }_{{t}_{0}}A({t}_{1})\cdots A({t}_{N})],$$
(8)

where \(A({t}_{i})={U}_{{t}_{0}\to {t}_{i}}^{{\dagger} }A{U}_{{t}_{0}\to {t}_{i}}\) is an observable in the Heisenberg picture. If the time sequence is given in increasing order, i.e., t1 ≤ t2  ≤ tN, the correlation function is called time-ordered, otherwise, it is called out-of-time-ordered.

Using the eigenvalue decomposition of the observable, A = ∑xaxΠx, the time-ordered correlation function can be expressed in terms of the QPD as

$$C({t}_{1},\cdots \,,{t}_{N})={\sum}_{{x}_{1},\cdots \,,{x}_{N}}{a}_{{x}_{1}}\cdots {a}_{{x}_{N}}p({x}_{1},\cdots \,,{x}_{N}).$$
(9)

Furthermore, as the N-time QPD contains any k-time QPD with kN, all lower-order correlation functions can also be obtained from p(x1,  , xN). For example, one can simultaneously obtain a complete set of time-ordered correlation functions {C(t1), C(t2), C(t3)}, \(\{C({t}_{1},{t}_{2}),C({t}_{2},{t}_{3}),C({t}_{1},{t}_{3})\}\), and C(t1t2t3) from the three-time QPD p(x1x2x3).

More surprisingly, the snapshotting method can be utilized to obtain a family of out-of-time-ordered quantum correlation functions, summarized by the following observation.

Observation 1

All correlation functions \(C({t}_{{\mu }_{1}},\ldots \,,{t}_{{\mu }_{j}},{t}_{{\mu }_{j+1}},\ldots \,,{t}_{{\mu }_{k}})\) with μ1 ≤ μ2   ≤ μj−1 ≤ μj and μj≥ μj+1  ≥ μk−1 ≥ μk for some μj≤ N can be simultaneously deduced from the distribution of observed trajectories \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\).

This can be shown by expressing the correlation function as \(C({t}_{{\mu }_{1}},\cdots \,,{t}_{{\mu }_{j}},\cdots \,,{t}_{{\mu }_{k}})={{\rm{Tr}}}[A({t}_{{\mu }_{j+1}})\cdots A({t}_{{\mu }_{k}}){\rho }_{{t}_{0}}A({t}_{{\mu }_{1}})\cdots A({t}_{{\mu }_{j}})]\), with two monotonically increasing sub-time sequences \({t}_{{\mu }_{1}}\le {t}_{{\mu }_{2}}\le \cdots \le {t}_{{\mu }_{j}}\) and \({t}_{{\mu }_{k}}\le {t}_{{\mu }_{k-1}}\le \cdots \le {t}_{{\mu }_{j+1}}\). The correlation function is then expressed in terms of \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\) by noting that \({\rho }_{{t}_{i}}A\), \(A{\rho }_{{t}_{i}}\), and \(A{\rho }_{{t}_{i}}A\) can be simultaneously decomposed as a linear sum of \({{{\mathcal{K}}}}_{{m}_{i}}({\rho }_{{t}_{i}})\) at each time ti (see “Methods” for detailed discussions). We highlight that our approach allows a systematic protocol to obtain both time-ordered and out-of-time-ordered correlation functions from a single set of measurement data \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\), without changing the setting for each correlation function. For example, in the three-time case, one can additionally access the out-of-time-ordered correlation functions C(t3t2t1), C(t2t3t1), and C(t1t3t2). The number of correlation functions that can be obtained from the N-time distribution \({p}^{{{\mathcal{K}}}}({m}_{1},\cdots \,,{m}_{N})\) scales exponentially as  ≈ 2N, since there are two choices for A(ti) to be placed either on the left or on the right sides of the quantum state \({\rho }_{{t}_{i}}\) at each time ti. The out-of-time-ordered QPDs can also be obtained in the same way by taking \(A({t}_{i})={\Pi }_{{x}_{i}}({t}_{i})\).

As a special case, we can obtain the OTOC throughout quantum dynamics, which has been widely adopted as a quantifier of quantum information scrambling throughout complex quantum dynamics25,26 and has recently been studied in the context of QPDs47,54,70. The OTOC of a quantum system under unitary dynamics Uτ is defined as the absolute square of the commutator between two operators V and W,

$${C}_{{{\rm{OTOC}}}} \equiv \langle {[W(\tau ),V(0)]}^{{\dagger} }[W(\tau ),V(0)]\rangle,$$
(10)

where V(0) = V and \(W(\tau )={U}_{\tau }^{{\dagger} }W{U}_{\tau }\). We note that the OTOC is essentially a linear sum of four-point functions containing both time-ordered and out-of-time-ordered correlation functions. For example, if both V and W are Hermitian and unitary, COTOC = 2(1 − 〈W(τ)V(0)W(τ)V(0)〉). Even though COTOC in Eq. (10) contains terms with reversed time ordering, \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2},{m}_{3})\) obtained from the three-time snapshotting method enables us to evaluate its value described as follows (see “Methods”):

Observation 2

COTOC can be obtained from the sequential measurement outcomes (m1m2m3) at three time points (t1t2t3) under the unitary dynamics \({U}_{{t}_{1}\to {t}_{2}}={U}_{\tau }\) and \({U}_{{t}_{2}\to {t}_{3}}={U}_{\tau }^{{\dagger} }\) as

$${C}_{{{\rm{OTOC}}}}={\mathbb{E}}\left[{\prod }_{i=1}^{3}{\gamma }_{{m}_{i}}^{{{\rm{OTOC}}}}\right],$$
(11)

with the Kraus operator described in Theorem 1 and some complex coefficients \({\gamma }_{{m}_{i}}^{{{\rm{OTOC}}}}\).

Compared to interference-based schemes for obtaining the OTOC46,47,48,71,72, our scheme offers the advantage that an ancilla state is required to remain coherent only for a short time during each ancilla-assisted measurement. We highlight that the time-reversal unitary is applied only once in our scheme. This can be contrasted with other ancilla-assisted measurement schemes47,54,73,74, which possess the same advantage as our scheme in ancilla coherence time but require two time-reversals. On the other hand, the stability of the protocol against imperfect implementations of the time-reversal unitary75,76 remains open for quantitative comparison with an interference-based scheme without time reversals47,48. While a similar approach utilizing classical post-processing of generalized measurement outcomes was studied73,74 for a qubit system under specific conditions \({V}^{2}={\mathbb{1}}={W}^{2}\), our results hold for any diagonalizable operators V and W of a general d-dimensional system. Another important difference is that our scheme cancels the impact of the measurement at each time point via classical post-processing, whereas in refs. 73,74, the latter measurements undo the earlier measurements from the condition \({V}^{2}={\mathbb{1}}={W}^{2}\). We also note that both OTOC and QPD can be obtained from the same scheme in our approach without requiring the subcircuits proposed in ref. 74.

Experimental realization

We experimentally demonstrate the proposed protocol with trapped ions. A crucial part of the protocol is the repeated measurement (ICD) and initialization (ICI) of the ancilla without influencing the system77,78,79,80,81, which are also core technologies for quantum error correction. In trapped-ion systems, the ICD and ICI can be achieved by adopting ion shuttling82,83,84,85,86 or multiple types of qubits79,87,88,89,90,91,92,93,94. Here, we employ two different species trapped in a single trap, 171Yb+ and 138Ba+ ions92,95,96, which are used for the system qubit and the ancilla qubit, respectively. Both trapped ions are controlled by lasers with different wavelengths so that they can be controlled independently with minimal influence on each other92.

In the experiment, the system qubit is encoded in the hyperfine levels of the S1/2 manifold of the 171Yb+ ion, \(\left\vert F=0,{m}_{F}=0\right\rangle= {\left\vert 0\right\rangle }_{{{\rm{Yb}}}}\) and \(\left\vert F=1,{m}_{F}=0\right\rangle= {\left\vert 1\right\rangle }_{{{\rm{Yb}}}}\) with a splitting of 12.6428 GHz. The ancilla qubit is encoded in Zeeman levels of the S1/2 manifold of the 138Ba+ ion, \(\left\vert {s}_{j}=1/2\right\rangle= {\left\vert 0\right\rangle }_{{{\rm{Ba}}}}\) and \(\left\vert {s}_{j}=-1/2\right\rangle= {\left\vert 1\right\rangle }_{{{\rm{Ba}}}}\) with an energy splitting of 16.2 MHz. Raman transitions are used to individually manipulate the 171Yb+ and 138Ba+ ion qubits with 355 nm and 532 nm lasers, respectively. For the entangling operations for both qubits, we simultaneously apply the 355 nm and 532 nm laser beams with appropriately chosen frequencies (see Supplementary Fig. 1).

As a concrete example, we reconstruct the three-time QPDs following the quantum circuit of Fig. 2b. The initial state of the system qubit (171Yb+ ion) is prepared to \({\rho }_{{{\rm{Yb}}}}= {(\left\vert {1}_{x}\right\rangle \left\langle {1}_{x}\right\vert )}_{{{\rm{Yb}}}}\), where \({\left\vert {1}_{x}\right\rangle }_{{{\rm{Yb}}}}= ({\left\vert 0\right\rangle }_{{{\rm{Yb}}}}-{\left\vert 1\right\rangle }_{{{\rm{Yb}}}})/\sqrt{2}\) as described in Fig. 3a. At time t1, the first ancilla-assisted measurement is performed. Then the system evolves from t1 to t2 under the unitary evolution \({U}_{{t}_{1}\to {t}_{2}}={R}_{X}(\theta )={e}^{-i\,\frac{\theta }{2}X}\). At time t2, the second ancilla-assisted measurement is conducted. From time t2 to t3, the system evolves under the unitary evolution \({U}_{{t}_{2}\to {t}_{3}}={R}_{Y}({\theta }^{2})={e}^{-i\frac{{\theta }^{2}}{2}Y}\) and at time t3, the system is directly measured (see Methods for further details).

Fig. 3: Experimental reconstruction of the three-time QPD and marginal distribution by the ancilla-assisted measurement.
figure 3

a The system qubit’s evolution is given by two successive rotations \({U}_{{t}_{1}\to {t}_{2}}={R}_{X}(\theta )\) and \({U}_{{t}_{2}\to {t}_{3}}={R}_{Y}({\theta }^{2})\) with θ = 0.74π. Note that the measurements are performed at three time points t1, t2, and t3. b The normalized observed trajectories from the measurements at times t1, t2, and t3 are represented by the 2D bar charts, where \({m}_{1},{m}_{2}\in \{\left\vert {0}_{x}\right\rangle,\left\vert {0}_{y}\right\rangle,\left\vert 0\right\rangle,\left\vert {1}_{x}\right\rangle,\left\vert {1}_{y}\right\rangle,\left\vert 1\right\rangle \}\). The bar charts on the left and right represent the observed trajectories of \({m}_{3}=\left\vert 0\right\rangle\) and \({m}_{3}=\left\vert 1\right\rangle\), respectively, which are the measurement results of time t3. c The three-time QPD p(x1x2x3) was reconstructed from the observed trajectories by classical processing. (i) The left blue bars indicate the real parts of the reconstructed three-time QPD, and the negativity of the real QPD is verified for p(x1 = 0, x2 = 1, x3 = 0) (in the blue-line box), which is  − 0.123(± 0.060). (ii) The right red bars indicate the imaginary parts of the reconstructed three-time QPD. d The marginal distributions for times t1, t2, and t3 under the unitary dynamics \({U}_{{t}_{1}\to {t}_{2}}\) and \({U}_{{t}_{2}\to {t}_{3}}\) show the snapshotting of the state evolution. The distributions are marginalized over all the other time points of the QPDs. For all figures, error bars indicate standard deviations (STDs).

The initial state and the time evolutions are chosen to illustrate how measurements can influence the subsequent dynamics of a quantum system and how the dynamics without the measurement effects can be reconstructed by our protocol discussed in the theory section. In particular, since the unitary evolution from time t1 to t2 is a rotation around the x-axis, the system state remains the same if no measurement is performed at time t1. However, when a measurement is made on the z-basis, the state collapses to \(\left\vert 0\right\rangle\) or \(\left\vert 1\right\rangle\) and then rotates under the evolution \({U}_{{t}_{1}\to {t}_{2}}\). From time t2 to t3, the unitary evolution rotates the system qubit around the y-axis with angle θ2, which leads to non-trivial behaviors of the QPDs and correlation functions beyond sinusoidal functions of θ. The three-time QPD is then expressed as

$$p ({x}_{1},{x}_{2},{x}_{3})\\ ={{\rm{Tr}}}\left[{U}_{{t}_{2}\to {t}_{3}}{U}_{{t}_{1}\to {t}_{2}}{\rho }_{{t}_{1}}{\Pi }_{{x}_{1}}{U}_{{t}_{1}\to {t}_{2}}^{{\dagger} }{\Pi }_{{x}_{2}}{U}_{{t}_{2}\to {t}_{3}}^{{\dagger} }{\Pi }_{{x}_{3}}\right]\\ =\langle {1}_{x}| {x}_{1}\rangle \left\langle {x}_{1}\right\vert {e}^{i(\theta /2)X}\left\vert {x}_{2}\right\rangle \left\langle {x}_{2}\right\vert {e}^{i({\theta }^{2}/2)Y}\left\vert {x}_{3}\right\rangle \\ \left\langle {x}_{3}\right\vert{e}^{-i({\theta }^{2}/2)Y}{e}^{-i(\theta /2)X}\left\vert {1}_{x}\right\rangle,$$
(12)

where \({\rho }_{{t}_{1}}={\rho }_{{{\rm{Yb}}}}= {(\left\vert {1}_{x}\right\rangle \left\langle {1}_{x}\right\vert )}_{{{\rm{Yb}}}}\) and \({\Pi }_{x}=|x\rangle \langle x|\) with x {0, 1} is an eigenprojector of Z.

Figure 3 shows the experimental results for the above procedure. The distribution of observed trajectories from three-time measurements, \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2},{m}_{3})\), for the case of θ = 0.74π is shown in Fig. 3b. At times t1 and t2, we have the measurement results in the x-, y- and z-basis and only the z-basis measurement results for time t3. As shown in the circuit of Fig. 2(b), x-, y- and z-basis measurements of the ancilla yield six measurement outcomes, \({m}_{i}\in \{\left\vert {0}_{x}\right\rangle,\left\vert {1}_{x}\right\rangle,\left\vert {0}_{y}\right\rangle,\left\vert {1}_{y}\right\rangle,\left\vert 0\right\rangle,\left\vert 1\right\rangle \}\). We post-select the data with only dark state outcomes to avoid heating of the vibrational modes (see Supplementary Fig. 6 for further details). We repeat each measurement configuration 100 times, for a total of 3600 measurements.

From the distribution of observed trajectories in Fig. 3b, the three-time QPDs p(x1x2x3) are reconstructed as shown in Fig. 3c. The quasi-probability of p(x1 = 0, x2 = 0, x3 = 0), as an example, is obtained directly from the relation of Eq. (7), \({\sum }_{{m}_{1},{m}_{2},{m}_{3}}{\gamma }_{0{m}_{1}}{\gamma }_{0{m}_{2}}{\gamma }_{0{m}_{3}}{p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2},{m}_{3})\), where γ0m can be calculated from Eq. (6). In our actual reconstruction, we perform an optimization procedure to obtain a proper \({\gamma }_{{x}_{i}{m}_{i}}\) for all experimental data (see “Methods”). Some data points in Fig. 3c deviate from the theoretical expectations by more than one standard deviation. This is because several observed trajectories shown in Fig. 3b deviate from the ideal values. However, these deviations are mainly due to technical imperfections rather than fundamental problems. We discuss experimental limitations related to fluctuations of experimental control parameters in the last section before the discussion section of the paper (see Supplementary Note 3 for further details). Despite these deviations, our experimental results reveal the essential features of the QPDs, which are different from classical probability distributions. Classically, the joint probabilities at multiple time points can only have positive values. However, as shown in Fig. 3c, the negative value for p(x1 = 0, x2 = 1, x3 = 0) and the imaginary values are observed for most cases.

The three-time QPDs enable us to evaluate the correct probability distribution of the system state during its unitary evolution. By taking the marginals of the QPDs, we recover the probability distribution at each point in time, which is not influenced by the previous measurements. As shown in Fig. 3d, the measurement results at times t1, t2, and t3 are consistent with those distributions where no measurements were performed before. The clear difference with and without previous measurements can be seen in the probability distribution at time t3. If projective measurements were performed at time t1 or t2, the distribution of the measurement results at time t3 should be 0.5 for each basis, which is not the case, as shown in Fig. 3d.

We can obtain any combination of two-time QPDs from the three-time QPDs and observe nonclassical features as shown in Fig. 4. The two-time QPDs are straightforwardly obtained from the three-time QPD by taking its marginals, \(p({x}_{1},{x}_{2})={\sum }_{{x}_{3}}p({x}_{1},{x}_{2},{x}_{3})\), \(p({x}_{1},{x}_{3})={\sum }_{{x}_{2}}p({x}_{1},{x}_{2},{x}_{3})\), and \(p({x}_{2},{x}_{3})={\sum }_{{x}_{1}}p({x}_{1},{x}_{2},{x}_{3})\). We note that it is not always possible to do the reverse, that is, the reconstruction of the three-time QPDs from two-time QPDs, even with all possible combinations. Some data points in Fig. 4 deviate from the ideal values by more than their standard deviations. Despite these deviations, we observe imaginary and negative values in two-time QPDs, as shown in Fig. 4, which indicate the coherence of the state with respect to the measurement basis11,12,13,59.

Fig. 4: The two-time QPDs obtained from the three-time QPDs.
figure 4

The blue and red bars indicate the real and imaginary parts of the QPDs. a The two-time QPD p(x1x2) from the unitary evolution \({U}_{{t}_{1}\to {t}_{2}}\). b The two-time QPD p(x1x3) from \({U}_{{t}_{1}\to {t}_{3}}\). c The two-time QPD p(x2x3) from \({U}_{{t}_{2}\to {t}_{3}}\). For all figures, the error bars indicate the STD, and the theoretical expectations are shown as dashed bars (see Supplementary Note 4 for details). We note that all the results here are derived directly from the three-time QPD, rather than from a separate experiment.

Imaginary and negative values in two-time QPDs are shown in Fig. 4a, b, and Fig. 4b, c, respectively. For the unitary evolution of the single-qubit state, the occurrence of imaginary and negative values in two-time QPDs can be understood from the relationship between the representation of the quantum state and the rotation axis in the Bloch sphere when the state contains coherence. For \({U}_{{t}_{1}\to {t}_{2}}\), the initial quantum state is represented on the x-axis, and the rotation axis for the unitary evolution is also aligned along the x-axis in the Bloch sphere. In this case, the QPDs reveal imaginary values, as shown in Fig. 4a. For \({U}_{{t}_{2}\to {t}_{3}}\), the quantum state is on the x-axis of the Bloch sphere, but the axis of rotation is along the y-axis, perpendicular to the state. In this case, the QPDs reveal negative values, as shown in Fig. 4c. Fig. 4b describes the process from time t1 to t3, which includes both parallel (time t1 to t2) and perpendicular (time t2 to t3) relationships between the initial state and the rotation axis.

We also obtain quantum correlation functions from the observed trajectories. For different values of θ, time-ordered three-time correlation functions (Fig. 5d) and all combinations of two-time correlation functions (Fig. 5c) are deduced from the three-time QPDs. We also reconstruct out-of-time-ordered correlation functions based on Observation 1. We present C(t3t2t1) with the reversed time-ordering and C(t1t3t2) with an increasing-decreasing time-ordering in Fig. 5e, f, respectively. The solid lines are from theoretical calculations, where their explicit forms can be found in Supplementary Note 4. Although certain data points exhibit deviations exceeding the error bars, the overall trends observed in the data are generally consistent with the theoretical predictions.

Fig. 5: The results of the two- and three-time correlation functions.
figure 5

Here, blue and red colors indicate the real and the imaginary parts of the correlation functions, respectively. Experimental data and theoretical expectations are shown as dots and solid lines, respectively. The bands indicate the STD of the experimental data. ac The two-time correlation functions reconstructed from the three-time QPDs. d The time-ordered three-time correlation function reconstructed from the three-time QPDs. e, f C(t3t2t1) with the reversed time-ordering and C(t1t3t2) with an increasing-decreasing time-ordering respectively.

The majority of the experimental deviations stem from technical imperfections in controlling experimental parameters rather than fundamental issues in the underlying theoretical framework. Fluctuations in the parameters of the Mølmer-Sørensen (M-S) gates are primarily responsible for the observed experimental deviations. In particular, more than 90% of the data points that deviate from theoretical predictions in Fig. 3b can be explained by fluctuations in the rotation angle of the M-S gates and the relative phase between two successive gates (see Supplementary Note 3). In the analysis, the amounts of the fluctuations in rotation angle and relative phase are required to be 0.03π (corresponding to 11.8% fluctuations) and 0.04π (approximately 4.4% fluctuations), respectively. We investigate the performance of the M-S gate using quantum process tomography, but we highlight that this data is not used for obtaining the joint distribution. The related details and other experimental imperfections are discussed in Supplementary Note 3.

Figure 6 indicates the fidelity \(F(p,{p}_{{{\rm{exp.}}}})={\sum }_{{x}_{3}}\sqrt{p({x}_{3}){p}_{{{\rm{exp.}}}}({x}_{3})}\) between the theoretical distribution at time t3 without intermediate measurements, \(p({x}_{3})={{\rm{Tr}}}[{\rho }_{{t}_{3}}{\Pi }_{{x}_{3}}]\), and the marginal distribution of the QPD, \({p}_{{{\rm{exp.}}}}({x}_{3})={\sum }_{{x}_{1},{x}_{2}}{p}_{{{\rm{exp.}}}}({x}_{1},{x}_{2},{x}_{3})\), obtained from the experimental data. The marginal distribution obtained experimentally at time t3 is closer to the ideal distribution compared to the case when intermediate projective measurements are performed at times t1 and t2.

Fig. 6: Fidelity between the distributions for the z-basis measurement at time t3.
figure 6

The error bars represent the standard error of the mean. Red dots refer to the fidelity between the marginal distribution from theory (p(x3)) and the experimentally obtained three-time QPD (\({p}_{{{\rm{exp.}}}}({x}_{3})={\sum }_{{x}_{1},{x}_{2}}{p}_{{{\rm{exp.}}}}({x}_{1},{x}_{2},{x}_{3})\)). A fidelity of 1 refers to two distributions are equal. The blue line refers to the theoretical fidelity between p(x3) and pproj.(x3) when projective measurements are performed at times t1 and t2. The blue dots refer to the corresponding experimental result. The pink shaded area indicates the advantage of the snapshotting protocol compared to projective measurements.

Discussion

We have introduced a protocol named snapshotting to extract quantum statistics at multiple times from ancilla-assisted measurements and demonstrated it experimentally using the 171Yb+-138Ba+ trapped-ion system. The key features of our approach are that the measurement effect can be entirely canceled out through classical post-processing of the ancilla measurement outcomes and that the measurement requires only a short-time system-ancilla interaction at each immediate time point. By snapshotting quantum dynamics, the QPD at multiple time points and various types of quantum correlation functions can be simultaneously obtained from a single distribution of observed trajectories. We highlight that this method is applicable to any quantum system and dynamics, serving as a valuable experimental tool for exploring the quantum statistics of both open and closed quantum systems.

The potential applications of the proposed protocol include exploring quantum dynamics in many-body physics. In principle, when considering local observables, the number of samples required to reconstruct QPDs and correlation functions does not scale with the size of the system or the number of qubits. This property is promising for obtaining various critical quantities based on correlation functions, such as OTOC, in quantum many-body systems25,26. As the KD distribution itself has recently been recognized as an essential tool for investigating information scrambling and quantum thermodynamics47,53,54,70, its direct reconstruction from experimental data will shed light on experimentally testing the nonclassical phenomena arising from quantum dynamics.

Methods

Proof of Theorem 1

Let us consider a slightly more general scenario such that the operators \(A={\sum }_{x=0}^{d-1}{a}_{x}\left\vert x\right\rangle \left\langle x\right\vert\) and \(B=\mathop{\sum }_{x=0}^{d-1}{b}_{x}\left\vert x\right\rangle \left\langle x\right\vert\) diagonal in the same basis \({\{\left\vert x\right\rangle \}}_{x=0}^{d-1}\) are acting on the left and right sides of a d-dimensional quantum state, respectively, given as

$${{{\mathcal{E}}}}_{B,A}(\rho )=B\, \rho \, A=\mathop{\sum}_{m}{\gamma }_{m}(B,A){{{\mathcal{K}}}}_{m}(\rho ),$$
(13)

where \({{{\mathcal{K}}}}_{m}(\rho )={K}_{m}\rho {K}_{m}^{{\dagger} }\). We note that A and B are not required to be Hermitian. Theorem 1 in the main text to obtain the QPD p(x1x2,  , xN) is a special case with \(A={\Pi }_{x}= \left\vert x\right\rangle \left\langle x\right\vert\), \(B={\mathbb{1}}\), and \({\gamma }_{xm}={\gamma }_{m}({\mathbb{1}},{\Pi }_{x})\).

We then construct a set of Kraus operators {Km} to satisfy the condition in Eq. (13):

Proposition 1

For the operators \(A={\sum }_{x}{a}_{x}\left\vert x\right\rangle \left\langle x\right\vert\) and \(B={\sum }_{x}{b}_{x}\left\vert x\right\rangle \left\langle x\right\vert\) diagonal in the same basis \(\{\left\vert x\right\rangle \}\), there always exists γm(BA) satisfying Eq. (13) for a set of Kraus operators {Km} with

$${K}_{m}={\sum }_{x=0}^{d-1}\left(\frac{\langle {\phi }_{m}| x\rangle }{\sqrt{\alpha }}\right)\left\vert x\right\rangle \left\langle x\right\vert,$$
(14)

where \(\left\{\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert \right\}\) is a set of informationally complete projectors and satisfies \({\sum }_{m}\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert=\alpha {\mathbb{1}}\).

Proof

For the diagonal operators A = ∑xax Πx and B = ∑xbx Πx, let us rewrite Eq. (13) as

$${{{\mathcal{E}}}}_{B,A}(\rho )=\, B\rho A\\=\, \left({\sum }_{y=0}^{d-1}{b}_{y}{\Pi }_{y}\right)\rho \left({\sum }_{x=0}^{d-1}{a}_{x}{\Pi }_{x}\right)\\=\, {\sum }_{x,y=0}^{d-1}{a}_{x}{b}_{y}{\Pi }_{y}\rho {\Pi }_{x}\\=\, {\sum }_{x,y=0}^{d-1}\langle x| \left({\sum }_{x^{\prime},y^{\prime}=0}^{d-1}{a}_{x^{\prime} }{b}_{y^{\prime} }\left\vert x^{\prime} \right\rangle \left\langle y^{\prime} \right\vert \right)| \,y\rangle {\Pi }_{y}\rho {\Pi }_{x}\\=\, {\sum }_{x,y=0}^{d-1}\langle x| O(B,A)| y\rangle {\Pi }_{y}\rho {\Pi }_{x},$$
(15)

where we define \(O(B,A)={\sum }_{x,y=0}^{d-1}{a}_{x}{b}_{y}\left\vert x\right\rangle \left\langle y\right\vert\). We note that any operator O can be expressed in terms of the informationally complete projectors \(\{\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert \}\) as \(O={\sum }_{m}{c}_{m}^{O}\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert\) with some complex coefficients \({c}_{m}^{O}\). This leads to an alternative expression

$$O\,(B,A)=\mathop{\sum}_{m}{c}_{m}^{O(B,A)}\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert .$$
(16)

By substituting this form into Eq. (15), we obtain

$$ {{{\mathcal{E}}}}_{B,A}(\rho )\\ ={\sum}_{m}{\sum }_{x,y=0}^{d-1}{c}_{m}^{O(B,A)}\langle x| {\phi }_{m}\rangle \langle {\phi }_{m}| y\rangle {\Pi }_{y}\rho {\Pi }_{x}\\ ={\sum}_{m}\alpha {c}_{m}^{O(B,A)}\left({\sum }_{y=0}^{d-1}\frac{\langle {\phi }_{m}| y\rangle }{\sqrt{\alpha }}{\Pi }_{y}\right)\rho \left({\sum }_{x=0}^{d-1}{\Pi }_{x}\frac{\langle x| {\phi }_{m}\rangle }{\sqrt{\alpha }}\right)\\ ={\sum}_{m}{\gamma }_{m}(B,A){K}_{m}\rho {K}_{m}^{{\dagger} }\\ = {\sum}_{m}{\gamma }_{m}(B,A){{{\mathcal{K}}}}_{m}(\rho ),$$
(17)

where we take \({K}_{m}={\sum }_{y=0}^{d-1}\frac{\langle {\phi }_{m}| y\rangle }{\sqrt{\alpha }}{\Pi }_{y}\) to satisfy the normalization condition \({\sum }_{m}{K}_{m}^{{\dagger} }{K}_{m}={\mathbb{1}}\) and define \({\gamma }_{m}(B,A)=\alpha {c}_{m}^{O(B,A)}\).

To complete the proof of Theorem 1, we show that these Kraus operators can be realized by the ancilla-assisted measurements. To this end, we introduce a d-dimensional ancilla state, initially prepared in \({\left\vert 0\right\rangle }_{R}\). After applying the CSUM gate, a generalized CNOT gate, \({U}_{{{\rm{CSUM}}}}=\mathop{\sum }_{x,y=0}^{d-1}\left\vert x,x\oplus y\right\rangle \left\langle x,y\right\vert\) followed by the ancilla measurement with respect to the set of informationally complete projectors \(\{\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert \}\), the Kraus operators for each measurement outcome become

$${K}_{m}=\mathop{\sum }_{x=0}^{d-1}\left(\frac{\langle {\phi }_{m}| x\rangle }{\sqrt{\alpha }}\right){\Pi }_{x}=\frac{\left\langle {\phi }_{m}\right\vert {U}_{{{\rm{CSUM}}}}{\left\vert 0\right\rangle }_{R}}{\sqrt{\alpha }}.$$
(18)

For a d-dimensional system, a set of informationally complete projectors \(\{\left\vert {\phi }_{m}\right\rangle \left\langle {\phi }_{m}\right\vert \}\) has at least d2 elements. For example, the measurement set discussed in the main text, \(\{\vert {\phi }_{m}\rangle \}=\{\vert 0\rangle,\vert 1\rangle,\vert {0}_{y}\rangle,\vert {1}_{y}\rangle,\vert {0}_{x}\rangle,\vert {1}_{x}\rangle \}\) has 6 elements, which is more than d2 = 4, thus being overcomplete. However, this measurement set is easier to realize in experiments since all the projectors are the eigenvalues of the Pauli matrices.

Theorem 1 can be extended to local operators A and B of a multi-qudit system. This can be achieved by replacing Πx with \({\mathbb{1}}\otimes \cdots \otimes {\mathbb{1}}\otimes {\Pi }_{x}\otimes {\mathbb{1}}\otimes \cdots \otimes {\mathbb{1}}\), where the projection is only applied to the target qudit. Consequently, Km only acts on the target qubit while maintaining the same form as in Eq. (18), ensuring that the corresponding ancilla-assisted measurement requires only the interaction between the ancilla state and the target qudit. Since the coefficient γm(BA) for the local operators A and B remains the same as in the single-qudit case, the protocol does not scale with the size of the system as long as A and B act on a single-qudit.

We also note that there can be various choices of weight vectors γm(BA) that satisfy Eq. (13) for a given set of Kraus operators {Km}. In this case, the optimal choice would be to minimize \(| \gamma (B,A){| }_{\max }:={\max }_{m}\{| {\gamma }_{m}(B,A)| \}\) as the number of samples to collect for a fixed precision scale with \(| \gamma (B,A){| }_{\max }^{2}\) from Hoeffding’s inequality62. More precisely, the optimization problem can be formalized as follows:

$$\,{{\mbox{for \, given:}}}\,\qquad A,\,B,\,\{{K}_{m}\}$$
(19)
$${{\mbox{minimize:}}}\,\qquad | \gamma {| }_{\max }={\max }_{m}\{| {\gamma }_{m}| \}$$
(20)
$${{\mbox{subject \, to:}}}\,\qquad B\otimes {A}^{T}={\sum}_{m}{\gamma }_{m}{K}_{m}\otimes {K}_{m}^{*}.$$
(21)

By vectorizing the density matrix ρ in Eq. (13), we note that Eq. (21) is equivalent to the condition that Eq. (13) holds for any ρ.

For \(A={\sum }_{x=0}^{d-1}{a}_{x}\left\vert x\right\rangle \left\langle x\right\vert\) and \(B=\mathop{\sum }_{x=0}^{d-1}{b}_{x}\left\vert x\right\rangle \left\langle x\right\vert\) and the measurement operators described in Eq. (18), the condition in Eq. (21) is reduced to

$${{\boldsymbol{T}}}{{\boldsymbol{\gamma }}}=\alpha {{\boldsymbol{\xi }}},$$
(22)

where [T]x+yd, m= 〈ϕmy〉〈xϕm〉, [γ]m= γm, and [ξ]x+yd= axby. From numerical optimization for the measurement set \(\{\vert {\phi }_{m}\rangle \}=\{\vert 0\rangle,\vert 1\rangle,\vert {0}_{y}\rangle,\vert {1}_{y}\rangle,\vert {0}_{x}\rangle,\vert {1}_{x}\rangle \}\) with α = 3, which leads to \(\{{K}_{m}\}=\left\{\frac{{\Pi }_{0}}{\sqrt{3}},\frac{{\Pi }_{1}}{\sqrt{3}},\frac{{S}^{{\dagger} }}{\sqrt{6}},\frac{S}{\sqrt{6}},\frac{{\mathbb{1}}}{\sqrt{6}},\frac{Z}{\sqrt{6}}\right\}\), we obtain \({\gamma }_{\max }={\max }_{x,m}\{| {\gamma }_{m} ({\mathbb{1}},{\Pi }_{x})| \} \approx 1.775\). This is a more efficient decomposition than that in Eq. (6), which yields \({\gamma }_{\max }=3\).

Derivation of Observation 1

From the cyclic property of the trace, the correlation function can be rewritten as

$$\begin{array}{l}C({t}_{{\mu }_{1}},\cdots \,,{t}_{{\mu }_{j}},\cdots \,,{t}_{{\mu }_{k}})\\={{\rm{Tr}}}[A({t}_{{\mu }_{j+1}})\cdots A({t}_{{\mu }_{k}}){\rho }_{{t}_{0}}A({t}_{{\mu }_{1}})\cdots A({t}_{{\mu }_{j}})].\end{array}$$
(23)

Then we note that both \({t}_{{\mu }_{1}}\le {t}_{{\mu }_{2}}\le \cdots \le {t}_{{\mu }_{j}}\) and \({t}_{{\mu }_{k}}\le {t}_{{\mu }_{k-1}}\le \cdots \le {t}_{{\mu }_{j+1}}\) are monotonically increasing time sequences, which leads to the following expression:

$$\begin{array}{l}C({t}_{{\mu }_{1}},\cdots \,,{t}_{{\mu }_{j}},\cdots \,,{t}_{{\mu }_{k}})\\={{\rm{Tr}}}[({{{\mathcal{E}}}}_{{B}_{N},{A}_{N}}\circ {{{\mathcal{U}}}}_{{t}_{N-1}\to {t}_{N}}\circ \cdots \circ {{{\mathcal{U}}}}_{{t}_{1}\to {t}_{2}}\circ {{{\mathcal{E}}}}_{{B}_{1},{A}_{1}})({\rho }_{{t}_{1}})],\end{array}$$
(24)

where \({{{\mathcal{U}}}}_{{t}_{i}\to {t}_{j}}(\rho )={U}_{{t}_{i}\to {t}_{j}}\rho {U}_{{t}_{i}\to {t}_{j}}^{{\dagger} }\) and we take \(({B}_{i},{A}_{i})=({\mathbb{1}},A)\) when A(ti) is applied to the right side \(({B}_{i},{A}_{i})=(A,{\mathbb{1}})\) when A(ti) is applied to the left side, and (BiAi) = (AA) when A(ti) is applied to both sides.

Since each \({{{\mathcal{E}}}}_{{B}_{i},{A}_{i}}\) can be expressed as a linear combination of the actions of the Kraus operators {Km} from Proposition 1, we obtain the following form,

$$C({t}_{{\mu }_{1}},\cdots \,,{t}_{{\mu }_{j}},\cdots \,,{t}_{{\mu }_{k}})={\mathbb{E}}\left[\mathop{\prod }_{i=1}^{N}{\gamma }_{{m}_{i}}({B}_{i},{A}_{i})\right],$$
(25)

by averaging over all possible observed trajectories following the distribution \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2},\cdots \,,{m}_{N})={{\rm{Tr}}}[({{{\mathcal{K}}}}_{{m}_{N}}\circ {{{\mathcal{U}}}}_{{t}_{N-1}\to {t}_{N}}\circ \cdots \circ {{{\mathcal{U}}}}_{{t}_{1}\to {t}_{2}}\circ {{{\mathcal{K}}}}_{{m}_{1}})({\rho }_{{t}_{1}})]\).

We highlight that the correlation functions with different time sequences \(({t}_{{\mu }_{1}},\cdots \,,{t}_{{\mu }_{k}})\) are obtained by only replacing the coefficients \({\gamma }_{{m}_{i}}({B}_{i},{A}_{i})\), which can be easily done in classical post-processing using the same data used to obtain \({p}^{{{\mathcal{K}}}}\).

Obtaining C OTOC from intermediate measurements

Let us express the OTOC for the two operators \(W(\tau )={U}_{\tau }^{{\dagger} }W{U}_{\tau }\) and V(0) = V as

$${C}_{{{\rm{OTOC}}}}= \langle {[W(\tau ),V(0)]}^{{\dagger} }[W(\tau ),V(0)]\rangle \\= \langle {W}^{{\dagger} }(\tau ){V}^{{\dagger} }(0)V(0)W(\tau )\rangle -\langle {V}^{{\dagger} }(0){W}^{{\dagger} }(\tau )V(0)W(\tau )\rangle \\ -\langle {W}^{{\dagger} }(\tau ){V}^{{\dagger} }(0)W(\tau )V(0)\rangle+\langle {V}^{{\dagger} }(0){W}^{{\dagger} }(\tau )W(\tau )V(0)\rangle \\ =\, {{\rm{Tr}}}[V{U}_{\tau }^{{\dagger} }W{U}_{\tau }\rho {U}_{\tau }^{{\dagger} }{W}^{{\dagger} }{U}_{\tau }{V}^{{\dagger} }] -{{\rm{Tr}}}[V{U}_{\tau }^{{\dagger} }W{U}_{\tau }\rho {V}^{{\dagger} }{U}_{\tau }^{{\dagger} }{W}^{{\dagger} }{U}_{\tau }] \\ -{{\rm{Tr}}}[{U}_{\tau }^{{\dagger} }W{U}_{\tau }V\rho {U}_{\tau }^{{\dagger} }{W}^{{\dagger} }{U}_{\tau }{V}^{{\dagger} }]+{{\rm{Tr}}}[W{U}_{\tau }V\rho {V}^{{\dagger} }{U}_{\tau }^{{\dagger} }{W}^{{\dagger} }]\\= {{\rm{Tr}}}[({{{\mathcal{E}}}}_{V,{V}^{{\dagger} }}\circ {{{\mathcal{U}}}}^{-1}\circ {{{\mathcal{E}}}}_{W,{W}^{{\dagger} }}\circ {{\mathcal{U}}}\circ {{{\mathcal{E}}}}_{{\mathbb{1}},{\mathbb{1}}})(\rho )] \\ -{{\rm{Tr}}}[({{{\mathcal{E}}}}_{V,{\mathbb{1}}}\circ {{{\mathcal{U}}}}^{-1}\circ {{{\mathcal{E}}}}_{W,{W}^{{\dagger} }}\circ {{\mathcal{U}}}\circ {{{\mathcal{E}}}}_{{\mathbb{1}},{V}^{{\dagger} }})(\rho )] \\ -{{\rm{Tr}}}[({{{\mathcal{E}}}}_{{\mathbb{1}},{V}^{{\dagger} }}\circ {{{\mathcal{U}}}}^{-1}\circ {{{\mathcal{E}}}}_{W,{W}^{{\dagger} }}\circ {{\mathcal{U}}}\circ {{{\mathcal{E}}}}_{V,{\mathbb{1}}})(\rho )]\\ +{{\rm{Tr}}}[({{{\mathcal{E}}}}_{W,W}\circ {{\mathcal{U}}}\circ {{{\mathcal{E}}}}_{V,{V}^{{\dagger} }})(\rho )],$$
(26)

where we denote \({{\mathcal{U}}}(\rho )={U}_{\tau }\rho {U}_{\tau }^{{\dagger} }\) and \({{{\mathcal{U}}}}^{-1}(\rho )={U}_{\tau }^{{\dagger} }\rho {U}_{\tau }\), respectively.

One can then construct the intermediate measurements \(\{{K}_{{m}_{1}}^{V}\}=\{{K}_{{m}_{3}}^{V}\}\) and \(\{{{{\mathcal{K}}}}_{{m}_{2}}^{W}\}\) from Proposition 1 to express \({{{\mathcal{E}}}}_{{\mathbb{1}},{\mathbb{1}}}\), \({{{\mathcal{E}}}}_{{\mathbb{1}},{V}^{{\dagger} }}\), \({{{\mathcal{E}}}}_{V,{\mathbb{1}}}\), and \({{{\mathcal{E}}}}_{V,{V}^{{\dagger} }}\) as a weighted sum of \({{{\mathcal{K}}}}_{{m}_{1}}^{V}\) or \({{{\mathcal{K}}}}_{{m}_{3}}^{V}\), and \({{{\mathcal{E}}}}_{W,{W}^{{\dagger} }}\) as a weighted sum of \({{{\mathcal{K}}}}_{{m}_{2}}^{W}\). From this, all four terms in COTOC can be obtained simultaneously from \({p}^{{{\mathcal{K}}}}({m}_{1},{m}_{2},{m}_{3})={{\rm{Tr}}}\left[\left({{{\mathcal{K}}}}_{{m}_{3}}^{V}\circ {{{\mathcal{U}}}}^{-1}\circ {{{\mathcal{K}}}}_{{m}_{2}}^{W}\circ {{\mathcal{U}}}\circ {{{\mathcal{K}}}}_{{m}_{1}}^{V}\right) (\rho )\right]\).

Experimental setup

We implement the quantum circuit in Fig. 2 to reconstruct the multi-time QPD for a qubit system. The experimental realization for the essential parts of the circuit is shown in Fig. 7. At the beginning of the protocol, we optically pump the system qubit to \({\left\vert 0\right\rangle }_{{{\rm{Yb}}}}\), then prepare the state of ρYb by using a single-qubit rotation performed by applying 355 nm Raman laser beams. As depicted in Fig. 7a, the Raman lasers have a frequency difference that matches the transition frequency of the 171Yb+ ion-qubit. This frequency matching allows the Raman lasers to drive unitary evolutions, specifically single-qubit rotations, on the 171Yb+ ion-qubit. At each time t1,  , tN−1, we perform the ancilla-assisted measurement as illustrated in Fig. 2b and Fig. 7a. The measurement procedure consists of initializing the ancilla qubit, applying a CNOT gate, and detecting the ancilla qubit state, where the first and third steps are regarded as the ICI and ICD. We perform the CNOT gate by using the M-S gate97 and single-qubit operations shown in Fig. 7b. The z-basis measurement of the 138Ba+ ion is realized by fluorescence detection after shelving \({\left\vert 0\right\rangle }_{{{\rm{Ba}}}}\) to the D5/2 manifold. The x- and y-basis measurements are realized by rotating the axis of the 138Ba+ ion state before the z-basis measurement. To repeat the protocol, we take the following steps at each cycle: (i) apply the unitary evolution to the system qubit, (ii) reset the ancilla qubit to realize the ICI, and (iii) perform the ancilla-assisted measurement. We simplify the final measurement by using a projection measurement on the system qubit of 171Yb+ ion in the basis \({m}_{N}\in \{\left\vert 0\right\rangle,\left\vert 1\right\rangle \}\), since no further measurements are performed after that.

Fig. 7: Experimental realization of unitary evolution and ancilla-assisted measurement with 171Yb+-138Ba+ trapped-ion system.
figure 7

a For step (i), the unitary operation \({U}_{{t}_{j-1}\to {t}_{j}}\) is performed by applying Raman laser beams to the system qubit represented by the pink ball. Later, the ancilla-assisted measurement is realized with the following three steps: (ii) initialization of the 138Ba+ qubit represented by the blue ball to \({\left\vert 0\right\rangle }_{{{\rm{Ba}}}}\) by optical pumping (OPT), (iii) application of a CNOT gate between two qubits through an entangling operation, and (iv) measurement of the ancilla qubit with fluorescence detection (DET). b The CNOT gate consists of an M-S gate and four single-qubit rotations. The M-S gate can be described as \(\exp (-i\frac{\pi }{4}X\otimes X)\), where X is the Pauli operator. The single-qubit rotation is defined as \(R(\theta,\phi)=\left(\begin{array}{ll} \cos(\frac{\theta}{2}) & -ie^{-i\phi}\sin(\frac{\theta}{2}) \\ -ie^{i\phi}\sin(\frac{\theta}{2}) & \cos(\frac{\theta}{2})\end{array}\right)\). c The final time measurement can be performed by direct measurement in basis \({m}_{N}\in \{\left\vert 0\right\rangle,\left\vert 1\right\rangle \}\) on the system qubit.