Introduction

Bohr’s complementarity principle initially conceptualized the controversial nature of light. It states that a photon possesses two mutually exclusive properties, wave and particle, i.e., the wave-particle duality. It is well known that this duality can be formulated by duality relations, which quantitatively describe the trade-off between wave and particle behaviours, i.e., the emergence of one behaviour will suppress the appearance of the other. In the past years, the duality relations have drawn increasing attention because they are fundamental in quantum physics. Experimental and theoretical interests in duality relations have never vanished since the early days of quantum theory1,2,3,4,5,6,7,8,9,10,11,12,13,14.

The authors in15 quantified the wave-particle duality in a double-slit interference scenario and concluded that the simultaneous observation of wave and particle behaviours was possible. The complementarity relation \({P}^{2}+{{V}_{0}}^{2}\le 1\), where P is the predictability of the photon passing through the two paths and V0 is the a priori interference visibility, was derived in16 and17. Also, ref. 17 considered the case in which a which-way detector (WWD) was involved, and obtained the inequality

$${{D}_{{{{\rm{m}}}}}}^{2}+{V}^{2}\le 1,$$
(1)

where P was replaced by the distinguishability Dm, and V0 was replaced by the fringe visibility V at the output. The predictability P is different from the distinguishability Dm in that P is the difference of the probabilities of the photon taking the two paths, while Dm is the which-way information stored in the WWD, which depends on the final states of the WWD and the way which we apply to retrieve the information. The distinguishability quantified in17 is the maximum likelihood for guessing the way right, which coincides with the minimum error discrimination (MED) of the WWD’s states.

Applying different strategies to distinguish the WWD’s states gives different amounts of which-way information. Another strategy of retrieving which-way information from the WWD is the unambiguous quantum state discrimination (UQSD), which has been applied to study the wave-particle duality relation in recent years18,19,20,21,22,23. Reference18 quantified the distinguishability by the upper bound of the probability of an unambiguous result and obtained the linear duality relation

$${D}_{{{{\rm{u}}}}}+V=1,$$
(2)

where Du is the distinguishability derived from the UQSD strategy. A similar relation was obtained in multipath interference21,22,23.

The quadratic relation (1) based on the MED strategy has been experimentally confirmed using various systems6,24,25,26,27,28,29,30,31. However, the linear relation in Eq. (2), which is based on the UQSD strategy, has not been experimentally tested so far. Existing studies on the duality relation mostly focus on the case of symmetric beam interference, where the photon is equally likely to go through both paths. Nevertheless, the asymmetric case, where the beam splitters (BSs) are not balanced or the photon suffers from loss on the BSs, has not been investigated as much as the symmetric case. Over the past years, several theoretical analyses of asymmetric interference with a WWD have been presented18,32,33,34,35.

In this work, we experimentally realize asymmetric beam interference with a WWD to study the wave-particle duality. The WWD is implemented by utilizing the polarization degree of freedom of the photon. The visibility V is characterized by the fringe emerging after the interferometer. We quantify the distinguishability in two ways. One corresponds to the probability of obtaining an unambiguous result, i.e., by adopting the UQSD strategy to discriminate the WWD’s states; while the other corresponds to the maximum likelihood for guessing the right path, i.e., by adopting the MED strategy to discriminate the WWD’s states.

In our experiment, both quadratic and linear forms of the duality relation, described by Eqs. (1) and (2), are confirmed with different degrees of asymmetry of the beam interference and different degrees of nonorthogonality of the WWD’s states. We show that the amounts of which-way information, gained through the two strategies, are different. Our experiment demonstrates the linear duality relation and also investigates the difference between the two duality relations.

Results

Theory

In quantum physics, quantum states, which are orthogonal to each other, can be discriminated via a single measurement. While for nonorthogonal quantum states, one is unable to discriminate them within a single measurement. To retrieve information from nonorthogonal quantum states, different strategies are applied with different objectives. The UQSD36,37,38,39,40 and the MED41,42 are the two most investigated strategies.

Assume that one is told to discriminate two nonorthogonal states \(\left|{d}_{1}\right\rangle =\left|h\right\rangle\) and \(\left|{d}_{2}\right\rangle =\sin 2\theta \left|h\right\rangle -\cos 2\theta \left|v\right\rangle\) of a photon, with a priori probabilities p1 and p2, respectively. Here, the state \(\left|h\right\rangle\) (\(\left|v\right\rangle\)) denotes the horizontal (vertical) polarization state, and the probabilities satisfy p1 + p2 = 1. Without loss of generality, we assume p2 ≤ p1. The UQSD and the MED follow different procedures as follows.

In UQSD, an unambiguous result is possible by allowing an inconclusive result. The polarization degree of freedom of the photon is coupled with another degree of freedom to form a higher dimensional space. Then \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are projected onto the orthogonal basis

$$\left|{d}_{1}\right\rangle =\alpha \left|{q}_{1}\right\rangle +\beta \left|{q}_{2}\right\rangle ,\,\left|{d}_{2}\right\rangle =\gamma \left|{q}_{3}\right\rangle +\delta \left|{q}_{2}\right\rangle ,$$
(3)

where qiqj = δij, \(\left|{q}_{1}\right\rangle\) and \(\left|{q}_{3}\right\rangle\) correspond to unambiguous results, \(\left|{q}_{2}\right\rangle\) corresponds to an inconclusive result. The geometric representation of the principle of UQSD is shown in Fig. 1a. The probability of obtaining an unambiguous result is Du = p1α2 + p2γ2, and it is given by43

$${D}_{{{{\rm{u}}}}}=1-2\sqrt{{p}_{1}{p}_{2}}\sin 2\theta ,\,{p}_{2}/{p}_{1} \,>\, {\sin }^{2}2\theta ,$$
(4)
$${D}_{{{{\rm{u}}}}}={p}_{1}(1-{\sin }^{2}2\theta ),\,{p}_{2}/{p}_{1}\le {\sin }^{2}2\theta .$$
(5)
Fig. 1: Geometric representation of the principles of nonorthogonal state discrimination.
figure 1

Principles of (a) unambiguous quantum state discrimination (UQSD) and (b) minimum error discrimination (MED) strategies. The moduli of the vectors represent the square roots of the a priori probabilities of the states. In UQSD, the states \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are first rotated, then the horizontal component is separated into two parts, one is the common state (\(\left|{q}_{2}\right\rangle\)) corresponding to an inconclusive result. The residuals, \(\left|{q}_{1}\right\rangle\) and \(\left|{q}_{3}\right\rangle\), are orthogonal, which can be discriminated by a positive operator-valued measure. In MED, the states \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are rotated, then a positive operator-valued measure is performed to project the states onto the basis states \(\left|h\right\rangle\) and \(\left|v\right\rangle\). When we detect the photon in the \(\left|h\right\rangle\) state, we guess the state is \(\left|{d}_{2}\right\rangle\), otherwise we guess it as \(\left|{d}_{1}\right\rangle\). Since the measurement result is probabilistic, there is a probability of guessing wrongly.

On the other hand, in MED, each measurement returns a result, and the quantum state is determined by the best guess. The protocol aims at minimizing the guessing error. The principle of MED is shown in Fig. 1b. The maximum probability of correctly guessing the quantum state is given by the Helstrom bound44

$${P}_{{{{\rm{r}}}}}=\frac{1}{2}\left(1+\sqrt{1-4{p}_{1}{p}_{2}{\sin }^{2}2\theta }\right).$$
(6)

Research on the wave-particle duality is generally based on two scenarios, the double-slit interference and the standard Mach-Zehnder interferometer (MZI) (see Fig. 2). In the double-slit interference, the light passes through two separated slits, behind which a screen is placed. One can observe fringes on the screen, which are not simply the sum of the light passing through an individual slit when the other is blocked. In the standard MZI, the input light is separated by a symmetric beam splitter (BS), then the light travelling along the two arms interferes on the second BS. Changing the phase of the light in one arm gives rise to a change of the intensity of the output light. When the second BS is removed, the phase change will not induce the change of the output intensity. In this case, we declare that the photons reveal particle behaviour in an open interferometer. The double-slit interference is more often employed to intuitively show the interference of photons, while the standard MZI is more suitable in practical experiments. In studies of wave-particle duality, these two scenarios are equivalent.

Fig. 2: Scenarios for studying wave-particle duality.
figure 2

a Double-slit interference setup includes a double-slit and a screen for observing the fringes. b A Mach-Zehnder interferometer consists of two beam splitters. WWD which-way detector.

The scenario we consider is an MZI with a WWD inserted in the interferometer (Fig. 2b). The first BS is unbalanced, such that it causes the photon to propagate along two paths with unequal probabilities, p1 and p2. The WWD is a quantum detector, which interacts with the photon and then gets correlated with the photon’s path.

Assume now that the initial state of the WWD is \(\left|{d}_{0}\right\rangle\), and the state of the photon after passing through the unbalanced BS is \(\sqrt{{p}_{1}}\left|0\right\rangle +\sqrt{{p}_{2}}\left|1\right\rangle\), where \(\left|0\right\rangle\) and \(\left|1\right\rangle\) denote the two path states. The interaction between the WWD and the photon leads to a controlled-unitary transformation

$$(\sqrt{{p}_{1}}\left|0\right\rangle +\sqrt{{p}_{2}}\left|1\right\rangle )\left|{d}_{0}\right\rangle \to \sqrt{{p}_{1}}\left|0\right\rangle \left|{d}_{1}\right\rangle +\sqrt{{p}_{2}}\left|1\right\rangle \left|{d}_{2}\right\rangle .$$
(7)

To distinguish the paths of the photon is equivalent to distinguish the final states of the WWD. Note that \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are not necessarily orthogonal. When d1d2 = 1, which means \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are identical, no path information can be retrieved from the WWD. When d1d2 = 0, \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) can be perfectly distinguished. In the intermediate case, i.e., \(| \langle {d}_{1}| {d}_{2}\rangle | =\sin 2\theta\), one can only obtain a partial which-way information by means of nonorthogonal quantum state discrimination.

We utilize the photon’s polarization degree of freedom as the WWD. Let the initial state of the WWD be \(\left|h\right\rangle\). The polarization of the photon in path 1 is rotated due to the interaction between the WWD and the photon. The quantum state after the interaction becomes \(\sqrt{{p}_{1}}\left|0,h\right\rangle +\sqrt{{p}_{2}}\left|1,s\right\rangle\), where \(\left|s\right\rangle =\sin 2\theta \left|h\right\rangle -\cos 2\theta \left|v\right\rangle\). After the second balanced BS, the probability of detecting the photon at path 0 is \(p=(1+2\sqrt{{p}_{1}{p}_{2}}\sin 2\theta \cos \varphi )/2\). Here φ is the phase between the two paths. Thus the visibility is given by

$$V=\frac{{p}_{\max }-{p}_{\min }}{{p}_{\max }+{p}_{\min }}=2\sqrt{{p}_{1}{p}_{2}}\sin 2\theta .$$
(8)

To retrieve the which-way information, one could perform the UQSD strategy on the polarization of the photon. The maximum probability of unambiguously discriminating the polarization states is given by Eqs. (4) and (5). We now have

$${D}_{{{{\rm{u}}}}}+V=1,\,{p}_{2}/{p}_{1} \,>\, {\sin }^{2}2\theta ,$$
(9)
$${D}_{{{{\rm{u}}}}}+V={p}_{1}{\cos }^{2}2\theta +2\sqrt{{p}_{1}{p}_{2}}\sin 2\theta ,\,{p}_{2}/{p}_{1}\le {\sin }^{2}2\theta .$$
(10)

Equations (9) and (10) coincides with the results in ref. 18 which considers a double-slit scenario.

On the other hand, the which-way information can also be retrieved by the MED strategy. The probability of the correct guess is given by Eq. (6). Thus the distinguishability becomes Dm = 2Pr − 1. Using Eq. (8), we recover

$${D}_{{{{\rm{m}}}}}^{2}+{V}^{2}=1.$$
(11)

Since we consider a pure state as the input, the duality relation is an equality. If we consider a more general case (e.g., the input being a mixed state), it would be an inequality. In recent years, constraints of the entanglement on the duality relation Eq. (11) have been fruitfully discussed in both classical and quantum domains45,46,47,48,49,50,51. In particular, ref. 52 demonstrated the constraints of the purity of the photon source on the duality relation Eq. (11) from a source point of view53 by adjusting the amplitudes of the seed laser, where the photon source was generated through an entangled nonlinear bi-photon source model.

Experimental setup

To implement the forementioned asymmetric beam interference, our experimental setup consists of two Sagnac-like structures. The first Sagnace loop realizes the asymmetric beam interference, while the second one realizes the polarization measurement, as is shown in Fig. 3. The photon source is a single photon generated through a nonlinear process (See Methods for details). The polarization of the photon is prepared to be horizontal by the first polarization beam splitter (PBS). A half-wave plate (H1) and a cubic beam splitter (cBS) work as a variable beam splitter. The cBS, which is part of the Sagnac-like structure, is customized such that the coating inside the crystal consists of two parts, a blue part and a black part. It functions as a PBS when the photon is incident on the blue half of the crystal, while it functions as a non-polarizing beam splitter when the photon is incident on the black half. The cBS is functionally equivalent to an assembly of a PBS and a non-polarizing beam splitter, as is shown in the inset. Such a compact structure enables relative stability of the Sagnac-like structure. Therefore, when H1 is oriented at θa and the photon is incident on the blue half of the cBS, the photon travels along path 0 or path 1, depending on the polarization, with probabilities \({p}_{1}={\cos }^{2}2{\theta }_{{{{\rm{a}}}}}\) and \({p}_{2}={\sin }^{2}2{\theta }_{{{{\rm{a}}}}}\), respectively. The photon in path 0 is vertically polarized while the photon in path 1 is horizontally polarized. The split ratio \({p}_{2}/{p}_{1}={\tan }^{2}2{\theta }_{{{{\rm{a}}}}}\) determines the asymmetry of the interference. At this step, since the polarization correlates with the path, the polarization is regarded as the WWD.

Fig. 3: Schematic of the experiment.
figure 3

(1): asymmetric interference. The photon transmits through the first PBS and is then rotated by the first half-wave plate H1. The blue half of the cBS works as a PBS to split different polarization components. The photon traverses the two paths in the Sagnac-like structure and recombines on the black half of the cBS. H2 and H3 determine the final states of the WWD. PP introduces a phase between the two paths. (2): polarization measurement. The polarization of the photon is analysed in the Sagnac-like structure. See Methods for the details of the implementation. The inset shows that the cBS is equivalent to an assembly of a PBS and a NPBS. When the photon is incident on the blue region, it works as a PBS; while when the photon is incident on the black region, it works as a NPBS. PBS polarization beam splitter, NPBS non-polarizing beam splitter, PP phase plate, cBS cubic beam splitter, M mirror, H1~H7 half-wave plates, Dv, D0, D1, and D2 single-photon detectors.

Inside the first Sagnac loop, a half-wave plate H2 oriented at θn is inserted in path 1 to set the nonorthogonality of the final states of the WWD. To maintain the coherent superposition of the two paths, another half-wave plate (H3) oriented at 0 is inserted in path 0 to compensate the optical path. The photon from the two paths interferes on the black half of the cBS. The output states, which correspond to the two exits of the cBS, are given by

$$\left|{\psi }_{{{{\rm{v}}}}}\right\rangle =\frac{1}{\sqrt{2}}(\cos 2{\theta }_{{{{\rm{a}}}}}\left|{d}_{1}\right\rangle -{e}^{i\varphi }\sin 2{\theta }_{{{{\rm{a}}}}}\left|{\overline{d}}_{2}\right\rangle ),$$
(12)
$$\left|{\psi }_{{{{\rm{d}}}}}\right\rangle =\frac{1}{\sqrt{2}}(\cos 2{\theta }_{{{{\rm{a}}}}}\left|{d}_{1}\right\rangle +{e}^{i\varphi }\sin 2{\theta }_{{{{\rm{a}}}}}\left|{d}_{2}\right\rangle ),$$
(13)

where \(\left|{d}_{1}\right\rangle =\left|h\right\rangle\) and \(\left|{d}_{2}\right\rangle =\sin 2{\theta }_{{{{\rm{n}}}}}\left|h\right\rangle -\cos 2{\theta }_{{{{\rm{n}}}}}\left|v\right\rangle\) are the final states of the WWD, whose nonorthogonality is determined by \(| \langle {d}_{1}| {d}_{2}\rangle | =\sin 2{\theta }_{{{{\rm{n}}}}}\); and \(\left|{\overline{d}}_{2}\right\rangle =\sin 2{\theta }_{{{{\rm{n}}}}}\left|h\right\rangle +\cos 2{\theta }_{{{{\rm{n}}}}}\left|v\right\rangle\). The state \(\left|{\psi }_{{{{\rm{v}}}}}\right\rangle\) is detected immediately by Dv for measurement of the visibility

$$V=\frac{\max (N)-\min (N)}{\max (N)+\min (N)},$$
(14)

where N is the photon count at Dv, max() and min() are the extreme values with respect to φ, which is the phase introduced by the phase plate in path 1. Afterwards, the photon in the state \(\left|{\psi }_{{{{\rm{d}}}}}\right\rangle\) enters the second Sagnac-like structure for the distinguishability measurement. The which-way information of the photon implies the path along which the photon travels in the first Sagnac loop.

Experimental linear and quadratic duality relations

We now perform a nonorthogonal state discrimination on the states \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) to measure the distinguishability. We first quantify the distinguishability as the probability of an error-free result, i.e., by adopting the UQSD strategy. The procedure is analogous to discriminating two nonorthogonal states with equal a priori probabilities apart from additional basis rotations54. The half-wave plates H4 ~ H7 are properly rotated to realize the basis transformation (See Methods for details). Here, a click at D2 corresponds to an inconclusive result, indicating that the photon may come from path 0 or path 1. A click at D1 indicates that the photon deterministically comes from path 1, and a click at D0 indicates the photon deterministically comes from path 0. In this setup, the photon count of path 0 is N20 + N00, and the photon count of path 1 is N21 + N11, where Nij is the photon count at Di when path j is open in the first Sagnac loop. The photon count, corresponding to an unambiguous result, is N11 + N00. The distinguishability Du is quantified by the probability of getting an unambiguous result

$${D}_{{{{\rm{u}}}}}=\frac{{N}_{00}+{N}_{11}}{({N}_{20}+{N}_{00})+({N}_{21}+{N}_{11})}.$$
(15)

Figure 4 shows the photon counts at D0, D1, and D2 with respect to φ when (a) \(\tan 2{\theta }_{{{{\rm{a}}}}}=0.38\), \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.2\) and (b) \(\tan 2{\theta }_{{{{\rm{a}}}}}=0.28\), \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.9\). The sinusoidal change of the photon count at D2 is due to the interference between the common parts of \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\). In Fig. 4a, when \(\tan 2{\theta }_{{{{\rm{a}}}}} \,>\, \sin 2{\theta }_{{{{\rm{n}}}}}\), the minimum photon count at D2 is zero. This implies that the common part is equally likely to come from \(\left|{d}_{1}\right\rangle\) or \(\left|{d}_{2}\right\rangle\) (equal lengths of the common parts in Fig. 1a). While in Fig. 4b, when \(\tan 2{\theta }_{{{{\rm{a}}}}}\le \sin 2{\theta }_{{{{\rm{n}}}}}\), the minimum photon count at D2 is zero since the photon in the common part is more likely to come from path 0; in other words, some which-way information is stored in the common part.

Fig. 4: Normalized photon counts at D0, D1, and D2.
figure 4

a \(\tan 2{\theta }_{{{{\rm{a}}}}}=0.38\), \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.2\) and (b) \(\tan 2{\theta }_{{{{\rm{a}}}}}=0.28\), \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.9\). The photon counts are divided by the total photon count of Dv + D0 + D1 + D2. The dots are the experimental data, while the solid lines are the theoretical values. The error of the photon count at D1 in (b) is \(\sim\!\! {{{\mathcal{O}}}}(1{0}^{-4})\), thus the error bar is almost invisible in the figure. The error bars indicate one standard deviation.

Next we perform the MED strategy to extract the which-way information. As illustrated in Fig. 1b, to realize the MED strategy, the H4 first rotates the polarization suitably. The H5 and the H7 are constantly kept at 0 (see Methods for details). Under such configuration, \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are first rotated and then projected onto the \(\left|h\right\rangle\) and \(\left|v\right\rangle\) basis. The horizontal component is detected by D2 and the vertical component is detected by D0. When D2 clicks, we guess the photon comes from path 0; while when D0 clicks, we guess the photon comes from path 1. Thus, a right guess, with photon count of N01 + N20, means either D2 clicks when the photon comes from path 0, or D0 clicks when the photon comes from path 1; while a wrong guess is the opposite, with photon count of N00 + N21. The distinguishability is quantified by the difference between the right guess and the wrong guess

$${D}_{{{{\rm{m}}}}}=\frac{{N}_{01}+{N}_{20}-{N}_{00}-{N}_{21}}{{N}_{01}+{N}_{20}+{N}_{00}+{N}_{21}}.$$
(16)

Figure 5 shows our experimental results, where the horizontal label symmetry signifies the symmetry of the interference and it is quantified by \(\tan 2{\theta }_{{{{\rm{a}}}}}\). We test the two cases when (i) the linear form applies (Fig. 5a), and (ii) the linear form does not apply (Fig. 5b), when using the UQSD strategy. For comparison, we also test the quadratic form by using the MED strategy with the same configurations in Fig. 5c and d, respectively. Note that the applicability of the linear form requires \(\sin 2{\theta }_{{{{\rm{n}}}}}\le \tan 2{\theta }_{{{{\rm{a}}}}}\); therefore, we set \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.2\) in this case to ensure a relatively wide range in which the value of \(\tan 2{\theta }_{{{{\rm{a}}}}}\) could be set. One can see from Fig. 5a that the experimental summation of (V + Du) is close to 1 with small deviations.

Fig. 5: Experimental results.
figure 5

Duality relations when the nonorthogonality of the final states of the WWD is (a, c) \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.2\) and (b, d) \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.9\). (a, b): Confirmation of the linear duality relation. (c, d) Confirmation of the quadratic duality relation. The experimental visibility in (c, d) is the same as that in (a, b), both are calculated through Eq. (14). The label symmetry signifies the symmetry of the interference and it is quantified by \(\tan 2{\theta }_{{{{\rm{a}}}}}\). The dots are experimental values while the solid lines are theoretical values. The error bars indicate one standard deviation.

On the other hand, for the case where the linear relation does not apply, we set \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.9\) in Fig. 5b, since the inequality \(\sin 2{\theta }_{{{{\rm{n}}}}} \,>\, \tan 2{\theta }_{{{{\rm{a}}}}}\) should be satisfied. One could see that the linear relation is no longer valid in this case, because partial which-way information is stored in the common part when the degree of asymmetry is larger than the degree of nonorthogonality. On the contrary, in Fig. 5(c, d), the quadratic relation always applies. One notices that the (V + Du) and \(({V}^{2}+{D}_{{{{\rm{m}}}}}^{2})\) in Fig. 5 exceed the theoretical maximum at some data points, this is because the visibility and the distinguishability are not measured with the same photons. The visibility is measured through the statistics of photon counts at detector Dv while varying the phase φ; whereas the distinguishability is measured through the polarization analysis in the second Sagnac loop. On the other hand, the non-ideal coating of the cBS on the black half (i.e., the part acting as an NPBS) causes errors to the measurements of the visibility and the distinguishability. Therefore, the measured (V + Du) and \(({V}^{2}+{D}_{{{{\rm{m}}}}}^{2})\) may exceed the theoretical maximum.

Relation between the two forms of the duality relation

The linear duality relation characterized by Eqs. (9) and (10) is tighter than the quadratic duality relation characterized by Eq. (11). This can be seen from the mutual information gained after performing the measurement. The mutual information between Alice (A) and Bob (B) is

$$H(A:B)=\mathop{\sum}\limits_{ij}{p}_{i}{{{\rm{Tr}}}}({\hat{\rho }}_{i}{\hat{\pi }}_{j})\log \left(\frac{{{{\rm{Tr}}}}({\hat{\rho }}_{i}{\hat{\pi }}_{j})}{{{{\rm{Tr}}}}(\hat{\rho }{\hat{\pi }}_{j})}\right),$$
(17)

where the quantum state \({\hat{\rho }}_{i}\) is prepared by Alice with a priori probability pi, and Bob performs a positive operator-valued measure \(\{{\hat{\pi }}_{j}\}\) with \({\sum }_{j}{\hat{\pi }}_{j}={\mathbb{I}}\) and \(\hat{\rho }={\sum }_{i}{p}_{i}{\hat{\rho }}_{i}\). The mutual information given by Eq. (17) quantifies how much information is obtained by Bob through the measurement (See Methods). The UQSD strategy is closely related to the maximum confidence strategy for quantum state discrimination55, which maximizes the conditional probability \(P({\hat{\rho }}_{i}| i)\), i.e., the probability that the state is \({\hat{\rho }}_{i}\) when obtaining the result i. The MED strategy minimizes the guessing error and in some cases it coincides with the maximum mutual information strategy56,57. Figure 6 shows the mutual information obtained by using USQD and MED strategies. We can see that the mutual information obtained through the MED strategy is more than that obtained through the UQSD strategy. This means that more which-way information is extracted through the MED strategy.

Fig. 6: Mutual information gained via MED and UQSD strategies.
figure 6

The nonorthogonality is (a) \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.2\) and (b) \(\sin 2{\theta }_{{{{\rm{n}}}}}=0.9\). The dots are experimental values, while the solid lines are theoretical values. The error bars indicate one standard deviation.

Discussion

In our work, we measure the visibility by changing the relative phase between the two paths of the first Sagnac loop, while the distinguishability is measured through the polarization measurement in the second Sagnac loop. The visibility and the distinguishability are measured with different photon samples. This, in some sense, implies that they are measured with different setups. While the essence of the duality relations emphasizes the complementarity between the wave behaviour and the particle behaviour of the same photon, we remark that such a method to measure the two quantities has been employed in the study of duality relations29,30. Due to the destruction of the photon at the detector, we are not able to measure the distinguishability and the visibility with the same photon.

We have realized an asymmetric beam interference experiment to study the wave-particle duality by utilizing the polarization degree of freedom of the photon as a which-way detector. In our experiment, both the linear duality relation and the quadratic duality relation have been confirmed. We have shown that the distinguishability in the linear form corresponds to the probability of obtaining an unambiguous result, while the distinguishability in the quadratic duality relation corresponds to the maximum likelihood for the right guess. We have also shown that the difference between the UQSD strategy and the MED strategy can be understood by calculating the mutual information gained through the measurements. Since less mutual information is gained in the UQSD strategy, the linear form is tighter than the quadratic form. Our results reveal the difference between the two duality relations, which will have fundamental implications in better understanding the duality relation quantitatively. Furthermore, since the distinguishability is closely related to the discrimination of the states of the which-way detector, our work might motivate future studies on quantum state discrimination in duality relations and may have other potential applications in quantum information science and technology.

Methods

Details of the experiment

The single-photon source is generated through spontaneous parametric down-conversion process by pumping a type-I phase matched nonlinear β-barium-borate crystal. The pump laser is a CW single frequency laser operating at a center wavelength of 404 nm with power of 130 mW. The photon pair with wavelength of 808 nm is filtered by a pair of interference filters with a 3 nm bandwidth. The idler photon is detected by a single-photon detector for coincidence counting. The signal photon is thus heralded and delivered to the experimental setup shown in Fig. 3. The averaged photon count is approximately 10,000 per second.

The interference visibility of both Sagnac loops is higher than 98.67%. The photon counts are measured five times for calculating the deviations, with duration of 0.5 s for each measurement. The error bars in Figs. 46 are small because the fluctuation of the photon count is relatively small.

Settings for performing UQSD and MED strategies

We follow Fig. 1 in the main text to clarify the measurement settings for performing the nonorthogonal quantum state discrimination strategies, UQSD and MED.

(i) UQSD strategy. When \(\tan 2{\theta }_{{{{\rm{a}}}}} \,>\, \sin 2{\theta }_{{{{\rm{n}}}}}\), the H4 rotates the polarization suitably such that the line connecting the endpoints of the state vectors is perpendicular to the horizontal line, thus maximizing the probability of obtaining an unambiguous result. In this way, the states \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) have the same amount of horizontal component, as shown in Supplementary Fig. 1a. Then H5 separates the horizontal components of both states into two parts. One part corresponds to the common state \(\left|{q}_{2}\right\rangle\) (an inconclusive result); while the other, when superposed with the vertical components, turns the states \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) into orthogonal states \(\left|{q}_{1}\right\rangle\) and \(\left|{q}_{3}\right\rangle\). The H6 is fixed at 45. Finally, \(\left|{q}_{1}\right\rangle\) and \(\left|{q}_{3}\right\rangle\) are unambiguously discriminated by a projective measurement consisting of H7 and a PBS. The angles of H4, H5 and H7 are

$${\theta }_{4}=\frac{1}{2}\arctan \frac{\sin 2{\theta }_{{{{\rm{n}}}}}-\cot 2{\theta }_{{{{\rm{a}}}}}}{\cos 2{\theta }_{{{{\rm{n}}}}}},$$
(18)
$${\theta }_{5}=\frac{1}{2}\arccos \frac{\sqrt{\tan 2{\theta }_{{{{\rm{a}}}}}\sin 2{\theta }_{{{{\rm{n}}}}}}}{\cos 2{\theta }_{4}},$$
(19)
$${\theta }_{7}=\frac{1}{2}{{{\rm{arccot}}}}\frac{\sin 2{\theta }_{4}}{\cos 2{\theta }_{4}\sin 2{\theta }_{5}},$$
(20)

where θa and θn are the orientations of H1 and H2, respectively. Here, we omit the reflections on the mirrors. When \(\tan 2{\theta }_{{{{\rm{a}}}}} \,<\, \sin 2{\theta }_{{{{\rm{n}}}}}\), the H4 transforms \(\left|{d}_{2}\right\rangle\) to \(\left|h\right\rangle\), as is shown in Supplementary Fig. 1d. The H5 ~ H7 are fixed at 0, 45 and 0, respectively. Both of these states have a horizontal component, thus a detection of the \(\left|h\right\rangle\) state (i.e., D2 clicks) signifies an inconclusive result. While D0 clicks if and only if the state is \(\left|{d}_{1}\right\rangle\). The orientation of H4 is

$$\begin{array}{r}{\theta }_{4}={\theta }_{{{{\rm{n}}}}}-\frac{\pi }{4}.\end{array}$$
(21)

(ii) MED strategy. As shown in Supplementary Fig. 1e, to realize the MED strategy, the polarization is suitably rotated by H4, followed by a projective measurement. Note that though a simpler setup is sufficient to realize the MED strategy: we maintain the setup unchanged such that it is the same as the one when performing the UQSD strategy. Thus, the H5 ~ H7 are fixed at 0, 45 and 0, respectively. The orientation of H4 is

$${\theta }_{4}=\frac{1}{4}\left(\frac{\pi }{2}-\phi \right),$$
(22)

where

$$\phi =\arctan \frac{{\cos }^{2}2{\theta }_{{{{\rm{a}}}}}+{\sin }^{2}2{\theta }_{{{{\rm{a}}}}}\cos 4{\theta }_{{{{\rm{n}}}}}}{{\sin }^{2}2{\theta }_{{{{\rm{a}}}}}\sin 4{\theta }_{{{{\rm{n}}}}}}.$$
(23)

Evaluation of the mutual information

We evaluate the mutual information obtained through the polarization measurement for two nonorthogonal states \(\left|{d}_{1}\right\rangle =\left|h\right\rangle\) and \(\left|{d}_{2}\right\rangle =\sin 2{\theta }_{{{{\rm{n}}}}}\left|h\right\rangle -\cos 2{\theta }_{{{{\rm{n}}}}}\left|v\right\rangle\), with a priori probabilities \({p}_{1}={\cos }^{2}2{\theta }_{{{{\rm{a}}}}}\) and \({p}_{2}={\sin }^{2}2{\theta }_{{{{\rm{a}}}}}\), respectively. For UQSD, the states \(\left|{d}_{1}\right\rangle\) and \(\left|{d}_{2}\right\rangle\) are projected onto a three-dimensional space spanned by the basis states \(\{\left|{q}_{1}\right\rangle ,\left|{q}_{2}\right\rangle ,\left|{q}_{3}\right\rangle \}\), with the projective operators \({\hat{\pi }}_{1}=\left|{q}_{1}\right\rangle \left\langle {q}_{1}\right|\), \({\hat{\pi }}_{2}=\left|{q}_{2}\right\rangle \left\langle {q}_{2}\right|\), and \({\hat{\pi }}_{3}=\left|{q}_{3}\right\rangle \left\langle {q}_{3}\right|\). The basis states have the following forms

$$\left|{q}_{1}\right\rangle ={R}_{{{{\rm{H4}}}}}^{{\dagger} }({\hat{P}}_{v}\hat{{\sigma }_{1}}{\hat{P}}_{h}+{\hat{P}}_{h}{R}_{{{{\rm{H5}}}}}^{{\dagger} }{\hat{P}}_{v}){R}_{{{{\rm{H7}}}}}^{{\dagger} }{\left|h\right\rangle }_{r},$$
(24)
$$\left|{q}_{2}\right\rangle ={R}_{{{{\rm{H4}}}}}^{{\dagger} }{\hat{P}}_{h}{R}_{{{{\rm{H5}}}}}^{{\dagger} }{\left|h\right\rangle }_{l},$$
(25)
$$\left|{q}_{3}\right\rangle ={R}_{{{{\rm{H4}}}}}^{{\dagger} }({\hat{P}}_{v}\hat{{\sigma }_{1}}{\hat{P}}_{h}+{\hat{P}}_{h}{R}_{{{{\rm{H5}}}}}^{{\dagger} }{\hat{P}}_{v}){R}_{{{{\rm{H7}}}}}^{{\dagger} }{\left|v\right\rangle }_{r},$$
(26)

where \(\hat{{\sigma }_{1}}\) is the Pauli operator, \({\hat{P}}_{h(v)}\) projects the state onto \(\left|h(v)\right\rangle\), and \({R}_{(\bullet )}^{{\dagger} }\) is the Hermitian conjugate of the Jones matrix of the half-wave plate. The subscripts l and r indicate different paths in the three-dimensional space, because the path degree of freedom of the photon is coupled with the polarization degree of freedom to form a higher space. The eigenvalue of \({\hat{\pi }}_{2}\) corresponds to an inconclusive result, while the eigenvalues of \({\hat{\pi }}_{1}\) and \({\hat{\pi }}_{3}\) correspond to unambiguous results that the photon comes from path 0 and path 1, respectively.

While for MED, the projective operators are

$${\hat{\pi }}_{1}={R}_{{{{\rm{H4}}}}}^{{\dagger} }\left|h\right\rangle \left\langle h\right|{R}_{{{{\rm{H4}}}}},$$
(27)
$${\hat{\pi }}_{2}={R}_{{{{\rm{H4}}}}}^{{\dagger} }\left|v\right\rangle \left\langle v\right|{R}_{{{{\rm{H4}}}}},$$
(28)

which means that the states are projected onto the basis states \(\left|h\right\rangle\) and \(\left|v\right\rangle\) after transformed by H4.