Experimental Hybrid Shadow Tomography and Distillation
Abstract
Characterization of quantum states is a fundamental requirement in quantum science and technology. As a promising framework, shadow tomography shows significant efficiency in estimating linear functions, however, for the challenging nonlinear ones, it requires measurements at an exponential cost. Here, we implement an advanced shadow protocol, so-called hybrid shadow (HS) tomography, to reduce the measurement cost in the estimation of nonlinear functions in an optical system. We design and realize a deterministic quantum Fredkin gate with single photon, achieving high process fidelity of . Utilizing this novel Fredkin gate, we demonstrate HS in the estimations, like the higher-order moments up to 4, and reveal that the sample complexity of HS is significantly reduced compared with the original shadow protocol. Furthermore, we utilize these higher-degree functions to implement virtual distillation, which effectively extracts a high-purity quantum state from two noisy copies. The virtual distillation is also verified in a proof-of-principle demonstration of quantum metrology, further enhancing the accuracy of parameter estimation. Our results suggest that HS is efficient in state characterization and promising for quantum technologies.
Introduction.—Estimating properties of quantum systems is a both fundamental and practical issue for quantum science and technology [1, 2, 3], where shadow tomography is a recently developed general framework for such important tasks [4, 5, 6]. By post-processing the projective measurement results of underlying state on random bases, one can sequentially construct independent shadow snapshots, i.e., the unbiased estimator [5]. Shadow tomography shows promising measurement efficiency of simultaneously estimating many linear functions, such as local observables [7, 8, 9] and quantum fidelities [10, 11], which lead to a few realizations [12, 13, 14, 15, 16]. On the other hand, the estimation of nonlinear functions is more challenging. Besides many important applications from quantum information processing [17, 18, 19, 20] to many-body physics [21, 22, 23], nonlinear functions, such as the purity and higher-order moment , are the key ingredient in virtual distillation (VD) [24, 25, 26, 27], playing a crucial role in error mitigation of noisy quantum processors [28, 29, 30]. However, the capability of the original shadow (OS) protocol for such nonlinear functions is inevitably limited by the exponentially-increasing sampling number regarding to the system size and the heavy cost of post-processing [17, 18].
A hybrid shadow (HS) tomography [31] has been proposed aiming to enhance the efficiency for estimating nonlinear functions, which combines the advantages of shadow estimation and the generalized SWAP test [32, 33]. HS can effectively conduct randomized measurements on by introducing a coherent controlled-(generalized) SWAP operation on -copy , and therefore construct the estimator . In this way, HS is capable of estimating higher-degree functions by patching lower-degree estimator via post-processing, which can significantly reduce the sampling and post-processing costs [31]. The theoretical and numerical findings there depend on the ideal multi-qubit coherent operation, and thus it remains an open question whether HS holds its effectiveness and superiority in real quantum platforms.
In this work, we give this question a positive answer by realizing HS in an optical system. We design and implement a novel quantum Fredkin gate with single photon, which is able to deterministically apply controlled-SWAP operation on two single-qubit states with high fidelity. Inspired by this novel Fredkin gate, we implement HS and show the efficiency of HS in estimation of higher-degree functions, i.e., the moment functions with . We demonstrate that the measurement budget and sample complexity are significantly reduced in HS compared to OS. Moreover, we showcase the usefulness of HS in VD and error-mitigated quantum metrology.

Framework.— We start by briefly reviewing the OS in estimating various properties of an quantum state [5]. As shown in Fig. 1(a), one can obtain the outcome by applying a random unitary operation sampled from some ensemble followed with measurements on the computational basis. With the information of and , the classical shadow is constructed as
(1) |
which is an unbiased estimator, i.e., . Here the classical inverse is determined by the chosen random ensemble [5, 34, 35].
For a (linear) observable , OS provides an unbiased estimation of via . Meanwhile, OS is capable of estimating nonlinear functions, such as the higher-order moment , and the corresponding unbiased estimator shows
(2) |
where denotes the generalized SWAP operation, i.e., the SHIFT operation on . Here, are distinct shadow snapshots. Meanwhile, one can construct the estimator for as . One would enhance the estimation accuracy by repeating the experiment for times to collect the shadow set . However, the exponentially increased number of measurements with the qubit number, along with the cost for classical post-processing retards efficiency of OS in estimation of nonlinear functions [5, 17].
HS [31] advances OS on estimating nonlinear functions. As shown in Fig. 1(b), a controlled- gate is applied on with the control qubit initialized as , and in general . The measurement outcome of the control qubit in the X-basis is denoted as , and one implements OS on one copy of with measurement outcome . For each single-shot experimental run, one can construct the estimator of as
(3) |
such that , and similarly one can collect the set . Interestingly, by ignoring the information of in the hybrid setting, one can also get the classical shadow of with and via Eq. (1). (See Supplementary Materials for a detailed illustration.)
In this way, one can build estimators for many nonlinear properties. For example, can be directly estimated with . Furthermore, more complex nonlinear functions with a higher degree can be estimated by combining low-degree shadow snapshots. Specifically, the unbiased estimator of shows
(4) | ||||
where with , and are distinct snapshots. Similarly, one can construct the corresponding estimator for as . Compared to the one by OS in Eq. (2), HS requires snapshots while OS requires ones, thus the classical post-processing cost for HS is significantly reduced. Moreover, as the estimator of HS effectively transfers an -degree nonlinear function to a -degree one, the statistical variance can also be reduced, thus saving the sample number of in practise.

Apart from many applications [36, 37, 38], nonlinear functions are vital in purification-based quantum error mitigation, say VD [24, 25, 27]. VD enables to approach the noiseless value of the observable over noisy state by , which is more accurate than the noisy value . Such enhancement increases exponentially with the degree . VD benefits a few quantum information tasks, such as quantum metrology [27, 39]. In quantum metrology [40, 41], a probe state evolves under the dynamics , and the estimator of the unknown parameter can be constructed via measuring the evolved state using some observable . A noisy preparation instead of would introduce considerable systematic errors [27, 42, 43]. Here in the hybrid framework, we follow the spirit of VD to feed one of the output port of after the control gate to the evolution and finally make the measurement in the eigenbasis of some observable , as shown in Fig. 1(c). After repeating the experiment, can be estimated by
(5) |
where is the outcome of for the -th shot. Such approach significantly enhances the estimating accuracy, as it effectively realizes quantum metrology with the purified state , which is much closer to the ideal one than . We should remark that our scheme only needs to feed the purified port to the environment (other than all copies) and do not require the controlled- operation compared to Ref. [27]. (See Supplementary Materials for proofs and more details.)
Experiment.— We implement the HS using a novel quantum Fredkin gate. In contrast to multi-photon Fredkin gate [44, 45, 46], our Fredkin gate acts on three qubits encoded on different degrees of freedom (DOF) of a single photon. The single-photon Fredkin gate is deterministic and generally can achieve high fidelity as it does not depend on multi-photon interference and post-selection [47]. In our Fredkin gate, the control qubit is encoded in the polarization DOF and , with () being the horizontal (vertical) polarization. Two target qubits are equivalently encoded in a four-dimensional Hilbert space spanned by the four path modes , , and . As illustrated in Fig. 2(a), the heralded single photon is obtained by triggering one photon of photon pair generated from a periodically poled potassium titanyl phosphate crystal via spontaneous parametric down conversion. We use three tunable half-wave plates (HWP1, HWP2 and HWP3), four HPWs with fixed angles and three beam displacers (BDs) to prepare the input state (hereafter referred as ), where , and . , and are the angles of HWP1, HWP2 and HWP3 respectively. See Supplementary Materials for details of state preparation. The Fredkin gate is realized with the optical network shown in Fig. 2(b). To give a clear illustration, we individually show how the four path modes ,, and pass through the optical network conditioned on (solid line) and (dashed line) in Fig. 2(d). The projective measurement is sequentially performed on the control qubit, the second and the first target qubit as shown in Fig. 2(c). (See Supplementary Materials for details of projective measurement.)

We first characterize the Fredkin gate by measuring the truth table, according to which we observe the classical fidelity of with respect to the ideal case. The Fredkin gate is also capable to generate three-qubit Greenberger-Horne-Zeilinger (GHZ) state by inputting . The fidelity of generated GHZ state is . Furthermore, we estimate the process fidelity of the implemented gate. (See Supplementary Materials for more experimental results regarding the characterization of Fredkin gate.)
We implement HS on two copies of single-qubit noisy state , where the two-qubit target state can be written as
(6) | ||||
and can be prepared by randomly setting angles to generate , , , , , , , , , with probability of 0.64, 0.08, 0.08, 0.08, 0.01, 0.01, 0.08, 0.01, 0.01 (See supplementary Materials for the angle settings.) After the Fredkin gate, the control qubit is measured on Pauli- basis. The target qubit is randomly detected on Pauli-, and bases. By running the experiment many times, the unbiased estimators of , and are constructed by
(7) |
according to Eq. (4), with and constructed via Eq. (1) and (3), respectively. The experimental results of , and are shown with red dots in Fig. 3(a)-Fig. 3(c), respectively. To give a comparison, we also implement OS to estimate , and according to Eq. (2), and the results are shown with blue dots in Fig. 3(a)-Fig. 3(c) respectively. Note that the HS consumes two copies of in each experiment run while the OS consumes one, so that the comparison is carried out with the same number of consumed copies (denoted by ) instead of experimental runs . As reflected in Fig. 3(a)-Fig. 3(c), the results of HS converge faster than that of OS, which clearly demonstrate the reduction of sample complexity using the hybrid framework.

The sample complexity is further investigated by the variance of [5, 48]
(8) |
Note that Var when . In the experiment, the converged value is estimated by using a large number () of copies. The results of Var, Var, Var are shown in Fig. 3(d)-Fig. 3(f) respectively, and we observe Var of HS converges to zero faster than that of OS.
Next, we show VD of the expectation value of some observable with the assistance of and . That is, estimating with , where is an estimator of . For example, for HS is constructed as
(9) |
in a similar way as in Eq. (7). The result of estimating for observable is shown in Fig. 4(a). After VD, is closer to 1, which is the theoretical prediction of on state ( green dashed line in insert of Fig. 4(a)). Similarly, the variance of converges faster compared to OS as reflected in Fig. 4(b). See Supplementary Materials for the results of and . Note that is more accurate than .
Finally, we demonstrate quantum metrology with the assistance of VD in such a hybrid framework. We consider the probe qubit passing through a phase gate as shown in Fig. 2(e), and the value of is the parameter to be estimated. By measuring the probe qubit in the eigenbasis of Pauli , one can obtain the estimation . The optimal accuracy is achieved with the perfect probe state of . In our experiment, we set and the initial probe state is a noisy state . Without VD, is illustrated with blue dots in Fig. 4(c). The results of with VD are shown with red dots in Fig. 4(c), and we observe with VD is smaller than that without it when around copies of are consumed in the experiment. Also, we perform the metrology with perfect probe state of , and the results are shown with green dots in Fig. 4(c). The accuracy of with noisy state achieves that with (almost) pure state when the virtual distillation is performed with around copies.
Conclusion.— In this work, we design and implement a deterministic and high-fidelity quantum Fredkin gate with single photon, and demonstrate the advantages of HS in important tasks like quantum error mitigation and quantum metrology. Our protocols in principle can be systemically generalized to larger systems by using parallel Fredkin gates and entangled control qubits. Note that the Fredkin gate here would benefit the investigation of other photonic quantum information tasks, such as quantum fingerprinting [49] and optimal cloning [50]. We also expect HS can be further applied to other important scenarios in quantum information science, like quantum algorithm design [51, 52], quantum chaos diagnosis [53, 54], and quantum magic-resource quantification [55, 56, 57]. The extension of HS to the multi-shot scenario [58, 59] and continuous-variable quantum systems [60, 61] are also promising. Our research significantly enriches the scope of randomized measurements and shadow tomography, and advances its real-world experimental implementations, especially in the estimation of highly nonlinear functions.
References
- Eisert et al. [2020] J. Eisert, D. Hangleiter, N. Walk, I. Roth, D. Markham, R. Parekh, U. Chabaud, and E. Kashefi, Nature Reviews Physics 2, 382 (2020).
- Kliesch and Roth [2021] M. Kliesch and I. Roth, PRX Quantum 2, 010201 (2021).
- Gebhart et al. [2023] V. Gebhart, R. Santagati, A. A. Gentile, E. M. Gauger, D. Craig, N. Ares, L. Banchi, F. Marquardt, L. Pezzè, and C. Bonato, Nature Reviews Physics 5, 141 (2023).
- Aaronson [2019] S. Aaronson, SIAM Journal on Computing 49, STOC18 (2019).
- Huang et al. [2020] H.-Y. Huang, R. Kueng, and J. Preskill, Nature Physics 16, 1050 (2020).
- Elben et al. [2023] A. Elben, S. T. Flammia, H.-Y. Huang, R. Kueng, J. Preskill, B. Vermersch, and P. Zoller, Nature Reviews Physics 5, 9 (2023).
- Huang et al. [2021] H.-Y. Huang, R. Kueng, and J. Preskill, Physical review letters 127, 030503 (2021).
- Hadfield et al. [2022] C. Hadfield, S. Bravyi, R. Raymond, and A. Mezzacapo, Communications in Mathematical Physics 391, 951 (2022).
- Wu et al. [2023] B. Wu, J. Sun, Q. Huang, and X. Yuan, Quantum 7, 896 (2023).
- Elben et al. [2020a] A. Elben, B. Vermersch, R. van Bijnen, C. Kokail, T. Brydges, C. Maier, M. K. Joshi, R. Blatt, C. F. Roos, and P. Zoller, Phys. Rev. Lett. 124, 010504 (2020a).
- Liu et al. [2022a] Z. Liu, P. Zeng, Y. Zhou, and M. Gu, Phys. Rev. A 105, 022407 (2022a).
- Struchalin et al. [2021] G. Struchalin, Y. A. Zagorovskii, E. Kovlakov, S. Straupe, and S. Kulik, PRX Quantum 2, 010307 (2021).
- Zhang et al. [2021] T. Zhang, J. Sun, X.-X. Fang, X.-M. Zhang, X. Yuan, and H. Lu, Phys. Rev. Lett. 127, 200501 (2021).
- Stricker et al. [2022] R. Stricker, M. Meth, L. Postler, C. Edmunds, C. Ferrie, R. Blatt, P. Schindler, T. Monz, R. Kueng, and M. Ringbauer, PRX Quantum 3, 040310 (2022).
- Yu et al. [2021a] M. Yu, D. Li, J. Wang, Y. Chu, P. Yang, M. Gong, N. Goldman, and J. Cai, Phys. Rev. Research 3, 043122 (2021a).
- An et al. [2023] K. An, Z. Liu, T. Zhang, S. Li, Y. Zhou, X. Yuan, L. Wang, W. Zhang, G. Wang, and H. Lu, arXiv preprint arXiv:2308.07067 10.48550/arXiv.2308.07067 (2023).
- Elben et al. [2020b] A. Elben, R. Kueng, H.-Y. R. Huang, R. van Bijnen, C. Kokail, M. Dalmonte, P. Calabrese, B. Kraus, J. Preskill, P. Zoller, and B. Vermersch, Phys. Rev. Lett. 125, 200501 (2020b).
- Zhou et al. [2020] Y. Zhou, P. Zeng, and Z. Liu, Phys. Rev. Lett. 125, 200502 (2020).
- Ketterer et al. [2019] A. Ketterer, N. Wyderka, and O. Gühne, Phys. Rev. Lett. 122, 120505 (2019).
- Rath et al. [2021] A. Rath, C. Branciard, A. Minguzzi, and B. Vermersch, Phys. Rev. Lett. 127, 260501 (2021).
- Vermersch et al. [2019] B. Vermersch, A. Elben, L. M. Sieberer, N. Y. Yao, and P. Zoller, Phys. Rev. X 9, 021061 (2019).
- Garcia et al. [2021] R. J. Garcia, Y. Zhou, and A. Jaffe, Phys. Rev. Research 3, 033155 (2021).
- Elben et al. [2020c] A. Elben, J. Yu, G. Zhu, M. Hafezi, F. Pollmann, P. Zoller, and B. Vermersch, Science Advances 6, eaaz3666 (2020c).
- Huggins et al. [2021] W. J. Huggins, S. McArdle, T. E. O’Brien, J. Lee, N. C. Rubin, S. Boixo, K. B. Whaley, R. Babbush, and J. R. McClean, Phys. Rev. X 11, 041036 (2021).
- Koczor [2021] B. Koczor, Phys. Rev. X 11, 031057 (2021).
- Seif et al. [2023] A. Seif, Z.-P. Cian, S. Zhou, S. Chen, and L. Jiang, PRX Quantum 4, 010303 (2023).
- Yamamoto et al. [2022] K. Yamamoto, S. Endo, H. Hakoshima, Y. Matsuzaki, and Y. Tokunaga, Phys. Rev. Lett. 129, 250503 (2022).
- O’Brien et al. [2022] T. E. O’Brien, G. Anselmetti, F. Gkritsis, V. Elfving, S. Polla, W. J. Huggins, O. Oumarou, K. Kechedzhi, D. Abanin, R. Acharya, et al., arXiv preprint arXiv:2210.10799 (2022).
- Endo et al. [2021] S. Endo, Z. Cai, S. C. Benjamin, and X. Yuan, Journal of the Physical Society of Japan 90, 032001 (2021).
- Cai et al. [2023] Z. Cai, R. Babbush, S. C. Benjamin, S. Endo, W. J. Huggins, Y. Li, J. R. McClean, and T. E. O’Brien, Reviews of Modern Physics 95, 045005 (2023).
- Zhou and Liu [2022] Y. Zhou and Z. Liu, arXiv preprint arXiv:2208.08416 (2022).
- Ekert et al. [2002] A. K. Ekert, C. M. Alves, D. K. L. Oi, M. Horodecki, P. Horodecki, and L. C. Kwek, Phys. Rev. Lett. 88, 217901 (2002).
- Horodecki and Ekert [2002] P. Horodecki and A. Ekert, Phys. Rev. Lett. 89, 127902 (2002).
- Hu et al. [2023] H.-Y. Hu, S. Choi, and Y.-Z. You, Phys. Rev. Res. 5, 023027 (2023).
- Ohliger et al. [2013] M. Ohliger, V. Nesme, and J. Eisert, New Journal of Physics 15, 015024 (2013).
- Neven et al. [2021] A. Neven, J. Carrasco, V. Vitale, C. Kokail, A. Elben, M. Dalmonte, P. Calabrese, P. Zoller, B. Vermersch, R. Kueng, et al., npj Quantum Information 7, 1 (2021).
- Yu et al. [2021b] X.-D. Yu, S. Imai, and O. Gühne, Phys. Rev. Lett. 127, 060504 (2021b).
- Liu et al. [2022b] Z. Liu, Y. Tang, H. Dai, P. Liu, S. Chen, and X. Ma, Phys. Rev. Lett. 129, 260501 (2022b).
- Kwon et al. [2024] H. Kwon, C. Oh, Y. Lim, H. Jeong, and L. Jiang, Physical Review A 109, 022410 (2024).
- Giovannetti et al. [2004] V. Giovannetti, S. Lloyd, and L. Maccone, Science 306, 1330 (2004).
- Giovannetti et al. [2011] V. Giovannetti, S. Lloyd, and L. Maccone, Nature photonics 5, 222 (2011).
- Takeuchi et al. [2019] Y. Takeuchi, Y. Matsuzaki, K. Miyanishi, T. Sugiyama, and W. J. Munro, Physical Review A 99, 022325 (2019).
- Okane et al. [2021] H. Okane, H. Hakoshima, Y. Takeuchi, Y. Seki, and Y. Matsuzaki, Physical Review A 104, 062610 (2021).
- Patel et al. [2016] R. B. Patel, J. Ho, F. Ferreyrol, T. C. Ralph, and G. J. Pryde, Science Advances 2, e1501531 (2016), https://www.science.org/doi/pdf/10.1126/sciadv.1501531 .
- Ono et al. [2017] T. Ono, R. Okamoto, M. Tanida, H. F. Hofmann, and S. Takeuchi, Scientific Reports 7, 45353 (2017).
- Li et al. [2022] Y. Li, L. Wan, H. Zhang, H. Zhu, Y. Shi, L. K. Chin, X. Zhou, L. C. Kwek, and A. Q. Liu, npj Quantum Information 8, 112 (2022).
- Wang et al. [2021] F. Wang, S. Ru, Y. Wang, M. An, P. Zhang, and F. Li, Quantum Science and Technology 6, 035005 (2021).
- Innocenti et al. [2023] L. Innocenti, S. Lorenzo, I. Palmisano, F. Albarelli, A. Ferraro, M. Paternostro, and G. M. Palma, PRX Quantum 4, 040328 (2023).
- Buhrman et al. [2001] H. Buhrman, R. Cleve, J. Watrous, and R. de Wolf, Phys. Rev. Lett. 87, 167902 (2001).
- Hofmann [2012] H. F. Hofmann, Phys. Rev. Lett. 109, 020408 (2012).
- Lubasch et al. [2020] M. Lubasch, J. Joo, P. Moinier, M. Kiffner, and D. Jaksch, Phys. Rev. A 101, 010301 (2020).
- McArdle et al. [2020] S. McArdle, S. Endo, A. Aspuru-Guzik, S. C. Benjamin, and X. Yuan, Rev. Mod. Phys. 92, 015003 (2020).
- Yoshida and Yao [2019] B. Yoshida and N. Y. Yao, Physical Review X 9, 10.1103/physrevx.9.011006 (2019).
- Leone et al. [2021] L. Leone, S. F. E. Oliviero, Y. Zhou, and A. Hamma, Quantum 5, 453 (2021).
- Leone et al. [2022] L. Leone, S. F. Oliviero, and A. Hamma, Physical Review Letters 128, 050402 (2022).
- Chen et al. [2023] J. Chen, Y. Yan, and Y. Zhou, arXiv preprint arXiv:2308.01886 10.48550/arXiv.2308.01886 (2023).
- Oliviero et al. [2022] S. F. E. Oliviero, L. Leone, A. Hamma, and S. Lloyd, npj Quantum Information 8, 148 (2022).
- Helsen and Walter [2023] J. Helsen and M. Walter, Physical Review Letters 131, 240602 (2023).
- Zhou and Liu [2023] Y. Zhou and Q. Liu, Quantum 7, 1044 (2023).
- Becker et al. [2024] S. Becker, N. Datta, L. Lami, and C. Rouzé, IEEE Transactions on Information Theory (2024).
- Gandhari et al. [2024] S. Gandhari, V. V. Albert, T. Gerrits, J. M. Taylor, and M. J. Gullans, PRX Quantum 5, 010346 (2024).
Appendix A Additional notes for the hybrid framework
Here, we prove that one can construct the unbiased estimator of with the information and from the hybrid setting as shown in Fig. 1(b) in main text via
(10) |
by ignoring the information of .
Proof.
The expectation value of the estimator on random unitary and the measurement result , is
(11) | ||||
Given and , one can sum the index as
(12) | ||||
with denoting the controlled- gate. Thus, one can rewrite Eq. (11) as
(13) |
This equation is based on the definition of unbiased estimator given in the original shadow estimation protocol [5]. ∎
As introduced in main text, we implement OS tomography on one copy of after the SWAP-test. In fact, one can perform randomized measurements on each copy of in and record the corresponding . Therefore, one can build distinct shadow snapshots for with the information of for different copies in single-shot. This strategy would save the sample number of when constructing the shadow set , thus reduce the sample complexity. We applied such scheme in the classical post-processing procedure in our experiments.
Appendix B Quantum metrology with the hybrid framework
B.1 Variance of estimating with noisy state
In general quantum metrology settings [40, 41], one prepares a probe state and evolves the state under the dynamics characterized by parameter . Then, one performs projective measurements described by on this state and records the outcomes . By fitting the experimental outcomes with a theoretical estimator with , one can estimate the parameter .
Here, we discuss in detail the variance of estimating with the theoretical [27]. First, we derive the theoretical and for the ideal case when we set and measure the evolved state in y-basis, i.e., , as in the experiment. Here, we denote the ideal initial probe state as , thus
(14) | ||||
When is small enough, one can ignore the higher order terms of , that is
(15) |
Then, one can use the theoretical , to further estimate , where the ideal (or theoretical) estimator of is constructed as , with the variable of the average measurement outcome characterizing .
In practise, the real initial quantum state may be a noisy one denoted as . Thus, the real estimator of should be defined as , with and . However, due to a lack of information about the noisy state , one cannot access the real and . Thus, the variance of estimating with the theoretical estimator follows
(16) | ||||
Note that for the ideal case when , the variance of estimating follows
(17) |
Such estimation variance arises from the statistical error of the variable , which decreases with the increasing of .
Therefore, when , as illustrated in Eq. (16), the variance of estimating with the original metrology setting suffers from both statistical and systematic error [27, 42, 43]. Specifically, the first term of Eq. (16) is mainly generated by the statistical error; while other terms describe the systematic error due to the incorrect estimation of , that is, the value of and . Note that, the first term is also influenced by the systematic error when .
In main text, we consider the error of estimating described by for simplicity. Note that the error contains both statistical and systematic error. Thus, one should adopt error mitigation technique to reduce the systematic the error, which leads to our hybrid framework.
B.2 Error-mitigated quantum metrology
In this part, we introduce the hybrid framework for quantum metrology described in Fig. 1(c) and prove the unbiasedness of the estimator described in Eq.(5) in main text.
The hybrid framework for quantum metrology follows the spirit of VD. Specifically, one prepares copies of the probe state and sends them to the generalized SWAP test circuit, with the measurement outcome of the control qubit as . Next, one feeds one of the output port of after the controlled- to the evolution and makes measurement in the eigenbasis of observable . The outcome is denoted as . After repeating the experiment, one can estimate with and via Eq.(5) in main text, that is
(18) |
which is an unbiased estimator of . With this value, one can further estimate parameter in with higher precision using the metrology technique.
Proof.
Here, we prove that in the numerator term of Eq. (18) is an unbiased estimator of . The Hermitian operator can be decomposed as , with the eigenvalue, which also describes the measurement outcome while measuring in the eigenbasis of . The joint density matrix for the whole system before all the projective measurements is
(19) | ||||
When the measurement outcomes for one of the is , the density matrix of the control qubit is
(20) |
Thus, when measuring the control qubit in -basis, the probabilities for outcome and are
(21) | ||||
respectively. Thus, in the -th shot, the expectation value shows (we ignore the subscript in and for simplicity)
(22) | ||||
Here, we use the property that in the last line of Eq. (22). ∎
Note that, when , we can prove that , which shows that in the denominator term of Eq. (18) is an unbiased estimator of .
Appendix C Details of experiment
We start by presenting an overview of the critical optical components utilized in our experimental setup and elucidate their respective functions:
-
1.
Waveplates: Central to our experimental design are HWPs and QWPs. The angle parameters, for HWPs and for QWPs, define the orientation of the fast axis relative to the vertical polarization direction.
- HWP Unitary Transformation ():
- QWP Unitary Transformation ():
-
2.
Beam displacer (BD): A BD transmits the vertically polarized photons and deviates the horizontally polarized photons.
-
3.
Polarizing Beam Splitter (PBS): A PBS transmits the horizontal polarization and reflects the vertical polarization.
C.1 Preparation of input states
We use an ultraviolet diode laser to pump a periodically poled potassium titanyl phosphate crystal. The generated two photons are with orthogonal polarizations, and are separated by a polarizing beam splitter. The reflected photon is detected by a single-photon detector, serving as trigger to herald the existence of the other photon. The heralded photon is injected into the Fredkin gate. The step-by-step description of preparation of input state is

(23) | ||||
In the characterizations of Fredkin gate, the input states are , , , , , , and for classical fidelity measurement, and for generation of three-qubit GHZ state. The angle setting of are listed in Table 1.
0∘ | 0∘ | 0∘ | 0∘ | 45∘ | 45∘ | 45∘ | 45∘ | |
0∘ | 0∘ | 45∘ | 45∘ | 0∘ | 0∘ | 45∘ | 45∘ | |
0∘ | 45∘ | 0∘ | 45∘ | 0∘ | 45∘ | 0∘ | 45∘ |
In the HS experiment, the state of control qubit is , and we set . The angle settings of to prepare target states , , , , , , , , are listed in Table 2.
22.5∘ | 22.5∘ | 22.5∘ | 45∘ | 45∘ | 45∘ | 0∘ | 0∘ | 0∘ | |
22.5∘ | 45∘ | 0∘ | 22.5∘ | 45∘ | 0∘ | 22.5∘ | 45∘ | 0∘ |
C.2 Measurement
The measurement setup is shown in Fig. 6, which is able to perform the projective measurement on state with being complex numbers.

The step-by-step description of this projective measurement is
(24) | ||||
In our experiment, the projective measurement is performed on Pauli bases and the angle setting are listed in Table 3.
0∘ | 45∘ | 22.5∘ | 67.5∘ | 0∘ | 0∘ | |
0∘ | 0∘ | 0∘ | 0∘ | 45∘ | -45∘ | |
0∘ | 45∘ | 22.5∘ | 67.5∘ | 0∘ | 0∘ | |
0∘ | 0∘ | 0∘ | 0∘ | 45∘ | -45∘ | |
45∘ | 0∘ | 22.5∘ | 67.5∘ | 0∘ | 0∘ | |
0∘ | 0∘ | 0∘ | 0∘ | 45∘ | -45∘ |
C.3 Characterization of Fredkin gate
We measure the truth table of Fredkin gate, which are the probabilities of the outcome state in the computational basis with input state , respectively. The measurement results are shown in Fig. 7 and the values of are listed in Table 4. Then, we can calculate the classical fidelity of the Fredkin gate [45]
(25) |
and obtain .

000 | 001 | 010 | 011 | |
000 | ||||
001 | ||||
010 | ||||
011 | ||||
100 | ||||
101 | ||||
110 | ||||
111 | ||||
100 | 101 | 110 | 111 | |
000 | ||||
001 | ||||
010 | ||||
011 | ||||
100 | ||||
101 | ||||
110 | ||||
111 |
We also generate a three-qubit GHZ state by inputting into the Fredkin gate. The output state is
(26) |
The fidelity of outcome state with respect to is , where can be decomposed into
(27) |
To calculate the fidelity , we first measure the probabilities of outcome state on computational basis, and the results are shown in Fig. 8(a). Then, we measure the expected values of observable , , and , and the results are shown in Fig. 8(b). Accordingly, we calculate the fidelity . Using these data, we can estimate the process fidelity of Fredkin gate by [45]
(28) |
and obtain .

Appendix D More experimental results of distillation
The estimators of and with HS are
(29) |
(30) |
The results of and are shown in Fig. 9. Indeed, the larger is, the more accuracy is. To clarify this, we perform the VD of , and with number of copies of and respectively, and the results are shown in Fig. 10. The accuracy of increases with increasing either with HS and OS, however, the variance is smaller with HS compared to OS.

