Introduction

The primary goal of science is to construct models that successfully predict empirical results. Weak values are an original way of predicting novel properties of quantum systems1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 which are empirically observable in the laboratory24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45. This new information offered by weak values cannot be accessed through expectation values. In physics, the time derivative of a physical property often leads to another meaningful property. It remains an open question whether this relationship holds for the time derivatives of weak values. This paper investigates such a relationship.

Weak values are generating increasing interest in the scientific community. They have been employed to explore novel properties such as the position-dependent velocity of particles in either non-relativistic5,6 or relativistic7 scenarios, thermalized kinetic energies8,9 as well as tunneling and arrival times10,11,12,13. Weak values have been invoked in cosmological contexts, such as inflation theory14 and the back-reaction of the Hawking radiation from black holes17. In quantum information science, they have been applied to quantum computation18, quantum communication19, and quantum sensing20.

There are many experimental protocols for weak values in optical and solid-state platforms24,25,26,27,28,29,30,31,32. Relevant experiments conducted with weak values include the three-box paradox39, the violation of the Leggett-Garg inequality40, the detection of the superluminal signals41 and the measurement of Bohmian trajectories42. Since weak values are expressed as quotients, a small denominator (i.e., quasi-orthogonal pre- and post-selected states) can be used to amplify the spin Hall effect of light43, optimize the signal-to-noise ratio44 and measure small changes in optical frequencies45.

This paper aims to explore the additional physical insights that can be gained about the behavior of quantum systems by analyzing not only weak values, but also their time derivatives. Wiseman was the first to discuss the time derivative of weak values5, presenting a local velocity derived from the time derivative of a weak value of the positionFootnote 1. This paper examines the time derivatives of weak values from a general perspective using arbitrary operators. In general, the time derivative of a weak value reveals a much richer phenomenology than the time derivatives of expectation values. In many cases, the time derivative of a weak value is neither a weak value nor invariant under an electromagnetic gauge transformation.

A quantity that is not invariant under an electromagnetic gauge transformation cannot be measured in a laboratory. The electromagnetic vector and scalar potentials are the typical examples of the utility and unmeasurability of gauge-dependent elements47,48,49,50,51 (with the Aharonov-Bohm effect being its most iconic example52). Similarly, a weak value or its time derivatives are empirically observable in the laboratory only when they are gauge invariant. Several examples of observable and unobservable weak values and their time derivative will be discussed in the paper. For example, it is known that the wave function depends on the electromagnetic gauge52,53,54. Thus, strictly speaking, the wave function cannot be empirically measured through a weak value.

The ontological meaning of weak values remains controversial, ranging from being mere mathematical transition amplitudes in most orthodox views55,56, to representing basic elements in alternative interpretations of quantum phenomena4,57,58,59,60,61. For example, the meaning of weak values has been interpreted in the context of the two-state vector formalism of quantum mechanics1,2,3,4, consistent histories21, and Bohmian or modal interpretations22,23. Controversies surrounding weak values also arise in debates about which empirical procedures can reliably measure a weak value in the laboratory. It is argued that weak values are measured from conditional probabilities obtained from a large ensemble of identically prepared systems62. In a recent experiment, however, a weak value was measured “with just a single click,” without requiring statistical averaging63. It has also been argued that weak values can, in fact, be measured using strong measurements64. The widely accepted consensus around the concept of weak values is the mathematical expression that defines a weak value. This mathematical expression, which is sufficient for all developments and conclusions in this paper, can be derived from all common quantum theories regardless of the ontological meaning attributed to weak values, and the resulting predictions can subsequently be tested in the laboratory, irrespective of the specific experimental protocol used. Thus, weak values (and their time derivatives) possess predictive power and offer novel ways to characterize quantum systems without the need to select a particular ontological interpretation or a fixed measurement protocol. Therefore, all results presented in this paper are ontologically neutral (valid under any interpretation of quantum mechanics). Similarly, we do not need to specify any ontological status for gauge-dependent elements to draw the conclusions of this paperFootnote 2.

The structure of the remainder of the paper is as follows. In the rest of this introduction, we revisit the role of electromagnetic gauge invariance in non-relativistic quantum mechanics, particularly regarding expectation values and their time derivatives. In Section “Time derivative of weak values”, we present the time derivatives of weak values and the conditions under which they are gauge invariant. In Section “Finite-difference approximations”, we present finite-difference approximations of the left- and right-hand time derivatives of weak values, and we show that they yield results identical to the theoretical ones when the latter are gauge invariant. In Section “Examples on Gauge invariance of weak values”, we explore how gauge invariance determines the empirical observability of typical weak values. Section “Examples on the time derivative of weak values” introduces several examples of time derivatives of weak values like the local velocity, the local version of the work-energy theorem, and the local Lorentz force, leading to local quantum sensors of the electromagnetic field. In Section “Which modal theories exhibit time-dependent consistency of weak values?”, we discuss which pre- and post-selected states provide time derivatives of weak values consistent with the time derivative of expectation values. Finally, Section “Conclusions” explains the main conclusion. Several Online Appendices detail the discussions presented in the paper.

Gauge invariance in quantum mechanics

Although they can also be formulated for many-particle scenarios8,9, weak values become especially relevant when discussing the properties of a single particle. All the results in the present paper are developed within the so-called semi-classical approach to light–matter interaction, in the sense that the electron (i.e., matter) is treated as a quantum particle, while the electromagnetic fields or potentials (i.e., light) are treated as classical fields, affecting the electron as external potentials, but without being affected themselves by the electronFootnote 3. In particular, we will deal with a non-relativistic spinless particle of mass m* interacting with a classical electromagnetic field.

The Hamiltonian of the system, in the Coulomb gauge, is written as52,53,54

$$\begin{aligned} H=H(\varvec{\mathcal{A}},A)= \frac{1}{2m^*}\left( \hat{{\textbf {P}}}-q\varvec{\mathcal{A}}\right) ^2+ qA, \end{aligned}$$
(1)

where q is the charge of the particle, \(\hat{{\textbf {P}}}=-i\hbar {\varvec{\nabla }}\) is the canonical momentum operator, and \(A\) and \(\varvec{\mathcal{A}}\) are the scalar and vector electromagnetic potentials, respectively. The evolution of the wave function \(\psi ({\textbf {x}},t)=\langle {\textbf {x}}|\psi (t)\rangle\) is given by the Schrödinger equation

$$\begin{aligned} i \hbar \frac{\partial \psi ({\textbf {x}},t)}{\partial t}= H(\varvec{\mathcal{A}}, A) \psi ({\textbf {x}},t). \end{aligned}$$
(2)

It is well-known that a different set of potentials (indicated by the superscript g) given by52,53,54

$$\begin{aligned} {\varvec{\mathcal{A}}}^g= {\varvec{\mathcal{A}}}+{\nabla } g\;\;\;\;\;\text {and}\;\;\;\;\;A^g= A-\frac{\partial g}{ \partial t}, \end{aligned}$$
(3)

keeps the overall theory invariant in the sense that the observable properties remain the same in any gauge. Here, \(g=g({\textbf {x}},t)\) is any sufficiently regular real function (apart from having space and time derivatives, \(g({\textbf {x}},t)\) must be single-valued.) over 3D space plus time t. For example, the electric and magnetic fields are gauge invariant and defined as \({\textbf {E}}=-{\varvec{\nabla }}A^g-\frac{\partial {\varvec{\mathcal{A}}}^g}{\partial t}\) and \({\textbf {B}}={\varvec{\nabla }}\times {\varvec{\mathcal{A}}}^g\), respectively. In this paper, according to the above notation in Eq. (3), any symbol (for a state, eigenvalue, operator, etc.) without a superscript g should be interpreted either as a gauge-invariant element or as an element defined within the Coulomb gauge.

When using a general gauge, to keep the same structure of the Schrödinger equation in (2), a gauge-dependent Hamiltonian \(H^g\) and a gauge-dependent wave function \(\psi ^g({\textbf {x}},t)\) are needed52,53,54. See Online Appendix A for details and Ref.52,53,54. The new-gauge Hamiltonian \(H^g\) is given by

$$\begin{aligned} H^g:=H ({\varvec{\mathcal{A}}}^g, A^g)=e^{i\frac{q}{\hbar }g}\left( H(\varvec{\mathcal{A}}, A)-q\frac{\partial g}{ \partial t}\right) e^{-i\frac{q}{\hbar }g}, \end{aligned}$$
(4)

and the new-gauge wave function \(\psi ^g({\textbf {x}},t)\) is given by:

$$\begin{aligned} \langle {\textbf {x}}|\psi ^g(t)\rangle =\langle {\textbf {x}}|\hat{{G}}(t)|\psi \rangle =\psi ^g({\textbf {x}},t)= e^{i\frac{q}{\hbar }g({\textbf {x}},t)} \psi ({\textbf {x}},t), \end{aligned}$$
(5)

where \(\hat{{G}}(t)\) is a local operator whose position representation is \(\langle {\textbf {x}}|\hat{{G}}(t)|{\textbf {x}}' \rangle\)\(=\langle {\textbf {x}}|e^{i\frac{q}{\hbar }\hat{{g}}}|{\textbf {x}}' \rangle\)\(=\)\(e^{i\frac{q}{\hbar }g({\textbf {x}},t)}\)\(\delta ({\textbf {x}}-{\textbf {x}}')\). This arbitrary gauge allows an infinite set of possible Hamiltonians, electromagnetic potentials, and wave functions47,48,49,50.

Finally, depending on the gauge, the wave function evolution can be equivalently written in terms of the (Coulomb gauge) time-evolution operator as \(|\psi (t_R)\rangle = \hat{U}(t_R) |\psi (0) \rangle\) or in a general gauge as \(|\psi ^g(t_R)\rangle = \hat{U}^g(t_R) |\psi ^g(0) \rangle\). As shown in Online Appendix B (see also67), the gauge dependence of the time evolution operator \(\hat{U}(t)\) is

$$\begin{aligned} \hat{U}^g(t):=\hat{{G}}(t)\hat{U}(t)\hat{{G}}^{\dagger }(0)=\hat{ \mathbb {T}} e^{-\frac{i}{\hbar }\int _0^{t} \hat{{H}}({\varvec{\mathcal{A}}}^g, A^g) dt'}, \end{aligned}$$
(6)

in agreement with the gauge-dependent Hamiltonian in Eq. (4) with \(\hat{\mathbb {T}}\) being the time-ordering integral operator and \(\hat{{G}}^{\dagger }(t)\) defined such that \(\hat{{G}}(t)\hat{{G}}^{\dagger }(t)=\mathbbm {1}\).

Time derivative of expectation values

The time derivative of weak values shows similarities and differences with the time derivative of expectation values. In this subsection, a brief explanation of the expectation values and their time derivatives is presented.

We consider an ensemble of identical quantum states \(|\psi \rangle =|\psi (0)\rangle\) prepared at the initial time \(t=0\). Such an initial state evolves until time t when a measurement of an output linked to the operator \(\hat{{O}}\) is made. The relationship between the measured output and the hermitian operator \(\hat{{O}}\) is determined through a positive-operator-valued measure (POVM) or a projection-valued measure (PVM)68,69. The expectation value \(\mathcal {E}\) is given by

$$\begin{aligned} \mathcal {E}\big (\hat{{O}},t\big ||\psi \rangle \big ):=\langle \psi |\hat{U}^{\dagger }(t)\hat{{O}}\hat{U}(t) |\psi \rangle =\langle \psi (t)|\hat{{O}}|\psi (t)\rangle , \end{aligned}$$
(7)

The notation of the left-hand side of Eq. (7) indicates that the expectation value is evaluated for the operator \(\hat{{O}}\) and conditioned on \(|\psi \rangle\) (i.e., the same property gives a different expectation value if the quantum state changes).

As reported in the literature48,52, the condition for \(\mathcal {E}\big (\hat{{O}},t_R|\psi \big )\) to be empirically observable (i.e., gauge invariant) is that the same value has to be obtained in the laboratory for the Coulomb or any other gauge, \(\langle \psi (t)|\hat{{O}}| \psi (t)\rangle =\langle \psi ^g(t)|\hat{{O}}^g | \psi ^g(t)\rangle\). Using Eqs. (5) and (6), the necessary and sufficient condition on the operator \(\hat{{O}}\) for the empirical observability of \(\mathcal {E}\big (\hat{{O}},t|\psi \big )\) for any state \(|\psi \rangle\) is then,

$$\begin{aligned} {\textbf {C1:}}\;\;\; \hat{{O}}^g:=\hat{{O}}(\hat{{\varvec{\mathcal{A}}}^g},\hat{A^g})=\hat{{G}}\hat{{O}}(\hat{{\varvec{\mathcal{A}}}}, \hat{A}) \hat{{G}}^{\dagger }. \end{aligned}$$

When this condition is satisfied, one gets the same expectation value in any gauge.

The preparation (pre-selection) of the initial state \(|\psi \rangle\) used in Eq. (7) to evaluate an expectation value is not free of gauge ambiguities. The Hilbert space representation of the quantum state is a gauge-dependent object, as shown in Eq. (5). Thus, the preparation of the initial state \(|\psi ^g\rangle\) is achieved by detecting a measurable property \({\lambda }^g\) of the system (not the initial quantum state itself). Let us define \(\hat{\Lambda }^g\) as the operator used to detect such a property as follows \(\hat{\Lambda }^g |\psi ^g\rangle ={\lambda }^g |\psi ^g\rangle\). We discuss below the condition on \(\hat{\Lambda }^g\) to ensure that \({\lambda }^g={\lambda }\) is gauge invariant (i.e., empirically measurable). Using \(|\psi ^g\rangle =\hat{{G}}|\psi \rangle\) as in Eq. (5), the previous eigenvalue equation in an arbitrary gauge \(\hat{\Lambda }^g |\psi ^g\rangle ={\lambda }^g |\psi ^g\rangle\) can be written as \(\hat{\Lambda }^g \hat{{G}}|\psi \rangle ={\lambda }^g \hat{{G}}|\psi \rangle\). Thus, to have \({\lambda }^g={\lambda }\), the necessary and sufficient condition on the operator \(\hat{\Lambda }\) is

$$\begin{aligned} {\textbf {C2:}}\;\;\;\hat{\Lambda }^g:=\hat{\Lambda }(\hat{{\varvec{\mathcal{A}}}}^g,\hat{A}^g)=\hat{{G}}\hat{\Lambda }(\hat{\varvec{\mathcal{A}}}, \hat{A}) \hat{{G}}^{\dagger }, \end{aligned}$$

In agreement with Eq. (5), when C2 is satisfied, the direct measurement of the initial state \(|\psi ^g\rangle\) is not accessible, but one can infer that the quantum system is \(|\psi ^g\rangle\) (in any gauge) by the measurement of the (gauge invariant) eigenvalue \({\lambda }\). In summary, condition C2 shows that, if Eq. (7) wants to be measured in the laboratory, the initial state \(|\psi \rangle\) has to be empirically identified in the laboratory through the measurement of the gauge invariant value \({\lambda }\).

A list of common operators and their accomplishment or not of C1 and C2 is presented in Table 1.Footnote 4

Table 1 Typical operators satisfying (\(\checkmark\)) or not (✗) the gauge conditions \(\hat{\Omega }^g=\hat{{G}}\hat{\Omega }\hat{{G}}^{\dagger }\).

Writing explicitly its t-dependence in Eq. (7) allows us to describe the time derivative of expectation values. From \(\mathcal {E}\big (\hat{{O}},t\big ||\psi \rangle \big )\), using

$$\begin{aligned} \frac{\partial \hat{U}(t)}{\partial t}=-\frac{i}{\hbar }\hat{{H}}(t)\hat{U}(t) \end{aligned}$$
(8)

and its complex conjugate \(\frac{\partial \hat{U}^{\dagger }(t)}{\partial t}=\frac{i}{\hbar }\hat{U}^{\dagger }(t) \hat{{H}}(t)\), it can be shown that:

$$\begin{aligned} & \frac{\partial \mathcal {E}\big (\hat{{O}},t \big ||\psi \rangle \big )}{\partial t} =\langle \Psi (t)|\hat{{C}}| \Psi (t)\rangle , \end{aligned}$$
(9)

where we have defined:

$$\begin{aligned} \hat{{C}}:=\frac{d \hat{{O}}(t)}{dt}=\frac{i}{\hbar }[\hat{{H}},\hat{{O}}]+\frac{\partial \hat{{O}}}{\partial t}. \end{aligned}$$
(10)

As far as the initial state is properly identified by the eigenvalue \({\lambda }\), and the operator \(\hat{{O}}\) satisfies, \(\hat{{O}}^g:=\hat{{G}}\hat{{O}}\hat{{G}}^{\dagger }\), it can be shown that the time derivative of the expectation value is also gauge invariant \(\langle \Psi ^g(t)|\hat{{C}}^g | \Psi ^g(t)\rangle =\langle \Psi (t)|\hat{{C}}| \Psi (t)\rangle\). See Online Appendix C and also Refs.52,54. In summary, no additional condition (apart from C1 and C2) is needed to ensure the gauge invariance of the time derivative of an expectation value.

All the results presented thus far are well-known in the literature. Equation (10) is just the Heisenberg equation of motion of the operator \(\hat{{O}}\). When selecting a particular wave function \(|\psi \rangle\), the expectation value applied to Eq. (10), using position and momentum as operators, leads to the well-known Ehrenfest theorem70.

Time derivative of weak values

Before discussing their time derivatives, we briefly introduce the weak value. As indicated first by Aharonov et al.1, additional empirical insights, which are not directly accessible from the expectation value \(\mathcal {E}\big (\hat{{O}},t\big ||\psi \rangle \big )\), can be obtained in the laboratory when the protocol to measure the expectation values is modified.

The prepared system \(|\psi \rangle\) is allowed to interact with another system, called the meter (or ancilla). During this interaction, the meter and the system become coupled, and the system undergoes a “weak” perturbation that can be modeled by a POVM linked to \(\hat{{O}}\). The subsequent measurement of the meter is expected to yield information about the property of the system associated with \(\hat{{O}}\) due to the previous system-meter coupling.

Up to this point, the procedure follows the general approach used to measure expectation values (using a POVM instead of a PVM) and introduces no novelty. The distinctive aspect of the weak value is that the averaging over the different meter outputs is performed only on a sub-ensemble of the initial states. This sub-ensemble includes only those initial states that yield the specific eigenvalue \({f}\) when a strong measurement is performed, at a later time, via the PVM of \(\hat{{F}}\) (i.e., \(\hat{{F}}| \textit{f}\;\rangle = {f}|\textit{f}\;\rangle\)).

Fig. 1
figure 1

(a) The weak value in Eq. (11) involves five steps: preparation of \(|\psi \rangle\) (red) at the initial time \(t=0\), unitary evolution \(\hat{U}_{{t_R}}\), weak perturbation linked to \(\hat{{O}}\) (green) at time \(t=t_R\), unitary evolution \(\hat{U}_{{t_L}}\) and strong measurement linked to \(\hat{{F}}\) (violet) at the final time \(t=t_R+t_L\). The weak value can be roughly understood as the property of the system during the intermediate green times. (b) The LHD computed when \(t_L\rightarrow 0\) while \(t_R\) is keep constant. (c) The FDLHD is evaluated at the final time and computed from the difference of the weak value \(W_1\) and \(W_2\), which are computed using two different values of \(t_L\) (\(t_L=0\) and \(t_L>0\)). (d) The RHD computed when \(t_R\rightarrow 0\) while \(t_L\) is keep constant. (e) The FDRHD is evaluated at the initial time and computed from the difference of the weak values \(W_1\) and \(W_2\), which are computed using two different values of \(t_R\) (i.e., \(t_R>0\) and \(t_R=0\)).

In Fig. 1a, we have represented the five steps involved in the definition of a weak value. Considering that the initial state \(|\psi \rangle\) defined at \(t=0\) evolves during a time interval \(t_R\) between the preparation (pre-selection) and the (weak) perturbation, modeled by \(\hat{U}_{{t_R}}:=\hat{U}(t_R)\) , and a time interval \(t_L\) between the (weak) perturbation and the strong measurement (post-selection), modeled by \(\hat{U}_{{t_L}}:=\hat{U}(t_L)\), the expectation value of \(\hat{{O}}\) conditioned to the fixed eigenstate \(\langle f|\) is given by:

$$\begin{aligned} \mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big ):=Re \left\{ { \frac{\langle \textit{f}\;| \hat{U}_{{t_L}} \hat{{O}}\hat{U}_{{t_R}}|\psi \rangle }{\langle \textit{f}\;|\hat{U}_{{t_L}} \hat{U}_{{t_R}}|\psi \rangle }} \right\}. \end{aligned}$$
(11)

The notation in the left-hand side of Eq. (11) indicates that the weak value \(\mathcal {W}\) is evaluated over the operator \(\hat{{O}}\) conditioned to the initial state \(|\psi \rangle\) and the final state \(|\textit{f}\;\rangle\) (i.e., a property measured through a weak value changes depending on the initial state \(|\psi \rangle\) and/or the final state \(|\textit{f}\;\rangle\)). Notice that \(\hat{U}_{{t_L}}\) in Eq. (11) is not complex-conjugated because it is a time evolution operator acting on the initial state \(|\psi \rangle\) (not on \(|\textit{f}\;\rangle\)). In other words, \(|\textit{f}\;\rangle\) is an eigenstate of \(\hat{{F}}\) at the final time, not at the initial time.

To justify that the weak value provides simultaneous information on the properties linked to the non-commuting operators \(\hat{{O}}\) and \(\hat{{F}}\) (or \(\hat{\Lambda }\) and \(\hat{{O}}\)), it is required \(t_L\rightarrow 0\) (\(t_R \rightarrow 0\)). In the literature, the so-called weak value is typically defined as \(\mathcal {W}\big (\hat{{O}},t_L=0,t_R=0\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\), and given by:

$$\begin{aligned} \mathcal {W}\big (\hat{{O}}\big ||\textit{f}\;\rangle ,|\psi \rangle \big ):=Re \left \{ {\frac{\langle \textit{f}\;| \hat{{O}}|\psi \rangle }{\langle \textit{f}\;| \psi \rangle }} \right\}. \end{aligned}$$
(12)

When \([\hat{{F}},\hat{{O}}]=0\) or \([\hat{\Lambda },\hat{{O}}]\) = 0, we get \(\mathcal {W}\big (\hat{{O}}\big ||\textit{f}\;\rangle ,|\psi \rangle \big )=o\) in Eq. (12), where \(o\) is the eigenstate of \(\hat{{O}}\). In general, when neither \([\hat{{F}},\hat{{O}}]=0\) nor \([\hat{\Lambda },\hat{{O}}]\)=0 is satisfied, the weak value can dramatically differ from an eigenvalue \(o\), giving additional physical insight about the quantum system. In the rest of the paper, we will use Eqs. (11) or  (12) depending on the need to make explicit the time dependence or not of the weak values.

The discussion of the gauge invariance of Eq. (11) requires first that the post-selected eigenvalue \({f}\) is gauge invariant (i.e., empirically observable). Using \(|\textit{f}\;^g \rangle\)\(=\hat{{G}}|\textit{f}\;\rangle\) as in Eq. (5), the eigenvalue equation in an arbitrary gauge \(\hat{{F}}^g |\textit{f}\;^g\rangle\)\(={f}^g |\textit{f}\;^g \rangle\) can be written as \(\hat{{F}}^g \hat{{G}}|\textit{f}\;\rangle\)\(= \hat{{G}}{f}^g |\textit{f}\;\rangle\). Thus, to have \({f}^g={f}\) certifying that the eigenvalue is accessible in the laboratory, the new necessary and sufficient condition on the operator \(\hat{{F}}\) is

$$\begin{aligned} {\textbf {C3:}}\;\;\;\hat{{F}}^g:=\hat{{F}}(\hat{{\varvec{\mathcal{A}}}}^g,\hat{A}^g)=\hat{{G}}\hat{{F}}(\hat{{\varvec{\mathcal{A}}}}, \hat{A}) \hat{{G}}^{\dagger }, \end{aligned}$$

In agreement with Eq. (5), when C3 is satisfied, the direct measurement of \(|\textit{f}\;^g\rangle\) is not accessible, but one can infer that the quantum system is \(|\textit{f}\;^g\rangle\) (in any gauge) by the measurement of the (gauge invariant) eigenvalue \({f}\). The role played by C3 in identifying \(|{f}\rangle\) is identical to the role played by C2 in identifying \(|\psi \rangle\).

Finally, the gauge invariance of Eq. (11) requires \({\langle \textit{f}\;^g | \hat{U}^g_{{t_L}} \hat{{O}}^g \hat{U}^g_{{t_R}}|\psi ^g\rangle }\)\(/{\langle \textit{f}\;^g |\hat{U}^g_{{t_L}} \hat{U}^g_{{t_R}}|\psi ^g\rangle }\)\(=\)\({\langle \textit{f}\;| \hat{U}_{{t_L}} \hat{{O}}\hat{U}_{{t_R}}|\psi \rangle }\)\(/{\langle \textit{f}\;|\hat{U}_{{t_L}} \hat{U}_{{t_R}}|\psi \rangle }\). By construction, according to Eqs. (5) and  (6), the denominator satisfies \({\langle \textit{f}\;|\hat{U}_{{t_L}} \hat{U}_{{t_R}}|\psi \rangle }={\langle \textit{f}\;^g |\hat{U}^g_{{t_L}} \hat{U}^g_{{t_R}}|\psi ^g\rangle }\). Then, only the gauge invariance of the numerator, i.e. \(\langle \textit{f}\;| \hat{U}_{{t_L}} \hat{{O}}\hat{U}_{{t_R}}|\psi \rangle =\langle \textit{f}\;^g | \hat{U}^g_{{t_L}} \hat{{O}}^g \hat{U}^g_{{t_R}}|\psi ^g\rangle\), needs to be checked. By the same arguments done in discussing the gauge invariance of \(\mathcal {E}\big (\hat{{O}},t|\psi \big )\), we conclude that the necessary and sufficient condition to ensure the gauge invariance of the weak value for any pre-selected \(\langle {f}|\) and post-selected \(|\psi \rangle\) states is that C1 is satisfied (together with C2 and C3). Thus Table 1 can also be used to discern which operators produce gauge-invariant weak values. Practical examples of gauge-invariant (and gauge-dependent) weak values will be presented in Section “Examples on Gauge invariance of weak values”.

To simplify the discussion, unless indicated, the weak value will be referred only to the real (not complex) value written in Eq. (11). If needed, the weak value can be defined as a real plus an imaginary part, \(\mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )+i \mathcal {W}_i\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\). The imaginary part is identified by a subscript i, indicating that the experimental measuring protocol to get the (imaginary) weak value \(\mathcal {W}_i\) is different from the experimental measuring protocol to get the (real) weak value \(\mathcal {W}\). See a detailed discussion in Ref.71,72.

As mentioned in the introduction, the time derivative of a physical property frequently gives rise to another meaningful property. We are interested here in the time derivative of a weak value. We also argue in the introduction that there is no consensus on either the ontological meaning of a weak value or the proper protocol to measure them. This lack of consensus will not affect the conclusions of this paper since we are only assuming the mathematical expression of the weak value given by Eq. (11) in all further developments. The weak value in Eq. (11) involves three times \(\{0,t_R,t_R+t_L\}\) separated by two time intervals \(t_R\) and \(t_L\). Thus, two different time derivatives can be envisioned.

Left-hand derivative (LHD)

The left-hand derivative (LHD) is evaluated at the final post-selected time (\(t=t_R+t_L\)), and it captures time-variations of \(\hat{U}_{{t_L}}\) and \(\hat{{O}}\) (while \(t_R\) is constant) as shown in Fig. 1b. One can evaluate LHD as:

$$\begin{aligned} LHD:= \; &\left. \frac{ \partial \mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )}{\partial t_L}\right| _{t_L=0} =\mathcal {W}\big (\hat{{C}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big ) \nonumber \\ & +Re \left\{ {\frac{i}{\hbar }\frac{\langle \textit{f}\;|\hat{{O}}\hat{{H}}\hat{U}_{{t_R}} |\psi \rangle }{\langle \textit{f}\;|\hat{U}_{{t_R}}|\psi \rangle }-\frac{i}{\hbar }\frac{\langle \textit{f}\;|\hat{{O}}\hat{U}_{{t_R}}|\psi \rangle }{\langle \textit{f}\;|\hat{U}_{{t_R}} \psi \rangle }\frac{\langle \textit{f}\;|\hat{{H}}\hat{U}_{{t_R}} |\psi \rangle }{\langle \textit{f}\;|\hat{U}_{{t_R}}| \psi \rangle }} \right\}, \end{aligned}$$
(13)

with \(\hat{{C}}=\frac{i}{\hbar }[\hat{{H}},\hat{{O}}]+\frac{d\hat{{O}}}{dt}\) the operator mentioned in Eq. (10). See the detailed demonstration in Online Appendix D.

Certainly, the shape of Eq. (13) is very different from the shape of Eq. (11). Thus, Eq. (13) cannot be understood as a weak value of a property linked to \(\hat{{C}}\). In addition, this expression presents a relevant impediment to be defined as a weak value because it is gauge dependent (i.e., empirically unobservable). The term \(\mathcal {W}\big (\hat{{C}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) in Eq. (13) is gauge invariant, but the terms \(\langle \textit{f}\;| \hat{{O}}\hat{{H}}\hat{U}_{{t_R}} |\psi \rangle\) and \(\langle \textit{f}\;|\hat{{H}}\hat{U}_{{t_R}} |\psi \rangle\) are gauge dependent because they are an inner product of the Hamiltonian which is a gauge-dependent operator as shown in Eq. (4) and in Table 1.

In Online Appendix D we have shown that, in general, Eq. (13) becomes gauge dependent when arbitrary states \(\langle {f}|\) are post-selected. However, the gauge dependence of the LHD of a weak value disappears, and it becomes empirically measurable, when we fix the post-selected state as an eigenstate of an operator satisfying

$$\begin{aligned} {\textbf {C4:}}\;\;\;\;\;\;\;[\hat{{O}},\hat{{F}}]=0. \end{aligned}$$

which means that \(\hat{{O}}|{f}\rangle =o|{f}\rangle\). Thus, only some very particular states \(\langle {f}|\) can be considered as post-selected states to compute LHD. Notice that Online Appendix D shows that C4 is a necessary and sufficient condition for the gauge invariance of LHD. Then, only the term \(\mathcal {W}\big (\hat{{C}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) remains in Eq. (13) and the LHD of the weak value is also a (gauge invariant) weak value. In particular, under this condition C4, a (gauge invariant) Ehrenfest theorem70 for weak values can be written as:

$$\begin{aligned} \left. \frac{ \partial \mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )}{\partial t_L}\right| _{t_L =0}=\mathcal {W}\big (\hat{{C}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big ). \end{aligned}$$
(14)

If \(t_R=0\), the weak value provides simultaneous information on two operators. The fact that \([\hat{{O}},\hat{{F}}]=0\) in C4 is compatible with \([\hat{{C}},\hat{{F}}]\ne 0\) so that the right-hand side of Eq. (14) gives simultaneous information on two non-commuting operators \(\hat{{C}}\) and \(\hat{{F}}\). Wiseman’s result on the local velocity5 can be interpreted as a result of Eq. (14), as seen in detail later in the development of Eq. (25) and in section “Local velocity of particle”.

Right-hand derivative (RHD)

The right-hand derivative (RHD) is evaluated at the initial pre-selection time (\(t=0\)), and it captures time-variations of \(\hat{U}_{{t_L}}\) and \(\hat{{O}}\) (while \(t_L\) is constant) as shown in Fig. 1d. One can evaluate RHD as:

$$\begin{aligned} & RHD:=\left. \frac{ \partial \mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )}{\partial t_R}\right| _{ t_R =0}=\mathcal {W}\big (\hat{{C}},t_L,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big ) \nonumber \\ & +Re \left \{ {-\frac{i}{\hbar }\frac{\langle \textit{f}\;| \hat{U}_{{t_L}} \hat{{H}}\hat{{O}}| \psi \rangle }{\langle \textit{f}\;| \hat{U}_{{t_L}}|\psi \rangle }+\frac{i}{\hbar }\frac{\langle \textit{f}\;| \hat{U}_{{t_L}} \hat{{O}}|\psi \rangle }{\langle \textit{f}\;| \hat{U}_{{t_L}}|\psi \rangle }\frac{\langle \textit{f}\;|\hat{U}_{{t_L}}\hat{{H}}|\psi \rangle }{\langle \textit{f}\;| \hat{U}_{{t_L}}|\psi \rangle }} \right \}. \end{aligned}$$
(15)

Again, in general, the right-hand side of Eq. (15) does not have the shape of a weak value, and it is also gauge dependent. See the detailed demonstration in Online Appendix E. The condition to achieve the gauge invariance of the RHD is

$$\begin{aligned} {\textbf {C5:}}\;\;\;\;\;\;\;[\hat{{O}},\hat{\Lambda }]=0 . \end{aligned}$$

which means that \(|\psi \rangle\) is prepared at \(t=0\) as an eigenstate of the operator \(\hat{{O}}\), i.e., \(\hat{{O}}|\psi \rangle =o|\psi \rangle\). Since the initial state is prepared by detecting an eigenstate \({\lambda }\) of the operator \(\hat{\Lambda }\) (as discussed in C2), the operator \(\hat{\Lambda }\) commutes with \(\hat{{O}}\) as indicated in C5. Notice that it is a necessary and sufficient condition for the gauge invariance of RHD, as shown in Online Appendix E.

Finally, when C5 is satisfied, similarly to what happens to LHD, Eq. (15) for evaluating the RHD can be rewritten as:

$$\begin{aligned} \left. \frac{ \partial \mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )}{\partial t_R}\right| _{ t_R =0}=\mathcal {W}\big (\hat{{C}},t_L,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big ). \end{aligned}$$
(16)

Again, the fact that \([\hat{{O}},\hat{\Lambda }]=0\) in C5 is compatible with \([\hat{{C}},\hat{\Lambda }]\ne 0\) so that the time-derivative of a weak value in Eq. (16) provides simultaneous information on two non-commuting operators. When conditions C4, C5 are not satisfied, LHD and RHD are different and gauge dependent.

The sum of RHD in Eq. (15) and LHD in Eq. (13), at \(t_R=0\) and \(t_L=0\) respectively, gives:

$$\begin{aligned} &\left. \frac{\partial \mathcal {W}\big (\hat{{O}},0,t_R\big ||{f}\rangle ,|\psi \rangle \big )}{\partial t_R}\right| _{ t_R =0}+\left. \frac{\partial \mathcal {W}\big (\hat{{O}},t_L,0\big ||{f}\rangle ,|\psi \rangle \big )}{\partial t_L}\right| _{t_L =0}\nonumber \\ & =\mathcal {W}\big (\hat{{C}},0,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big )+\frac{\langle \textit{f}\;| \frac{\partial \hat{{O}}}{\partial t}| \psi \rangle }{\langle \textit{f}\;| \psi \rangle }. \end{aligned}$$
(17)

Notice that Eq. (17) introduces a strong relationship between LHD and RHD. The term \(\mathcal {W}\big (\hat{{C}},0,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) is gauge invariant. On the contrary, the term \({\langle \textit{f}\;| \frac{\partial \hat{{O}}}{\partial t}| \psi \rangle }/{\langle \textit{f}\;| \psi \rangle }\) can be gauge dependent for a time-dependent (Schrödinger picture) operator \(\hat{{O}}\). In this paper, we will only consider time-independent operators \(\hat{{O}}\). Then, Eq. (17) specifies that if LHD is gauge invariant, then RHD is also gauge invariant, and vice versa.

Finite-difference approximations

In the laboratory, the time derivative of a weak value can be numerically computed after empirically evaluating two different weak values, \(\mathcal {W}_1\) and \(\mathcal {W}_2\), which differ in a time interval \(\tau\). Then, the time derivative can be numerically approximated as the finite difference \((\mathcal {W}_2 - \mathcal {W}_1)/\tau\). Again, we can distinguish between a finite-difference left-hand derivative (FDLHD) when \(\tau =t_L\), as seen in Fig. 1c, and a finite-difference right-hand derivative (FDRHD) when \(\tau =t_R\), as seen in Fig. 1e.

However, an apparent contradiction arises here because the finite-difference approximation of the time derivative of a weak value discussed in this section is, by construction, always gauge invariant (as long as the weak values \(\mathcal {W}_1\) and \(\mathcal {W}_2\) are gauge invariant by satisfying conditions C1, C2, and C3), while we have shown that LHD and RHD can be gauge dependent (even if conditions C1, C2, and C3 are fully satisfied) when conditions C4 and C5 are not accomplished, as discussed in the previous section.

Fig. 2
figure 2

Time derivative of the weak value of the position for different pre- and post-selected states defined in Table 2 at different angles \(\theta\) that parametrize different gauge functions \(g({\textbf {x}},t)\). At \(t_L=t_R=0\), LHD (red) and RHD (blue); at negative \(t_L\), FDLHD (red); at positive \(t_R\), FDRHD (blue) are plotted. (a) \(|\Phi _{1}\rangle\) for the pre-selected state and \(\langle \Phi _{2}|\) for the post-selected state satisfying condition C4. (b) \(|\Phi _{2}\rangle\) for the pre-selected state and \(\langle \Phi _{1}|\) for the post-selected state satisfying condition C5. (c) \(|\Phi _{3}\rangle\) for the pre-selected state and \(\langle \Phi _{4}|\) for the post-selected state without satisfying neither condition C4 nor C5. The sum LHD+RHD (green) at \(t_L=t_R=0\) and FDLHD+FDRHD (green) at positive \(t_R\) and negative \(t_L\) are also plotted.

A proper way to begin addressing the apparent contradiction between theoretical (LHD and RHD) and empirical (FDLHD and FDRHD) time derivatives of weak values is to recall that they are not the same. In quantum mechanics, theoretical properties and empirical properties do not always have a direct connectionFootnote 5. The theoretical time derivative is an operation on the Hilbert space, whereas the empirical time derivative is an operation on the empirical weak values of the laboratory. Therefore, if the theoretical LHD and RHD are not conceptually identical to the empirical FDLHD and FDRHD, the gauge behavior of the theoretical and empirical time-derivative of weak values can be different. This point is further elaborated in the following discussion.

Finite-difference left-hand derivative (FDLHD)

The finite-difference left-hand derivative (FDLHD) is evaluated at the final post-selected time (\(t=t_R+t_L\)) as happens to LDH. The FDLHD requires the empirical evaluation of the weak value \(\mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) as well as the weak value \(\mathcal {W}\big (\hat{{O}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\), as depicted in Fig. 1c. Then, the FDLHD for a small \(t_L\) (while \(t_R\) arbitrarily fixed) is:

$$\begin{aligned} FDLHD:=\frac{\mathcal {W}\big (\hat{{O}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )-\mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )}{t_L}. \end{aligned}$$
(18)

In both weak values, the pre-selected state \(|\psi (0)\rangle\) is prepared at \(t=0\). However, the weak perturbation is produced at time \(t=t_R\) in the first weak value and time \(t=t_R+t_L\) in the second. Identically, the (same) post-selected state \(\langle {f}|\) is considered at \(t=t_R\) in the first weak value and at \(t=t_R+t_L\) in the second. As indicated in Fig. 1c, \(\mathcal {W}\big (\hat{{O}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) with \(t_L=0\) provides information on what is the property of the quantum system (linked to \(\hat{{O}}\)) at the time when the system is post-selected in \(\langle {f}|\). On the contrary, \(\mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) provides information on what was such property, not at the time when the post-selection \(\langle {f}|\) takes place, but at a time \(t_L\) earlier. For example, we can expect \(\mathcal {W}\big (\hat{{\textbf {X}}},0,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big ) >\mathcal {W}\big (\hat{{\textbf {X}}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) for a quantum system with positive velocity.

Let us notice that, apart from Eq. (18), other finite-difference approximations can also be invoked to define a first-order time derivative of Eq. (13). In any case, the FDLHD is obtained by a simple numerical manipulation of the empirical weak values. Thus, the fact that the two empirical weak values involved in Eq. (18) are gauge invariant (as long as conditions C1, C2, and C3 are satisfied) implies that FDLHD itself is gauge invariant too. In Online Appendix F, it is shown that Eq. (18) becomes equal to Eq. (13) when condition C4 is satisfied.

Finite-difference right-hand derivative (FDRHD)

The finite-difference right-hand derivative (FDRHD), as happens to RHD, is evaluated at the initial (pre-selection) time, i.e., \(t=0\). The FDRHD requires evaluating the following two weak values as seen in Fig. 1e:

$$\begin{aligned} FDRHD:=\frac{ \mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )-\mathcal {W}\big (\hat{{O}},t_L,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big )}{t_R}. \end{aligned}$$
(19)

Again, the pre-selected state \(|\psi (0)\rangle\) is prepared at \(t=0\). But, the same post-selected state \(\langle {f}|\) is evaluated at \(t=t_L+t_R\) in the first weak value and at \(t=t_L\) in the second. Now, as indicated in Fig. 1e, the weak value \(\mathcal {W}\big (\hat{{O}},t_L,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) with \(t_R=0\) provides information on what is the property of the quantum system (linked to \(\hat{{O}}\)) at the time the system is pre-selected in \(|\psi \rangle\), while \(\mathcal {W}\big (\hat{{O}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) provides such information at a time interval \(t_R\) after the system was pre-selected in \(|\psi \rangle\). For example, we can expect \(\mathcal {W}\big (\hat{{\textbf {X}}},t_L,t_R\big ||\textit{f}\;\rangle ,|\psi \rangle \big ) >\mathcal {W}\big (\hat{{\textbf {X}}},t_L,0\big ||\textit{f}\;\rangle ,|\psi \rangle \big )\) for a quantum system with positive velocity. Again, both weak values are gauge invariant and observable in the laboratory (as long as conditions C1, C2, and C3 are satisfied). In Online Appendix G, it is shown that FDRHD becomes equal to RHD when condition C5 is satisfied.

As mentioned in the introduction to this section, when conditions C4 and C5 are not satisfied, the LHD and RHD are gauge dependent, whereas the FDLHD and FDRHD remain gauge independent. The physical reason, as explained earlier, is that the former involve operations in the Hilbert space, while the latter are defined in the laboratory frame. The mathematical distinction can be identified in the elements involved in their respective inner products.

By construction, the inner products required for evaluating the FDLHD involve the same inner products needed to evaluate a weak value in Eq. (11). Thus, the relevant elements are the pre- and post-selected states, the \(\hat{{O}}\) operator, and the time-evolution operators \(\hat{U}_{{t_L}}\) and \(\hat{U}_{{t_R}}\). In contrast, the evaluation of the inner products in the LHD in Eq. (13) involves the same states and \(\hat{{O}}\) operator but, apart from the time-evolution operators, it also involves explicitly the Hamiltonian operator \(\hat{{H}}\). This Hamiltonian operator depends on \(\partial g({\textbf {x}},t)/\partial t\), as shown in Eq. (4). It is this dependence on \(\partial g({\textbf {x}},t)/\partial t\) that leads to the gauge-dependence of the inner products involving the HamiltonianFootnote 6 (for the same reason, the Hamiltonian has gauge-dependent expectation values as seen in Table 1). In simple terms, the FDLHD in Eq. (18) can be obtained in the laboratory when \(t_L\) is small (but not in the limit \(t_L\rightarrow 0\)). Thus, it always involves \(\hat{U}_{{t_L}}\) and \(\hat{U}_{{t_R}}\) with finite \(t_L\) and \(t_R\), whose inner products remain gauge invariant. However, defining the LHD in Eq. (13) requires taking the limit \(t_L\rightarrow 0\), which implies dealing with the inner products that explicitly depend on \(\hat{{H}}\), making them gauge dependent when condition C4 is not satisfied. The same reasoning applies to the FDRHD and RHD.

We illustrate these important results with the following numerical simulations.

Numerical comparison

We consider a particle in free space and we evaluate the weak value of the position and its time derivative (which, in most cases, not all, will mean the velocity). The expressions LHD, RHD, FDLHD, and FDRHD are evaluated using the different Gaussian wave packets listed in Table 2 as pre- and post-selected states. The time derivative of the weak values is computed numerically as explained below.

Table 2 Different Gaussian wave packets \(\langle x|\Phi _{i}\rangle =\psi _{E_c,x_c,\sigma _x}(x,t_I)\) used in the numerical simulations in this work and defined in Eq. (N50), in Online Appendix N, in terms of the central energy \(E_c\), central wave vector \(k_c=\sqrt{2m^*E/\hbar ^2}\), central velocity \(v_c=\frac{\hbar k_c}{m^*},\) central position \(x_c\), and spatial dispersion \(\sigma _x\) at the wave packet preparation time.

When C4 is satisfied

In Fig. 2a, the pre-selected state is a Gaussian wave packet with a normal (not too short and not too large) spatial dispersion \(|\psi \rangle =|\Phi _{1}\rangle\), while the post-selected state is the Gaussian wave packet with a very short spatial dispersion \(\langle \Phi _{2}|\), as seen in Table 2. The last Gaussian wave packet is so narrow that it mimics a position eigenstate \(\langle {f}|=\langle \Phi _{2}|\approx \langle x_c|\). The theoretical LHD in Eq. (13) for the position operator \(\hat{{O}}=\hat{{\textbf {X}}}\), when \(t_R=0\), can be written as:

$$\begin{aligned} & \left. \frac{ \partial \mathcal {W}\big (\hat{{\textbf {X}}},t_L,0\big ||x_c \rangle ,|\Phi _{1}\rangle \big )}{\partial t_L}\right| _{ t_L =0}=\mathcal {W}\big (\hat{{\textbf {V}}},0,0\big ||x_c\rangle ,|\Phi _{1}\rangle \big )\nonumber \\ & \qquad +Re \left\{ {\frac{i}{\hbar }\frac{\langle x_c |\hat{{\textbf {X}}}\hat{{H}}| \Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }-\frac{i}{\hbar }\frac{\langle x_c | \hat{{\textbf {X}}}|\Phi _{1} \rangle }{\langle x_c | \Phi _{1}\rangle }\frac{\langle x_c |\hat{{H}}|\Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }} \right \}. \end{aligned}$$
(20)

The numerical evaluation of inner products in Eq. (20) just requires multiplying \(|\Phi _{1}\rangle\) by the operators \(\hat{{H}}\) and/or \(\hat{{\textbf {X}}}\) and doing the appropriate inner products with \(\langle \Phi _{2}|\approx \langle x_c|\). The results are plotted in a solid red line in Fig. 2a at \(t_R=t_L=0\). Since C4 is satisfied, LHD is given by \(\mathcal {W}\big (\hat{{\textbf {V}}},0,0\big ||v_o\rangle ,|\psi \rangle \big )=Re \left\{ {\frac{\langle x_c |\hat{{\textbf {V}}}|\Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }} \right\}={\textbf {v}}_B^{|\Phi _{1}\rangle }(x_c,0)\approx {\hbar k_{c,1}}/{m^*}=2.28\cdot 10^5\) m/s which corresponds to the Bohmian velocity of \(\langle x_c|\Phi _{1}(0)\rangle\). The formal development leading to the definition of the Bohmian velocity \({\textbf {v}}_B^{|\Phi _{1}\rangle }\) will be elaborated in detail later in the development of Eq. (25) (see also Eq. (27)).

We now evaluate FDLHD following Eq. (18) for different \(t_L\) (and \(t_R=0\)) as:

$$\begin{aligned} \frac{ \mathcal {W}\big (\hat{{\textbf {X}}},0,0\big ||x_c\rangle ,|\Phi _{1}\rangle \big )-\mathcal {W}\big (\hat{{\textbf {X}}},t_L,0\big ||x_c\rangle ,|\Phi _{1}\rangle \big )}{t_L} \approx \frac{ x_c - x_L}{t_L}, \end{aligned}$$
(21)

where we have defined \(x_c=\)\(\mathcal {W}\)\((\hat{{\textbf {X}}},0,\)\(0\big ||x_c\rangle ,|\Phi _{1}\rangle \big )=Re \left\{ {\frac{\langle x_c |\hat{{\textbf {X}}}|\Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }} \right \}\)\(=Re \left\{ {\frac{\langle x_c |\hat{{\textbf {X}}}|\Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }} \right \}\) and \(x_L:=\)\(\mathcal {W}\)\(\big (\hat{{\textbf {X}}},t_L,0\big ||x_c\rangle ,|\Phi _{1}\rangle \big )\)\(=Re \left\{ {\frac{\langle x_c |\hat{U}_{{t_L}}\hat{{\textbf {X}}}|\Phi _{1}\rangle }{\langle x_c |\hat{U}_{{t_L}}|\Phi _{1}\rangle }} \right \}\). The numerical evaluation of the last weak values requires preparing \(|\Phi _{1}(0)\rangle\) at the preparation time \(t_{1}=0\) and letting it evolve unitarily during a time interval \(t_L\) following the algorithm described in Eq. (N52) in Online Appendix N. The inner product of the evolved \(|\Phi _{1}(t_L)\rangle\) with the not-evolved \(\langle \Phi _{2}(t_L)|\approx \langle x_c|\), defined at its preparation time \(t_{2}=t_L\), provides the required denominator \(\langle x_c |\hat{U}_{{t_L}}|\Phi _{1}\rangle\). The numerator i.e., \(\langle x_c| \hat{U}_{{t_L}} \hat{{\textbf {X}}}|\Phi _{1}(0)\rangle\) requires the time evolution following the algorithm described in Eq. (N52) in Online Appendix N, during the time interval \(t_L\), of a state defined by the product of \(|\Phi _{1}(0)\rangle\) by \(\hat{{\textbf {X}}}\). The final results in Eq. (21) are plotted in red in Fig. 2a for different values of \(t_L\). The numerical values of results LHD and FDLHD are roughly identical, as justified in Online Appendix F when C4 is satisfied.

The values of RHD and FDRHD are also computed numerically with similar procedures, giving both values close to zero as plotted in blue in Fig. 2a. Such results can be easily justified through condition Eq. (17) rewritten here as LHD+RHD\(=Re \left\{ { \frac{\langle x_c | \frac{i}{\hbar }[\hat{{H}},\hat{{\textbf {X}}}] |\Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }} \right\}={\textbf {v}}_B^{|\Phi _{1}\rangle }(x_c,0)\), which fixes RHD to zero because we have already shown that LHD gives \({\textbf {v}}_B^{|\Phi _{1}\rangle }(x_c,0)\). The value FDRHD is also zero because it satisfies a similar relationship with FDLHD as shown in Eq. (G36) in Online Appendix G.

Notice that the results in Fig. 2a have been computed for different angles \(\theta\). These angles \(\theta\) parametrize different gauge functions g(xt) as described in Eq. (N56) in Online Appendix N. The initial pre- and post-selected states are the ones mentioned above multiplied by the gauge function at their respective initial time, \(e^{i\frac{q}{\hbar }g(x,0)}\langle x|\Phi _{1}(0)\rangle\) and \(e^{-i\frac{q}{\hbar }g(x,t_L)} \langle \Phi _{2}(t_L) |x\rangle\), as described in Eq. (N57) in Online Appendix N and their time evolution is given now by the algorithm described in Eq. (N63) in Online Appendix N. Here, all the final outputs become gauge independent (i.e, they do not depend on the selected gauge function parametrized by the angle \(\theta\)). The FDLHD and FDRHD are gauge independent by construction, while LHD and RHD are gauge independent here because condition C4 is satisfied.

When C5 is satisfied

In Fig. 2b, we plot similar results for a scenario where \(|\psi \rangle\) and \(\langle {f}|\) are interchanged. The pre-selected state is \(|\psi \rangle =|\Phi _{2}\rangle \approx | x_c \rangle\), while the post-selected states is \(\langle {f}|=\langle \Phi _{1}|\). The theoretical RHD in Eq. (15), when \(t_L=0\), can be written as:

$$\begin{aligned} & \left. \frac{ \partial \mathcal {W}\big (\hat{{\textbf {X}}},0,t_R\big ||\Phi _{1} \rangle ,|x_c\rangle \big )}{\partial t_R}\right| _{ t_R =0}=\mathcal {W}\big (\hat{{\textbf {V}}},0,0\big || \Phi _{1}\rangle ,|x_c\rangle \big )\nonumber \\ & +Re \left\{ {-\frac{i}{\hbar }\frac{\langle \Phi _{1} |\hat{{H}}\hat{{\textbf {X}}}| x_c \rangle }{\langle \Phi _{1} | x_c\rangle }+\frac{i}{\hbar }\frac{\langle \Phi _{1} | \hat{{\textbf {X}}}|x_c\rangle }{\langle \Phi _{1} | x_c\rangle }\frac{\langle \Phi _{1} |\hat{{H}}|x_c\rangle }{\langle {f}|x_c\rangle }} \right \}. \end{aligned}$$
(22)

Since C5 is satisfied RHD is given by \(\mathcal {W}\big (\hat{{\textbf {V}}},0,0\big ||\Phi _{1}\rangle ,|x_c\rangle \big )\)\(=Re \left\{ {\frac{\langle \Phi _{1} |\hat{{\textbf {V}}}|x_c\rangle }{\langle \Phi _{1} |x_c\rangle }} \right \}\)\(={\textbf {v}}_B^{|\Phi _{1}\rangle }(x_c,0)\)\(\approx \frac{\hbar k_{c,1}}{m^*}\)\(\approx\)\(2.28 \cdot 10^5\) m/s which corresponds again to the Bohmian velocity of the \(\langle x_c|\Phi _{1}(0)\rangle\) computed in Fig. 2a. This last result is a consequence of the hermiticity of the \(\hat{{\textbf {V}}}\), which implies that \(Re \left \{ {\frac{\langle \Phi _{1} |\hat{{\textbf {V}}}|x_c\rangle }{\langle \Phi _{1} |x_c\rangle }} \right \}=Re \left\{ {\frac{\langle x_c |\hat{{\textbf {V}}}|\Phi _{1} \rangle }{\langle x_c |\Phi _{1}\rangle }} \right\}\).

We also evaluate FDRHD in the laboratory for different \(t_R\) (and \(t_L=0\)) following Eq. (19):

$$\begin{aligned} \frac{ \mathcal {W}\big (\hat{{\textbf {X}}},0,t_R\big ||\Phi _{1} \rangle ,|x_c\rangle \big )-\mathcal {W}\big (\hat{{\textbf {X}}},0,0\big || \Phi _{1}\rangle ,|x_c\rangle \big )}{t_R} \approx \frac{ x_R- x_c }{t_R}, \end{aligned}$$
(23)

where we have defined \(x_c=\)\(\mathcal {W}\)\(\big (\hat{{\textbf {X}}},0,0\big ||x_c\rangle ,|\Phi _{1}\rangle \big )\)\(=Re \left \{ {\frac{\langle x_c |\hat{{\textbf {X}}}|\Phi _{1}\rangle }{\langle x_c |\Phi _{1}\rangle }} \right \}\) and \(x_R:=\)\(\mathcal {W}\)\(\big (\hat{{\textbf {X}}},0,t_R\big ||x_c\rangle ,|\Phi _{1}\rangle \big )\)\(=Re \left \{ {\frac{\langle x_c |\hat{{\textbf {X}}}\hat{U}_{{t_R}}|\Phi _{1}\rangle }{\langle x_c |\hat{U}_{{t_R}}|\Phi _{1} \rangle }} \right \}\). The numerical evaluation of the second weak value implies preparing \(|\Phi _{2}(0)\rangle \approx | x_c \rangle\) at the preparation time \(t_{2}=0\) and allowing the system to evolve unitarily during a time interval \(t_R\) following the evolution described in Eq. (N52) in Online Appendix N. The inner products are done in a similar way as described for Fig. 2a, involving now \(\langle \Phi _{1}(t_R)|\) at the preparation time \(t_{1}=t_R\). In Fig. 2b, in blue, we show that the results RHD and FDRHD are roughly identical. The condition Eq. (17) and Eq. (G36) also fix the values of LHD and FDLHD to roughly zero. The reasons for the gauge invariance (independence of \(\theta\)) are equivalent to the ones explained for Fig. 2a. Now, the accomplishment of condition C5 is involved.

When C4 and C5 are not satisfied

The next analysis provided in Fig. 2c explores a different scenario where neither the pre-selected state \(|\Phi _{3}\rangle\) nor the post-selected state \(\langle \Phi _{4}|\) can be considered position eigenstates. Thus, since neither condition C4 nor C5 is satisfied, the LHD computed from Eq. (20) and RHD computed from Eq. (22) are gauge dependent as seen for the red and blue curves at \(t_L=t_R=0\), i.e., their values depend on the angle \(\theta\) which parametrizes different gauge functions g(xt) as described in Eq. (N56) in Online Appendix N. On the contrary, by construction, the FDLHD computed from Eq. (21) and FDRHD computed from Eq. (23) remain gauge invariant as described in Online Appendies F and G but their values coincide neither with the Bohmian velocity of \(|\Phi _{3}\rangle\) nor \(\langle \Phi _{4}|\) written in Table 2.

In green, we have plotted LHD+RHD at \(t_R=t_L=0\) and FDLHD+FDRHD for different values of \(t_L\) and \(t_R\) and \(\theta\). Both sums become equal and gauge invariant as indicated in Eq. (17) and Eq. (G36) (for the time-independent operator \(\hat{{\textbf {X}}}\)), but the value of the sum does not coincide with the sum of the Bohmian velocities. In summary, when neither condition C4 nor C5 are satisfied, LHD and RHD cannot be obtained in the laboratory. On the contrary, FDLHD and FDRHD can be empirically evaluated in the laboratory, but it is not clear which physical insight can be attributed to them.

Table 3 Theoretical (LHD and RHD) and empirical (FDLHD and FDRHD) time-derivative of weak values satisfying (\(\checkmark\)) or not (✗) being invariant under gauge transformations (column Gauge. Inv) and having the mathematical shape of a wave value (column Weak Value) as a function of the accomplishment or not of conditions C4 or C5. The scenarios when LHD \(\approx\) FDLHD and RHD \(\approx\) FDRHD are indicated (column Similarity).

Finally, it is interesting to revisit Eq. (21) to acquire an intuitive motivation for C4. It seems natural to define the time derivative of a weak value as the difference between two weak values: one weak value \(x_c\) evaluated without time evolution, i.e., \(\hat{U}_{{t_L}}=\mathbbm {1}\), and the other weak value \(x_L\) with a time evolution during the time interval \(t_L\). It seems obvious to define the post-selected position \(x_c\), when \(\hat{U}_{{t_L}}=\mathbbm {1}\) in terms of weak values as \(x_c={\langle x_c |\hat{{\textbf {X}}}| \psi \rangle }/{\langle x_c |\psi \rangle }\) with \(\hat{{\textbf {X}}}|x_c\rangle =x_c|x_c\rangle\). Thus, the weak value \(x_L\) with arbitrary \(\hat{U}_{{t_L}}\) has to be defined as \(x_L={\langle x_c |\hat{U}_{{t_L}}\hat{{\textbf {X}}}| \psi \rangle }/{\langle x_c |\hat{U}_{{t_L}}|\psi \rangle }\), and we conclude that C4 becomes a quite natural requirement for the time derivative of a weak value because the condition \(\hat{{\textbf {X}}}|x_c\rangle =x_c|x_c\rangle\), i.e. \([\hat{{O}},\hat{{F}}]=0\) for \(\hat{{O}}=\hat{{\textbf {X}}}\) and \(\hat{{F}}=\hat{{\textbf {X}}}\), is required at the origin of this argumentation. This is exactly what happens for the LHD in Eq. (13) when C4 is satisfied. An identical conclusion occurs for C5 from Eq. (23). All these results regarding the gauge condition and the shape of the theoretical, LHD and RHD, and empirical, FDLHD and FDRHD, weak values are summarized in Table 3.

Examples on Gauge invariance of weak values

After the theoretical development and finite-difference approximations done in Sections “Time Derivative of Weak values” and “Finite-difference approximations”, here, we show several weak values often mentioned in the literature. In particular, we discuss whether or not they satisfy the gauge invariance implicit in properties C1, C3. To simplify the discussion, we will assume that the condition C2 in the preparation of the initial state \(|\psi ^g\rangle\) is always satisfied. Since this section does not deal with time-derivative yet, we will use Eq. (12) for the evaluation of the weak values, rather than Eq. (11).

To properly understand the results in this section, first, we need to clarify what we mean when we say, for example, that the canonical momentum on Table 1 is not empirically observable in the laboratory because it is gauge dependent. It is well-known that the canonical momentum \(\hat{{\textbf {P}}}^g:= \hat{{\textbf {P}}}(\hat{{\varvec{\mathcal{A}}}^g},\hat{A^g}) = \hat{{\textbf {P}}}\ne \hat{{G}}\hat{{\textbf {P}}}\hat{{G}}^{\dagger }\) does not satisfy condition C1. Thus, strictly speaking, it cannot be empirically measured in the laboratory either from an expectation value or from a weak value in a direct way. However, in many experimental works, the measurement of the “momentum” is inferred from the measurement of another property that is gauge invariant. For example, by measuring the position of the quantum system on the screen73 and knowing the initial and final time of the experiment. As we will discuss below, this measuring procedure is a measurement of the velocity (or the velocity multiplied by the mass) rather than a direct measurement of the canonical momentum (we emphasize that the above discussions and all the results in this paper about non-measurable gauge-dependent results do not imply ontological consequences for the canonical momentum or other gauge-dependent properties.).

In other words, the fact that the electromagnetic potentials are not gauge invariant does not imply that they are not physically relevant 51, but only that they cannot be directly measured in the laboratory.

Weak value of the canonical momentum post-selected in position

As discussed above, the canonical momentum operator \(\hat{{\textbf {P}}}^g:=\hat{{\textbf {P}}}(\hat{{\varvec{\mathcal{A}}}^g},\hat{A^g})=\hat{{\textbf {P}}}\ne \hat{{G}}\hat{{\textbf {P}}}\hat{{G}}^{\dagger }\) does not satisfy condition C1 and cannot be measured through weak values. Let us confirm this point by writing the theoretical expression corresponding to the weak measurement of the canonical momentum plus a subsequent strong measurement of the position operator \(\hat{{\textbf {X}}}^g:=\hat{{\textbf {X}}}(\hat{{\varvec{\mathcal{A}}}^g},\hat{A^g})=\hat{{\textbf {X}}}=\hat{{G}}\hat{{\textbf {X}}}\hat{{G}}^{\dagger }\). Such weak value would be given by \(\mathcal {W}\big (\hat{{\textbf {P}}}\big ||{\textbf {x}}\rangle ,|\psi \rangle \big )\) which, when written in any gauge, becomes

$$\begin{aligned} Re \left \{ {\frac{\langle {\textbf {x}}^g |\hat{{\textbf {P}}}|\psi ^g\rangle }{\langle {\textbf {x}}^g|\psi ^g\rangle }} \right \}=Re \left \{ {-i\hbar \frac{{\varvec{\nabla }}\psi ^g}{\psi ^g}} \right \}={\varvec{\nabla }}S-q {\varvec{\nabla }}g. \end{aligned}$$
(24)

where \([\hat{{G}},\hat{{\textbf {X}}}]=0\) and \(|\psi ^g\rangle =\hat{{G}}|\psi \rangle\). We use \(\psi ({\textbf {x}},t)=R({\textbf {x}},t)e^{iS({\textbf {x}},t)/\hbar }\) in polar form to better elaborate \({{\varvec{\nabla }}\psi ^g}/{\psi ^g}\). The explicit dependence of Eq. (24) on \({\varvec{\nabla }}g\) confirms that this weak value cannot be observed in the laboratory.

In the Coulomb gauge representation (\(g=0\) and \({\varvec{\nabla }}\cdot {\varvec{\mathcal{A}}}=0\)), in the absence of a magnetic field \({\varvec{\mathcal{A}}}=0\), the velocity and canonical momentum operators are identical \(m\hat{{\textbf {V}}}=\hat{{\textbf {P}}}\). This coincidence in one particular gauge does not mean that the velocity and momentum operators are the same in general, i.e., \(m\hat{{\textbf {V}}}^g\ne \hat{{\textbf {P}}}^g\). In the same way, the knowledge of \({\varvec{\mathcal{A}}}=0\) in the Coulomb gauge does not mean that one can assume \({\varvec{\mathcal{A}}}^g=0\) in another gauge.

Weak value of the velocity post-selected in position

Contrary to the canonical momentum, the velocity operator \(\hat{{\textbf {V}}}^g\) is defined as

$$\begin{aligned} \hat{{\textbf {V}}}^g:=\hat{{\textbf {V}}}(\hat{{\varvec{\mathcal{A}}}^g},\hat{A^g})=(\hat{{\textbf {P}}}^g-q\hat{{\varvec{\mathcal{A}}}}^g)/m=\hat{{\textbf {V}}}=\hat{{G}}\hat{{\textbf {V}}}\hat{{G}}^{\dagger }, \end{aligned}$$

and it is gauge invariant and satisfies C1 for \(\hat{{O}}=\hat{{\textbf {V}}}\). Hence, the weak measurement of the velocity post-selected in position gives the empirically observable weak value \(\mathcal {W}\big (\hat{{\textbf {V}}}\big ||{\textbf {x}}\rangle ,|\psi \rangle \big )\) defined as

(25)

The weak value gives the so-called Bohmian velocity5,6,9, \({\textbf {v}}_B^{|\psi \rangle }=({\varvec{\nabla }}S-q{\varvec{\mathcal{A}}})/m^*\), which is gauge invariant because it satisfies C1 for \(\hat{{O}}=\hat{{\textbf {V}}}\) and C3 for \(\hat{{F}}=\hat{{\textbf {X}}}\). See an alternative demonstration in Online Appendix H and also74. The superscript \({|\psi \rangle }\) in \({\textbf {v}}_B^{|\psi \rangle }\) just indicates that the Bohmian velocity is a functional of the wave function \(\psi\).

As discussed previously (see71,72), another weak value can be designed to give the imaginary part of Eq. (25), \(Im {{\langle {\textbf {x}}| \hat{{\textbf {V}}}^g |\psi ^g\rangle }/{\langle {\textbf {x}}|\psi ^g\rangle }}\), which is called the “osmotic” velocity \({\textbf {v}}_O^{|\psi \rangle }\)9,58,75,76 and given by \({\textbf {v}}_O^{|\psi \rangle }:=-Im {{\langle {\textbf {x}}| \hat{{\textbf {V}}}^g |\psi ^g\rangle }/{\langle {\textbf {x}}|\psi ^g\rangle }}=\frac{\hbar }{m^*}\frac{{\varvec{\nabla }}R^g}{R^g}\), which is also gauge invariant because \(R^g=R\). Notice that there is some ambiguity regarding the sign in the definition of osmotic velocity in the literature9,58,75,76.

The consistency in interpreting \(\mathcal {W}\big (\hat{{\textbf {V}}}\big ||{\textbf {x}}\rangle ,|\psi \rangle \big )\) as a velocity is provided by the LHD in Eq. (13) when \(\hat{{O}}=\hat{{\textbf {X}}}\) and \(|\textit{f}\;\rangle =|{\textbf {x}}\rangle\), as will be seen in Eq. (27) in next section.

Weak value of the position projector post-selected in the canonical momentum

Let us now analyze the weak value corresponding to the position projector \(|{\textbf {x}}^g \rangle \langle {\textbf {x}}^g|=\hat{{G}}|{\textbf {x}}\rangle \langle {\textbf {x}}|\hat{{G}}^{\dagger }=|{\textbf {x}}\rangle \langle {\textbf {x}}|\) post-selected by the canonical momentum operator \(\hat{{\textbf {P}}}\) defined as:

$$\begin{aligned} \mathcal {W}\big (|{\textbf {x}}\rangle \langle {\textbf {x}}|\big ||{\textbf {p}}\rangle ,|\psi \rangle \big )=\frac{{\langle {\textbf {p}}^g|{\textbf {x}}\rangle \langle {\textbf {x}}|\psi ^g\rangle }}{{\langle {\textbf {p}}^g|\psi ^g\rangle }}. \end{aligned}$$

It is argued in the literature36,37 that such a weak value, together with the corresponding conditional ensemble for the imaginary part71,72, is proportional to the wave function \(\langle {\textbf {x}}|\psi ^g\rangle\) when post-selected at zero momentum. Despite the fact that this weak value satisfies C1 for \(\hat{{O}}=|{\textbf {x}}\rangle \langle {\textbf {x}}|\), the selection \(\hat{{F}}=\hat{{\textbf {P}}}^g\), to define \(\langle {\textbf {p}}^g|\), does not satisfy C3 because the canonical momentum is gauge dependent. The gauge-dependent eigenstate \(\langle {\textbf {x}}|{\textbf {p}}^g\rangle =e^{i(qg({\textbf {x}},t)+{\textbf {p}}{\textbf {x}})/\hbar }\) has a gauge-dependent eigenvalue \(-i\hbar {\varvec{\nabla }}\langle {\textbf {x}}|{\textbf {p}}^g\rangle =(g({\textbf {x}},t)+{\textbf {p}})\langle {\textbf {x}}|{\textbf {p}}^g\rangle\). Thus, this weak value of the canonical momentum cannot be obtained in the laboratory.

Weak value of the position projector post-selected in the velocity

It is true, however, that the non-measurability of the canonical momentum described above can be avoided by substituting \(\hat{{\textbf {P}}}\) by \(\hat{{\textbf {V}}}\). Then, \(\mathcal {W}\big (\hat{{\textbf {X}}}\big ||{\textbf {v}}\rangle ,|\psi \rangle \big )\), is given by

$$\begin{aligned} \frac{\langle {\textbf {v}}^g|{\textbf {x}}\rangle \langle {\textbf {x}}|\psi ^g\rangle }{\langle {\textbf {v}}^g|\psi ^g\rangle } =\frac{R_{{\textbf {v}}} R_{\psi } e^{i\frac{S_{{\textbf {v}}}-S_{\psi }}{\hbar }}}{\langle {\textbf {v}}|\psi \rangle }, \end{aligned}$$
(26)

where \(\langle {\textbf {v}}^g|{\textbf {x}}\rangle =R_{{\textbf {v}}} e^{i (S_{{\textbf {v}}}+qG)/\hbar }\) and \(\langle {\textbf {x}}|\psi ^g\rangle = R_{\psi } e^{i (S_{\psi }+qG)/\hbar }\). Clearly, this weak value satisfies C1 for \(\hat{{O}}=|{\textbf {x}}\rangle \langle {\textbf {x}}|\) and C3 for \(\hat{{F}}=\hat{{\textbf {V}}}\). Hence, the (phase of the) weak value \(\mathcal {W}\big (\hat{{\textbf {X}}}\big ||{\textbf {v}}\rangle ,|\psi \rangle \big )\) is now gauge invariant, as seen here: .

However, arguing that Eq. (26) measures the (phase of the) Hilbert space representation of the wave function \(\langle {\textbf {x}}|\psi ^g\rangle\) is not rigorous, because all wave functions are gauge dependent and unmeasurable, as seen in Eq. (5). The argument in the literature is based on assuming that for a magnetic field equal to zero, in the Coulomb gauge, \(m\hat{{\textbf {V}}}=\hat{{\textbf {P}}}\) with \(\langle {\textbf {v}}|{\textbf {x}}\rangle \propto e^{i({\textbf {p}}{\textbf {x}})/\hbar }\) and \(\langle {\textbf {x}}|\psi \rangle = R_{\psi } e^{i S_{\psi }/\hbar }\). Then, Eq. (26) gives \(\mathcal {W}\big (|{\textbf {x}}\rangle \langle {\textbf {x}}|\big ||{\textbf {v}}\rangle ,|\psi \rangle \big )_{{\textbf {v}}=0} \propto \langle {\textbf {x}}|\psi \rangle\)36. While this protocol, which effectively gives the wave function defined in the Coulomb gauge, can indeed be very useful for developing new quantum technologies, there is no reason to affirm that the Coulomb gauge representation of the wave function is the true wave function of the system, in the same way as the Coulomb-gauge representation of the electromagnetic potentials are not the true potentials. At the fundamental level, there should be no preferred gauge, and hence, the wave function and the potentials are unmeasurable, as indicated in Eqs. (3) and (5), respectively.

Examples on the time derivative of weak values

Here, we discuss three examples of the time derivative of weak values, dealing with local velocity, the local energy theorem, and the local Lorentz force. These numerical examples explicitly demonstrate the usefulness and abilities of time-dependent weak values.

We compute the time derivative of the weak value through numerical simulations. As discussed in Online Appendix N, the numerical simulations require spatial and temporal grids. Thus, strictly speaking, the time derivatives computed in this section correspond to the finite-difference expressions FDLHD and FDRHD outlined in Section “Finite-difference approximations”. In all simulations, we consider scenarios where conditions C4, C5, or both are satisfied so that the FDLHD and FDRHD can be interpreted as the LHD and RHD defined in Section “Time Derivative of Weak values”. In addition, in these numerical simulations, the time step is chosen to be sufficiently small so that the FDLHD and FDRHD provide excellent approximations to the LHD and RHD (the small numerical time step used in the numerical computations in this paper does not need to coincide with the experimental time step required to evaluate the time derivatives in the laboratory, which must be determined by the time interval over which relevant time-dependent variations occur in the quantum system.).

To gain additional physical insight into the behavior of such weak values and their time derivatives, after the numerical evaluation of the weak values, we re-interpret the results as Bohmian properties of a quantum system.

Local velocity of particle

Wiseman formulated the first attempt to discuss time derivatives of weak values5 when presenting a local velocity from the time-derivative of a weak value of the position (post-selected in position eigenstates).

In Eq. (25) we have found how the expression \(\mathcal {W}\big (\hat{{\textbf {V}}}\big ||{\textbf {x}}\rangle ,|\psi \rangle \big )\) can be interpreted as the local velocity of a quantum particle. The consistency in interpreting \(\mathcal {W}\big (\hat{{\textbf {V}}}\big ||{\textbf {x}}\rangle ,|\psi \rangle \big )\) as a velocity is provided by the LHD in Eq. (13) when \(\hat{{O}}=\hat{{\textbf {X}}}\) and \(|\textit{f}\;\rangle =|{\textbf {x}}\rangle\).

$$\begin{aligned} \left. \frac{ \partial \mathcal {W}\big (\hat{{\textbf {X}}},t_L,0\big ||{\textbf {x}}\rangle ,|\psi \rangle \big )}{\partial t_L}\right| _{t_L=0} =\mathcal {W}\big (\hat{{\textbf {V}}},0,0\big ||{\textbf {x}}\rangle ,|\psi \rangle \big ), \end{aligned}$$
(27)

where \(\hat{{\textbf {V}}}=\frac{i}{\hbar }[\hat{{H}},\hat{{\textbf {X}}}]\) as seen in Online Appendix I. Notice that Eq. (27) satisfies C4 (gauge invariance) because \([\hat{{O}},\hat{{F}}]=[\hat{{\textbf {X}}},\hat{{\textbf {X}}}]=0\). Thus, the local velocity can be obtained for an arbitrary pre-selected quantum state \(|\psi \rangle\) because the condition C4 just fixes the post-selected state \(\langle {f}|=\langle {\textbf {x}}|\). We only require a Hamiltonian that satisfies \(\hat{{\textbf {V}}}=\frac{i}{\hbar }[\hat{{H}},\hat{{\textbf {X}}}]\).

As suggested by Wiseman5, Eq. (27) shows that the Bohmian velocity is just the quantum version of the classical time-of-flight procedure to evalute the velocity: two positions are consecutively measured and the velocity defined as the distance divided by the time interval between the two measurements. In the discussion at the end of Section “Finite-difference approximations”, we have identified the first weak value as \(x_c={\langle x_c |\hat{{\textbf {X}}}| \psi \rangle }/{\langle x_c |\psi \rangle }\) and the second as \(x_L={\langle x_c |\hat{U}_{{t_L}}\hat{{\textbf {X}}}| \psi \rangle }/{\langle x_c |\hat{U}_{{t_L}}|\psi \rangle }\). Notice that \({\langle x_c |\hat{U}_{{t_L}}\hat{{\textbf {X}}}| \psi \rangle }/{\langle x_c |\hat{U}_{{t_L}}|\psi \rangle }\) can be understood as giving insight on which was the (weak value of the) position of the system at a time \(t_L\) earlier than the time when the (strong) position of the system is \(x_c\). This reasoning implies \(x_c=x_L+v_B t_L\) giving \((x_c-x_L)/t_L=v_B\), as seen from Eq. (21).

Local work-energy theorem

The weak value of the Hamiltonian operator in Eq. (1) is not measurable, because \(\hat{{H}}\) does not satisfy C1 as seen in Eq. (4). On the contrary, the kinetic energy operator defined as \(\hat{{W}}:=\frac{1}{2}m\hat{{\textbf {V}}}^2\) is gauge invariant. Then, we can use Eq. (15) to compute its RHD as:

$$\begin{aligned} \left. \frac{\partial \mathcal {W}\big (\hat{{W}},0,t_R\big ||{\textbf {x}}\rangle ,|{\textbf {v}}\rangle \big )}{\partial t_R}\right| _{t_{1}=0}=q\;{\textbf {v}}_B^{|{\textbf {v}}\rangle }({\textbf {x}}) \cdot {\textbf {E}}({\textbf {x}}), \end{aligned}$$
(28)

where the operator \(\hat{{W}}\) is gauge invariant and satisfies C5 because \(|{\textbf {v}}\rangle\) is an eigenstate of \(\hat{{O}}=\hat{{W}}\). The details can be found in Online Appendices J and K. The expression (28) is just the local version (i.e., \({\textbf {x}}\)-density) of the corresponding global work-energy theorem. If \(q\;{\textbf {v}}_B^{|{\textbf {v}}\rangle }({\textbf {x}}) \cdot {\textbf {E}}({\textbf {x}})\) is positive at some particular location \({\textbf {x}}\), one can interpret that the kinetic energy of the particle at such position increases, while decreases otherwise.

Numerical example

We show how an example of Eq. (28) can be implemented in a practical scenario. We consider a single electron with a uniform electric field in the x-direction, \({\textbf {E}}= (E, 0, 0)\) with \(E=-1\cdot 10^{6}\) V/m. To proceed, we need to find a gauge potential for \({\varvec{\mathcal{A}}}\) and \(A\). There is, of course, no unique choice. We select the usual Coulomb gauge \({\varvec{\mathcal{A}}}^g=0\) and \(A^g=-Ex\). Since the system becomes separable, to predict the electrical field from the time derivative of a weak value Eq. (28), we can focus only on the x component of such a weak value. Then, the 1D version of the Hamiltonian in Eq. (1) becomes just:

$$\begin{aligned} H=H({\varvec{\mathcal{A}}},A)= -\frac{\hbar ^2}{2m^*}\frac{\partial ^2}{\partial x^2}+ q E x, \end{aligned}$$
(29)

To evaluate RHD (in fact FDRHD), the initial (pre-selected) state has to be an eigenstate of the velocity operator that satisfies C5. We roughly approximate such eigenstate by the Gaussian \(\langle x|\Phi _{5}(0) \rangle\) described in Table 2. The wave packet spatial dispersion \({{\sigma }_{x}}=127\) nm corresponds to a width in the reciprocal space \({\sigma }_{k} = 1/{\sigma }_{x}=7.8\) \(\mu m^{-1}\). Thus, the wave packet with a large spatial dispersion \({\sigma }_{x}\rightarrow \infty\) ( \({\sigma }_{k} \rightarrow 0\)) mimics a plane wave, which is an effective eigenstate of the velocity operator.

Fig. 3
figure 3

Time evolution of the modulus squared of \(\langle x|\Phi _{5}(t) \rangle\) (blue) in a time-independent potential energy profile (green). Different Bohmian trajectories \(x_B^j(t)\) for \(j=1,..,10\) are computed by integrating the x-component of the weak value of the velocity in Eq. (25) as indicated in Eq. (N55) in Online Appendix N. The different \(x_B^j(t)\) will be used later to evaluate the weak values in different relevant positions and times.

The numerical time-evolution of \(\langle x|\Phi _{5}(t) \rangle\) is computed from Eq. (N52) in Online Appendix N. In Fig. 3, we have plotted the time-evolution of modulus squared of  \(\langle x|\Phi _{5}(t) \rangle\) (blue) together with the time-independent potential energy profile (green) as qEx in Eq. (29). For a posterior discussion, we also plot the Bohmian trajectories \(x_B^j(t)\) for \(j=1,..,N\) computed following the numerical algorithm from Eq. (N55) in Online Appendix N. The velocity of each trajectory can be evaluated from the x-component of the weak value \({\textbf {v}}_B^{|{\textbf {v}}\rangle }=\{v_{B,x}^{|{\textbf {v}}\rangle },v_{B,y}^{|{\textbf {v}}\rangle },v_{B,z}^{|{\textbf {v}}\rangle }\}\) in Eq. (25). In this example, to simplify the notation, we refer to this x-component of the velocity as \(v_{B}^{|{\textbf {v}}\rangle }\).

Fig. 4
figure 4

In blue, mean value and standard deviation of the x-component of the weak value of the kinetic velocity of the 10 trajectories plotted in Fig. 3 at 20 different times computed from Eq. (28) (left axis). In orange, the mean value and standard deviation of the x-component of the weak value of the velocity in Eq. (25) of the 10 trajectories in Fig. 3 at 20 different times (right axis), which corresponds to the velocity \(v_{B}^{|\Phi _{5}\rangle }(t)\).

In Fig. 4, we have plotted in blue the x-component of the weak value of the kinetic energy at different times:

$$\begin{aligned} \mathcal {W}\big (\hat{{W}}_x,0,t_R\big ||x\rangle ,|\Phi _{5} \rangle \big )=Re \left \{ { \frac{\langle x| \frac{1}{2}m^*\hat{V}_x ^2 \hat{U}_{{t_R}} |\Phi _{5}(t) \rangle }{\langle x |\hat{U}_{{t_R}}|\Phi _{5}(t) \rangle }} \right \}. \end{aligned}$$
(30)

with \(\hat{{W}}_x=\frac{1}{2}m^*\hat{V}_x ^2\) . The inner products in Eq. (30), i.e. \({\langle x| \frac{1}{2}m^*\hat{V}_x ^2 \hat{U}_{{t_R}} |\Phi _{5}(t) \rangle }\) and \({\langle x|\hat{U}_{{t_R}} |\Phi _{5}(t) \rangle }\), are computed in the same way as explained in Section “Numerical comparison”. In orange, the x-component of the Bohmian velocity, i.e., the weak value in Eq. (25) or in Eq. (27), is also plotted as a function of time.

Finally, in Fig. 5, the time derivative of Eq. (30) shown in Fig. 4 in blue is also plotted. In orange, we plot the estimation of the electrical field \(E=E(x,t)\) from Eq. (28) as

$$\begin{aligned} E(x,t) \approx \left\{\frac{\frac{\partial }{\partial t_R} Re { \frac{\langle x | \frac{1}{2}m^*\hat{V}_x^2 \hat{U}_{{t_R}}|\Phi _{5}(t) \rangle } {\langle x |\hat{U}_{{t_R}}|\Phi _{5}(t) \rangle }}} {q\;v_{B}^{|\Phi _{5}\rangle }(x,t) } \right\}, \end{aligned}$$
(31)

There is an excellent agreement between the electric field used in this numerical simulation, i.e., \(E=-1\cdot 10^{6}\) V/m, and the value predicted through Eq. (31). As mentioned, and as would also happen in a laboratory, in this numerical simulation the time derivative \(\frac{\partial }{\partial t_R} Re \left \{ { \frac{\langle x | \frac{1}{2}m^*\hat{V}_x^2 \hat{U}_{{t_R}}|\Phi _{5} \rangle }{\langle x |\hat{U}_{{t_R}}|\Phi _{5} \rangle }}\right \}\) is done through FDRHD in Eq. (19), instead of RHD, as they both give identical results because C5 is satisfied.

Fig. 5
figure 5

In blue, mean value and standard deviation of the time derivative of Eq. (30) of the 10 trajectories in Fig. 3 at 20 different times (left axis). In orange, the mean value and standard deviation of the electrical field of the 10 trajectories in Fig. 3 at 20 different times computed from Eq. (28) (right axis).

Despite one position x and one time t being enough to predict E(xt) through Eq. (31), we have enriched the figures by considering several times t and positions x where the weak values are computed. At each time, t, the value \(E(x,t)|_{x=x_B^j(t)}\) are numerically evaluated for a set of positions \(x=x_B^j(t)\), where \(x_B^j(t)\) are the different \(j=1,...,10\) Bohmian trajectories plotted in Fig. 3. The initial positions of the trajectories are selected according to the initial wave function probability distribution to ensure that they are relevant positions in this scenario at all times. The mean value and the standard deviation of \(E(x,t)|_{x=x_B^j(t)}\) for different times are indicated in Fig. 5. The same procedure is done in Fig. 4 to plot the mean value and the standard deviation of the weak values of the velocity and of the kinetic energy. The information on the standard deviation shows how robust the predictions are when different times and positions are considered in this example with a uniform and constant electric field.

We emphasize that the velocity at each position x and time t in the trajectories of Fig. 3 requires a specific weak measurement protocol that is independent of previous positions and times. In the laboratory, the computation of the weak value at each time t would assume that the initial (pre-selected) Gaussian wave packet is defined at such time t, i.e., the pre-selected state at t is \(\langle x|\Phi _{5}(t) \rangle\). Therefore, the connection of different velocities in Fig. 4 to construct the continuous Bohmian trajectory shown in Fig. 3 is natural within the Bohmian interpretation. However, such a connection is not necessary in the ontologically-free approach used to develop the time-derivative weak values presented in this paper. In any case, it can be illustrative to provide an additional justification of the above results from a Bohmian perspective. The weak value of the kinetic energy in Eq. (30) can be rewritten in a Bohmian language as:

$$\begin{aligned} Re \left \{ { \frac{\langle x | \frac{1}{2}m^*\hat{V}_x^2 |\Phi _{5} \rangle }{\langle x |\Phi _{5} \rangle }} \right \}=\frac{1}{2}m^* \left( v_{B}^{|\Phi _{5}\rangle }(x,t)\right) ^2+Q^{|\Phi _{5}\rangle }(x,t) \approx \frac{1}{2}m^* \left( v_{B}^{|\Phi _{5}\rangle }(x,t)\right) ^2 \end{aligned}$$
(32)

where \(Q^{|\Phi _{5}\rangle }(x,t))\) is the so-called (Bohmian) quantum potential that depends on the curvature of the modulus of the wave function \(\langle x|\Phi _{5}(t) \rangle\). For the spatially large wave packet considered here, such a last contribution can be neglected in front of the first one. Then, the last term in Eq. (32) shows one possible procedure to evaluate the weak value of the kinetic energy in Eq. (30) for this particular scenario in the laboratory: once the velocity \(v_{B}^{|\Phi _{5}\rangle }(x,t)\) is computed, the kinetic energy \(\frac{1}{2}m^* \left( v_{B}^{|\Phi _{5}\rangle }(x,t)\right) ^2\) in Eq. (32) can be obtained by numerical post-processing the empirically obtained Bohmian velocity by squaring the value and multiplying the result by \(\frac{1}{2}m^*\)9. Finally, the derivative in Eq. (31) can be written from Eq. (32) as \(\frac{d }{dt}\left( \frac{1}{2}m^* \left( v_{B}^{|\Phi _{5}\rangle }(x,t)\right) ^2\right) \approx m^*\; v_{B}^{|\Phi _{5}\rangle }(x,t)\; \frac{d v_{B}^{|\Phi _{5}\rangle }(x,t)}{dt}\). Invoking again the negligible role of the quantum potential in this scenario (the spatial derivative of \(Q^{|\Phi _{5}\rangle }(x,t))\) is negligible in front of the spatial derivative of scalar potential \(A^g=-Ex\)), one recovers a Newton’s law for the Bohmian trajectory \(m^*\; \frac{d v_B^{|\Phi _{5}\rangle }(t)}{dt} \approx qE\) to reach again Eq. (31) from a Bohmian perspective.

Finally, we present a summary of the protocol to be followed in a laboratory to obtain the electric field E(xt) at a specific time t and a specific position x (corresponding to one of the orange points in Fig. 5). For the quantum system described in Eq. (29), the steps are as follows:

  1. (1)

    Take an ensemble of identically prepared (pre-selected at time t) states \(|\Phi _{5}(t) \rangle\) and empirically evaluate the weak value \(\mathcal {W}\big (\hat{V}_x,0,0\big ||x\rangle ,|\Phi _{5}(t) \rangle \big )\).

  2. (2)

    From the weak value in step 1), which corresponds to the Bohmian velocity, numerically evaluate the weak value of the kinetic energy as shown in Eq. (32).

  3. (3)

    Repeat steps 1) and 2) to empirically evaluate \(\mathcal {W}\big (\hat{V}_x,0,t_R\big ||x\rangle ,|\Phi _{5}(t) \rangle \big )\) and to numerically compute the corresponding weak value of the kinetic energy at time \(t+t_R\) where \(t_R\) is small (as defined in Section “Finite-difference left-hand derivative (FDLHD)”).

  4. (4)

    Numerically evaluate the time derivative of the weak value of the kinetic energy

    \(\frac{\partial }{\partial t_R} Re\)\(\left\{ {\langle x|\frac{1}{2}m^{*} \hat{V}_{x}^{2} \hat{U}_{{t_{R} }} |\Phi _{5} (t)\rangle /} \right.\)\(\left. {\langle x|\hat{U}_{{t_{R} }} |\Phi _{5} (t)\rangle } \right\}\)

    using FDRHD from Eq. (19) and the final numerical outputs obtained in steps 2) and 3).

  5. (5)

    Numerically evaluate the electric field E(xt) from Eq. (31), using the output in 4) as an input and the \(v_{B}^{|\Phi _{5}\rangle }(x,t)\) empirically evaluated in step 1) as the other input.

Notice that the above protocol can be extended further if the empirical weak value of the velocity is replaced by a numerical time derivative of an empirical weak value of the position, as seen in Eq. (27). This possible refined protocol, which involves a second-order time derivative, is demonstrated in the next example.

Local Lorentz force

We consider a consecutive application of FDLHD in Eq. (18) and FDRHD in Eq. (19), ensuring the gauge invariance of all intermediate expressions, to get:

$$\begin{aligned} m^*\left. \frac{\partial ^2 \mathcal {W}\big (\hat{{\textbf {X}}},t_L,t_R\big ||{\textbf {x}}\rangle ,|{\textbf {v}}\rangle \big )}{\partial t_R \partial t_L}\right| {\begin{matrix}_{ t_R=0}\\ _{t_L=0} \end{matrix}}=q({\textbf {E}}({\textbf {x}})+{\textbf {v}}_B^{|{\textbf {v}}\rangle } \times {\textbf {B}}({\textbf {x}})), \end{aligned}$$
(33)

where \({\textbf {E}}({\textbf {x}})\) and \({\textbf {B}}({\textbf {x}})\) are the (gauge invariant) electric and magnetic fields at position \({\textbf {x}}\) and \({\textbf {v}}_B^{|{\textbf {v}}\rangle }\) is the (gauge invariant) Bohmian velocity of the state \(|{\textbf {v}}\rangle\) computed from Eq. (25). See Online Appendies L and M.

Notice that the second-order time derivative in Eq. (33) is, in fact, a compact way of referring to a first-order time derivative of another first-order time derivative. The output of the FDLHD given by \(\left. {\partial \mathcal {W}\big (\hat{{\textbf {X}}},t_L,t_R\big ||{\textbf {x}}\rangle ,|{\textbf {v}}\rangle \big )}/{ \partial t_L}\right| _{t_L=0}=\mathcal {W}\big (\hat{{\textbf {V}}},0,t_R\big ||{\textbf {x}}\rangle ,|{\textbf {v}}\rangle \big )\) that satisfies C4 (i.e., \([\hat{{O}},\hat{{F}}]=[\hat{{\textbf {X}}},\hat{{\textbf {X}}}]=0\)), is used as the input of the FDRHD given by \(\left. {\partial \mathcal {W}\big (\hat{{\textbf {V}}},0,t_R\big ||{\textbf {x}}\rangle ,|{\textbf {v}}\rangle \big )}/{\partial t_R}\right| _{ t_R=0}=\mathcal {W}\big (\hat{{\Xi }},0,0\big ||{\textbf {x}}\rangle ,|{\textbf {v}}\rangle \big )\) that satisfies C5 (i.e., \([\hat{{O}},\hat{\Lambda }]=[\hat{{\textbf {V}}},\hat{{\textbf {V}}}]=0\)), where \(\hat{{\Xi }}:=\frac{i}{\hbar }[\hat{{H}},\hat{{\textbf {V}}}]+\frac{\partial \hat{{\textbf {V}}}}{\partial t}\) is defined in Online Appendix L. This sequence is precisely what occurs in the Ehrenfest theorem. Two consecutive first-order time derivatives, \(\frac{d}{dt}\langle \psi |\hat{{\textbf {X}}}|\psi \rangle =\langle \psi |\hat{{\textbf {V}}}|\psi \rangle\) and \(\frac{d}{dt}\langle \psi |\hat{{\textbf {V}}}|\psi \rangle =\langle \psi |\hat{{\Xi }}|\psi \rangle\), can be compactly written together as \(\frac{d^2}{dt^2}\langle \psi |\hat{{\textbf {X}}}|\psi \rangle =\langle \psi |\hat{{\Xi }}|\psi \rangle\). There are several possible finite-difference approximations to evaluate a mathematical second-order time derivative in Eq. (33). The technical differences among them is not relevant in our discussionFootnote 7. The final result in Eq. (33) is simply a quantum and local version of the (Newton) Lorentz force, which can be used, for example, as a quantum sensor of electromagnetic fields at specific position and time as shown in the numerical example below.

Numerical example

We consider a quantum system with a magnetic field in the z-direction, so that \({\textbf {B}}= (0, 0, B)\) with \(B=0.19\) Tesla, and no electric field. To proceed, we need to find a gauge potential \({\varvec{\mathcal{A}}}^g\) which obeys \({\textbf {B}}=\nabla \times {\varvec{\mathcal{A}}}^g\). There is, of course, no unique choice. Here we pick \({\varvec{\mathcal{A}}}^g = (0, xB, 0)\) and \(A^g=0\). This is called the Landau gauge. In this scenario, the Lorentz force in Eq. (33) is:

$$\begin{aligned} {\textbf {E}}({\textbf {x}})+{\textbf {v}}_B({\textbf {x}}) \times {\textbf {B}}({\textbf {x}})=\{\; v_{B,y} B, \;- v_{B,x} B,\; 0\}. \end{aligned}$$
(34)

The dynamics of the z direction are not relevant in this scenario, so we assume that an electron moves only in the \(x-y\) plane. Then, the Hamiltonian in Eq. (1) becomes:

$$\begin{aligned} H=\frac{1}{2m^*}\left( -{\hbar ^2} \frac{\partial ^2}{\partial x^2} + \left( -i{\hbar } \frac{\partial }{\partial y} -qBx \right) ^2\right) . \end{aligned}$$
(35)

Since this Hamiltonian Eq. (35) has translational invariance in the y direction, the component of the energy eigenstate in such direction will be a plane wave. On the other hand, it is well-known that the global energy eigenstates of Eq. (35) correspond to those of a displaced harmonic oscillator as described in Online Appendix N.

Fig. 6
figure 6

Probability distribution in the \(x-y\) space for the quantum state \(|\psi _H(x,y,t)|^2\) in Eq. (36) at times 0 and 0.2 ps. A set of Bohmian trajectories \(x_B^j(t)\) for \(j=1,..,10\) are computed by time-integrating the (\(x-\)velocity) weak value in Eq. (37) and the (y-velocity) weak value in Eq. (38).

Since we are interested in initial states that are eigenvalues of the velocity operator, we consider a superposition of 10 energy eigenstates, all with the same \(k_y=0.0118\) \({nm}^{-1}\):

$$\begin{aligned} \psi _H(x,y,t) = \sum _{n=0}^9 c_{n,k_y}(t) \psi _{n,k_y}(x,y), \end{aligned}$$
(36)

where the state \(\psi _{n,k_y}(x,y)\) is defined in Eq. (N64) and \(c_{n,k_y}(t)\) in Eq. (N65) in Online Appendix N. By construction, the state \(\psi _H(x,y,t)\) in Eq. (36) is an eigenstate of the velocity in the y-direction (notice that the dependence on y of the term \(\psi _{n,k_y}(x,y)\) is given by the global term \(e^{ik_y y}\) in Eq. (N64) in Online Appendix N), but not in the x direction. Thus, we focus on the y-component of Eq. (33) that gives \(-v_{B,x} B\) in Eq. (34), allowing to predict B.

Fig. 7
figure 7

In blue, mean value and standard deviation of the y-velocity of the 10 trajectories in Fig. 6 at 20 different times (left axis) computed from the weak value in Eq. (38), which also corresponds to the (first order) time derivative of the weak value of the \(y-\)position. In orange, the mean value and standard deviation of the \(y-\)acceleration of the 10 trajectories in Fig. 6 at 20 different times (right axis) computed by the time-derivative of the y-velocity, which also corresponds to the (second order) time derivative of the weak value of the \(y-\)position.

In Fig. 6, we have plotted the probability distribution of \(|\psi _H(x,y,t)|^2\) at the preparation time (\(t=0\) ps) and final (\(t=t_f=20\) ps) times. The evaluation of \(\psi _H(x,y,t)\) at different times is explained in Online Appendix N. We also plot a set of 10 Bohmian trajectories \(x_B(t)\) whose velocity in the x-component \(v_{B,x}^{|\psi _H\rangle }(x,y,t)\) is computed from the x-component of the weak value in Eq. (25) as:

$$\begin{aligned} v_{B,x}^{|\psi _H\rangle }= Re \left \{ { \frac{\langle x,y| \hat{V}_x |\psi _H(t)\rangle }{\langle x,y |\psi _H(t)\rangle }} \right \}=\frac{\hbar }{m^*} Im \left( \frac{\frac{\partial \Psi _H(x,y,t)}{\partial x}}{\Psi _H(x,y,t)} \right) , \end{aligned}$$
(37)

and velocity in the y-component \(v_{B,y}^{|\psi _H\rangle }(x,y,t)\) is computed from the y-component of the weak value in Eq. (25) as:

$$\begin{aligned} v_{B,y}^{|\psi _H\rangle }= & Re \left \{ { \frac{\langle x,y| \hat{V}_y |\psi _H(t)\rangle }{\langle x,y |\psi _H(t)\rangle }} \right \}=\frac{\hbar }{m^*} Im \left( \frac{\frac{\partial \Psi _H(x,y,t)}{\partial y}}{\Psi _H(x,y,t)}\right) -\frac{q\; B\; x}{m^*}. \end{aligned}$$
(38)

These weak values of the velocity can be computed in the laboratory from time derivatives of weak values of the positions as in Eq. (27). As discussed for the local work-energy theorem, only one position in configuration space \(\{x,y\}\) and one time t would have been enough to compute the magnetic field \(B=B(x,y,t)\). We consider several times and several positions (i.e., the Bohmian trajectories depicted in Fig. 6) to enrich the discussion and to test how robust these predictions are in front of variations of positions and times. The development of Eq. (37) and Eq. (38), plus the computation of the trajectories, is explained in Online Appendix N. Both weak values (velocities) in Eq. (37) and Eq. (38) are plotted in blue in Figs. 7 and 8. Due to the magnetic field and the quantum state \(\psi _H(x,y,t)\), the Bohmian trajectories show oscillations with a period of 12 ps (corresponding to the mentioned \(\omega =\frac{|q|B}{m^*}=0.49\) Trad/s define in Online Appendix N) in the \(x-\)direction (as seen in the positive and negative \(x-\)velocities in Fig. 8) and the same oscillation with a net translation in the \(y-\)direction (as seen in the negative \(y-\)velocities in Fig. 7).

Fig. 8
figure 8

In blue, mean value and standard deviation of the x-velocity of the 10 trajectories in Fig. 6 at 20 different times (left axis) computed from the weak value in Eq. (37), which corresponds to the (first order) time derivative of the weak value of the post-selected in \(x-\)position. In orange, the mean value and standard deviation of the predicted value of the magnetic field computed from the Eq. (39) for the 10 trajectories in Fig. 6. Notice that all values are computed from the weak value of the position post-selected in position and their (first or second-order) time-derivative.

In Fig. 7, we have also plotted, in orange, the numerical evaluation of the time derivative of the velocity in Eq. (38). Such a first-order derivative of the velocity corresponds to the second-order derivative of the position of the trajectories plotted in Fig. 6, as indicated in Eq. (27), i.e., \(\left. { \partial \mathcal {W}\big (\hat{y},t_L,t_R\big ||x,y\rangle ,|\psi _H\rangle \big )}/{\partial t_L}\right| _{t_L=0}=\mathcal {W}\big (\hat{{\textbf {V}}}_y,0,t_R\big ||x,y\rangle ,|\psi _H\rangle \big )\). Finally, in Fig. 8, we have plotted the predicted value of the magnetic field \(B=B(x,y,t)\) through the y-component of the Eq. (M48), in Online Appendix M, in the particular case of Eq. (34), giving:

$$\begin{aligned} B(x,y,t)\approx & -\frac{m^*}{q}\frac{\left. \frac{ \partial ^2 \mathcal {W}\big (\hat{y},t_L,t_R\big ||x,y\rangle ,|\psi _H\rangle \big )}{\partial t_L \partial t_R}\right| {\begin{matrix}_{ t_R=0}\\ _{t_L=0} \end{matrix}}}{\left. \frac{ \partial \mathcal {W}\big (\hat{x},t_L,0\big ||x,y\rangle ,|\psi _H\rangle \big )}{\partial t_L}\right| _{t_L=0}}, \end{aligned}$$
(39)

There is an excellent agreement between the magnetic field \(B=0.19\) Tesla and the value predicted through the time derivative of weak values in Eq. (31). Notice that the last identity in Eq. (39) shows that, in the laboratory, only the weak value of the x-position, i.e., \(\mathcal {W}\big (\hat{x},t_L,0\big ||x,y\rangle ,|\psi _H\rangle\), and y-position, i.e., \(\mathcal {W}\big (\hat{y},t_L,t_R\big ||x,y\rangle ,|\psi _H\rangle\) needs to be evaluated at different times \(t_R\) and \(t_L\). The result in Eq. (39) can be alternatively justified from a Bohmian perspective, as follows. The first term of the velocity in the y direction in Eq. (38) can be considered roughly as a constant for a plane wave, i.e. \(\frac{\hbar }{m^*} Im \left( {\frac{\partial \Psi _H(x,y,t)}{\partial y}}/{\Psi _H(x,y,t)}\right) =\frac{\hbar k_y}{m^*}\), where the mentioned quantum potential becomes negligible. Thus, such velocity can be written as \(v_{B,y}^{|\psi _H\rangle }(t)={\hbar k_y}/{m^*}-q B x_B(t)/m^*\) where \(x_B(t)\) is the x-component of the Bohmian trajectory. Finally, the acceleration (derivative) of this Bohmian velocity in Eq. (38) becomes \(\frac{d v_{B,y}^{|\psi _H\rangle }(x,y,t)}{d t}=-\frac{q\; B\; }{m^*}\frac{d x_{B}(t)}{dt} =-\frac{q\; B\; }{m^*}v_{B,x}^{|\psi _H\rangle }(t)\) which is another way of rewriting the expected result in Eq. (39).

Finally, we present a summary of the protocol to be followed in a laboratory to obtain the magnetic field \(B=B(x,y,t)\) at a specific time t and at specific positions in the a point of the configuration space \(\{x,y\}\) (corresponding to one of the orange points in Fig. 8). For the quantum system described in Eq. (35), the steps are as follows:

  1. (1)

    Take an ensemble of identically prepared (pre-selected at t) states \(|\psi _H\rangle\) and empirically evaluate the weak value \(\mathcal {W}\big (\hat{y},0,0\big ||{\textbf {x}}\rangle ,|\psi _H\rangle \big )\).

  2. (2)

    Repeat step 1) to empirically evaluate \(\mathcal {W}\big (\hat{y},t_L,0\big ||{\textbf {x}}\rangle ,|\psi _H\rangle \big )\), \(\mathcal {W}\big (\hat{y},0,t_R\big ||{\textbf {x}}\rangle ,|\psi _H\rangle \big )\), and \(\mathcal {W}\big (\hat{y},t_L,t_R\big ||{\textbf {x}}\rangle ,|\psi _H\rangle \big )\) for \(t_L\) and \(t_R\) small enough (as defined in Section “Finite-difference left-hand derivative (FDLHD)”).

  3. (3)

    Numerically evaluate the second-order time derivative \({ \partial ^2 \mathcal {W}\big (\hat{y},t_L,t_R\big ||x,y\rangle ,|\psi _H\rangle \big )}/{\partial t_L \partial t_R}\) using the four empirical outputs from steps 1) and 2), applying a finite-difference approximation.

  4. (4)

    Take an ensemble of identically prepared (pre-selected at t) states \(|\psi _H\rangle\) and empirically evaluate the weak value \(\mathcal {W}\big (\hat{x},0,0\big ||{\textbf {x}}\rangle ,|\psi _H\rangle \big )\).

  5. (5)

    Repeat step 4) to empirically evaluate \(\mathcal {W}\big (\hat{x},t_L,0\big ||{\textbf {x}}\rangle ,|\psi _H\rangle \big )\) for small \(t_L\).

  6. (6)

    Using FDLHD in Eq. (18), numerically evaluate \({ \partial \mathcal {W}\big (\hat{x},t_L,0\big ||x,y\rangle ,|\psi _H\rangle \big )}/{\partial t_L}\) from the empirical weak values obtained in steps 4) and 5).

  7. (7)

    Numerically evaluate the magnetic field B(xyt) from Eq. (39), using as inputs the numerical outputs in steps 3) and 6).

Which modal theories exhibit time-dependent consistency of weak values?

In the results presented in the previous Section “Examples on the time derivative of weak values”, we have shown that the weak values post-selected in position and its time derivative can be linked to the physical properties of the Bohmian theory. For example, the weak value of the velocity post-selected in position gives the Bohmian velocity of a particle5. Thus, it seems that the Bohmian theory is a good framework for predicting weak values post-selected in position and its time derivative. However, Ref.77 explicitly shows that other Bohm-like theories can be used to predict weak values post-selected in eigenstates other than position eigenstates. The reason why there is an infinite number of Bohm-like theories (also known as modal theories23) that can provide a consistent picture of quantum phenomena in terms of weak values can be easily evidenced by unraveling the expectation value of the position operator in terms of weak values with an arbitrary post-selected state \(|{f}\rangle\). From the identity \(\langle \psi |\hat{{\textbf {X}}}|\psi \rangle = \langle \psi | \int d{f}|{f}\rangle \langle {f}| \hat{{\textbf {X}}}|\psi \rangle\), we get:

$$\begin{aligned} \langle \psi |\hat{{\textbf {X}}}|\psi \rangle= & \int d{f}|\langle \psi |{f}\rangle |^2Re \left \{ {\frac{\langle {f}| \hat{{\textbf {X}}}|\psi \rangle }{\langle {f}|\psi \rangle }} \right \}. \end{aligned}$$
(40)

Thus, interpreting the expectation value as a weighted sum of weak values post-selected in \({f}\) is consistent with Eq. (40). The function \(Re \{..\}\) ensures that the expectation value has no imaginary part. Therefore, each set \(\{|{f}\rangle \}\) that satisfies \(\int d{f}|{f}\rangle \langle {f}|=\mathbbm {1}\) can be identified as the primary ontological element of a new Bohm-like theory (i.e., a new \({f}\)-modal theory). In particular, the authors of Ref.77 define the traditional Bohmian theory, where position is the primary ontology, as the x-Bohm theory. Alternatively, they define a p-Bohm theory as a Bohm-like theory where velocity (momentum) is the primary ontological element (i.e., the p-Bohm theory can be used to predict weak values post-selected in velocity eigenstates satisfying Eq. (40)). By comparing the phase-space dynamics offered by the x-Bohm and p-Bohm theories for an arbitrary pre-selected state \(\psi\), the authors of Ref.77 conclude that our previous argument that the x-Bohm theory provides a consistent explanation of quantum phenomena is quite speculative. Their argument does not negate that the x-Bohm theory provides a consistent explanation (i.e., weak values post-selected in position satisfy Eq. (40)), but rather that the x-Bohm theory is merely one consistent explanation among an infinite number of possible consistent, yet distinct, Bohm-like explanations of quantum phenomena (i.e., weak values post-selected in any eigenstate \(|{f}\rangle\) that also satisfy Eq. (40)). The summary of the argumentation of Ref.77 is the following: “When everyone is somebody, then no one’s anybody”.

The developments elaborated in this paper on time derivatives of weak values using LHD and RHD also establish an additional and more restrictive criterion on which post-selected states exhibit also a time-dependent consistency. The Ehrenfest theorem deduced from Eq. (9) shows the following time-dependent relationship \(\frac{d}{dt}\langle \psi |\hat{{\textbf {X}}}|\psi \rangle =\langle \psi |\hat{{\textbf {V}}}|\psi \rangle\) for any quantum state \(|\psi \rangle\). Therefore, it seems reasonable to demand a similar time-dependent consistency for the weak value that unravels the time derivative of the expectation values. For the position operator, this additional criterion can be written as:

$$\begin{aligned} & \frac{d}{dt}\langle \psi |\hat{{\textbf {X}}}|\psi \rangle =\langle \psi |\hat{{\textbf {V}}}|\psi \rangle =\int d{f}|\langle \psi |{f}\rangle |^2 Re \left \{ {\frac{\langle {f}| \hat{{\textbf {V}}}|\psi \rangle }{\langle {f}|\psi \rangle }} \right \}\nonumber \\ & {\mathop {=}\limits ^{{\text{?? }}}}\int d{f}|\langle \psi |{f}\rangle |^2\left. \frac{\partial }{\partial t_L} Re \left \{ {\frac{\langle {f}| \hat{U}_{{t_L}}\hat{{\textbf {X}}}|\psi \rangle }{\langle {f}|\hat{U}_{{t_L}}|\psi \rangle }} \right \}\right| _{t_L=0}. \end{aligned}$$
(41)

We have shown in Section “Time Derivative of Weak values” that the accomplishment of the last identity in Eq. (41), which we named time-dependent consistent criterion, is not true, in general, for arbitrary post-selected states \(\langle {f}|\). The identity \(\left. \frac{\partial }{\partial t_L} Re \left \{ {\frac{\langle {f}| \hat{U}_{{t_L}}\hat{{\textbf {X}}}|\psi \rangle }{\langle {f}|\hat{U}_{{t_L}}|\psi \rangle }} \right \}\right| _{t_L=0}=Re \left \{ {\frac{\langle {f}| \hat{{\textbf {V}}}|\psi \rangle }{\langle {f}|\psi \rangle }}\right \}\) holds only for very specific post-selected states \(\langle {f}|\). In the particular case of the operator \(\hat{{\textbf {X}}}\), from C4, we have shown that only the weak values post-selected in position, i.e., \(|{f}\rangle =|x\rangle\), satisfy both Eq. (40) and Eq. (41) for an arbitrary pre-selected state \(|\psi \rangle\). See Online Appendix O for an alternative demonstration of this result. Thus, the Bohmian theory has a quite privileged status when dealing with weak value post-selected in position and their time derivatives. A similar time-dependent consistent criterion can be obtained by replacing the left-hand derivative (LHD) with the right-hand derivative (RHD) in Eq. (41), and ensuring condition C5, at the price of fixing the pre-selected state as \(|\psi \rangle = |{\textbf {x}}\rangle\).

This previous criterion, on which pre-selected states have time-dependent consistency, is an operator-dependent criterion. By replacing the operator \(\hat{{\textbf {X}}}\) in Eq. (41) by another operator, for example \(\hat{{\textbf {V}}}\), other post-selected states are satisfying the time-dependent consistent criterion. Again, we notice that there is an infinite set of arbitrarily post-selected states \(|{f}\rangle\) satisfying:

$$\begin{aligned} \langle \psi |\hat{{\textbf {V}}}|\psi \rangle= & \int d{f}|\langle \psi |{f}\rangle |^2Re \left \{ {\frac{\langle {f}| \hat{{\textbf {V}}}|\psi \rangle }{\langle {f}|\psi \rangle }} \right \}. \end{aligned}$$
(42)

The requirement imposed by the Ehrenfest theorem deduced from Eq. (9) is now \(\frac{d}{dt}\langle \psi |\hat{{\textbf {V}}}|\psi \rangle =\langle \psi |\hat{{\Xi }}|\psi \rangle\), with \(\hat{{\Xi }}:= \frac{i}{\hbar }[\hat{{H}},\hat{{\textbf {V}}}] + \frac{\partial \hat{{\textbf {V}}}}{\partial t}\) being the operator defined in Online Appendix L. The Ehrenfest theorem can be translated as an additional requirement for the time-dependent consistency of the weak values as follows:

$$\begin{aligned} & \frac{d}{dt}\langle \psi |\hat{{\textbf {V}}}|\psi \rangle =\langle \psi |\hat{{\Xi }}|\psi \rangle =\int d{f}|\langle \psi |{f}\rangle |^2 Re\left \{ {\frac{\langle {f}| \hat{{\Xi }}|\psi \rangle }{\langle {f}|\psi \rangle }} \right \}\nonumber \\ & {\mathop {=}\limits ^{{\text{?? }}}}\int d{f}|\langle \psi |{f}\rangle |^2\left. \frac{d}{d t_L} Re \left \{ {\frac{\langle {f}| \hat{U}_{{t_L}}\hat{{\textbf {V}}}|\psi \rangle }{\langle {f}|\hat{U}_{{t_L}}|\psi \rangle }} \right \}\right| _{t_L=0}. \end{aligned}$$
(43)

In the case of \(\hat{{\textbf {V}}}\), from C4, we have shown that weak values post-selected in velocity (momentum), i.e., \(\langle {f}|=\langle {\textbf {v}}|\), satisfy both Eq. (42) and Eq. (43) as they accomplish \(\left. \frac{d}{d t_L} Re \left \{ {\frac{\langle {f}| \hat{U}_{{t_L}}\hat{{\textbf {V}}}|\psi \rangle }{\langle {f}|\hat{U}_{{t_L}}|\psi \rangle }} \right \}\right| _{t_L=0}=Re \left \{ {\frac{\langle {f}| \hat{{\Xi }}|\psi \rangle }{\langle {f}|\psi \rangle }}\right \}\) for arbitrary post-selected states \(|\psi \rangle\). A similar time-dependent consistent criterion can be obtained by changing LHD by RHD in Eq. (43) and ensuring condition C5, at the price of fixing the pre-selected state as \(|\psi \rangle =|{\textbf {v}}\rangle\).

In principle, it appears that only the first-order time derivative of weak values can be obtained because the post-selected states in Eq. (41) differ from those in Eq. (43). However, by using the equality \(Re \left \{ {{\langle {\textbf {v}}| \hat{{\textbf {V}}}| x\rangle }/{\langle {\textbf {v}}|x \rangle }} \right \}=\left \{ Re {{\langle x | \hat{{\textbf {V}}}| {\textbf {v}}\rangle }/{\langle x |{\textbf {v}}\rangle }} \right \}\), which follows from the hermiticity of \(\hat{{\textbf {V}}}\), both Eqs. (41) and (43) can still be satisfied by considering \(\langle x|\) as the post-selected state and \(|{\textbf {v}}\rangle\) as the pre-selected state. This is what happens in the numerical results in Section “Local Lorentz force”.

Conclusions

In physics, the time derivative of a property frequently gives rise to another meaningful property. For example, in classical mechanics, the knowledge of the position allows one to predict the value of the velocity without measuring it, just by taking a first-order time derivative of the position. Even the acceleration of a system (related to the forces acting on the system) can be anticipated from the second-order time derivatives of the position. Since weak values offer empirical insights that cannot be derived from expectation values, this paper investigates what physical insight can be obtained from the time derivative of weak values.

A time derivative of a weak value is not always either a weak value or a gauge-invariant quantity. The necessary and sufficient conditions for the gauge invariance (i.e., empirical observability) of weak values are presented in this paper, i.e., conditions C1, C2 and C3. There are weak values in the literature that do not satisfy these conditions, as shown in Table 1 and discussed in Section “Time Derivative of Weak values”. In addition, two more necessary and sufficient conditions (C4, C5) are presented to ensure that the time derivative of a gauge-invariant weak value also becomes a gauge-invariant weak value. In particular, condition C4 applies to LHD and condition C5 to RHD.

We have also discussed how the LHD and RHD can be empirically evaluated in the laboratory through finite-difference approximations of the left- and right-hand time derivatives of weak values, referred to as FDLHD and FDRHD, respectively. We show that FDLHD and FDRHD yield results that are roughly identical to the theoretical LHD and RHD when the latter are gauge invariant.

The time-derivative of weak values can be used, for example, to deduce a local Ehrenfest-like theorem as follows: one weak value (position) measured in the laboratory provides information on two other unmeasured weak values obtained through first-order (velocity) and second-order (acceleration) time derivatives of the first measured weak value. As an example, an electromagnetic field quantum sensor at a local position and time is proposed, utilizing the empirical evaluation of weak values of the position, and computing their time derivatives (through FDLHD and FDRHD).

The findings in this paper reveal an important asymmetry between different post-selected states used to compute weak values. If we want to describe the local position, local velocity, and local acceleration of quantum systems in terms of weak values, and we want these weak values also to satisfy the additional time-dependent consistency criteria explained in Eqs. (41) and (43), we conclude that weak values post-selected in position, and somehow also post-selected in velocity, play a quite privileged role—one that cannot be attributed to other weak values post-selected in other quantum states. This privilege, however, implies a limitation on the types of scenarios that are empirically accessible for obtaining simultaneous insight into the local dynamics of quantum systems through second-order time derivatives of weak values of the position. This second-order time derivative can be used in scenarios pre-selected in velocity eigenstates \(|{\textbf {v}}\rangle\) and post-selected in position eigenstates \(\langle {\textbf {x}}|\) (or vice versa). In any case, the second-order time derivative of the weak values involving these wave functions \(\langle {\textbf {x}}|{\textbf {v}}(t)\rangle\) is enough to “detect” forces, in general, and electromagnetic fields, in particular.

In this paper, the electric and magnetic fields are treated as external elements of the single-particle Schrödinger equation: the simulated particle used to compute the weak value (which later senses the electromagnetic fields) is affected by these fields, but the fields themselves are not affected by the particle. This approach is the so-called semi-classical treatment of light and matter. The possibility of measuring how electromagnetic fields are distributed in space and time demonstrates the richness of using local-in-position weak values, rather than ensemble values, to characterize physical systems. Future work aims to extend the ideas discussed here to weak values in which both the simulated particle (i.e., matter) and the electromagnetic fields (i.e., light) are quantizedFootnote 8.

We emphasize that no fundamental (ontological) conclusions can be drawn from the results of this paper, as all mathematical predictions presented here hold under any interpretation of quantum mechanics. The purpose of this work is not to address the ontological meaning of weak values but rather to investigate their time derivatives and practical applicability. Similarly, the privileged connection between weak values post-selected in position and the Bohmian properties of a quantum system is not intended to argue that Bohmian mechanics is true, but only to highlight its usefulness in envisioning empirical protocols for characterizing novel local properties of quantum systems.