Professional Documents
Culture Documents
Programmable Projective Measurement With Linear Optics
Programmable Projective Measurement With Linear Optics
Programmable Projective Measurement With Linear Optics
Ulysse Chabaud1 ,∗ Eleni Diamanti1 , Damian Markham1 , Elham Kashefi1,2 , and Antoine Joux3†
1
Laboratoire d’Informatique de Paris 6, CNRS,
Sorbonne Université, 4 place Jussieu, 75005 Paris
2
School of Informatics, University of Edinburgh, 10 Crichton Street, Edinburgh, EH8 9AB and
3
Chaire de Cryptologie de la Fondation SU, Sorbonne Université,
Institut de Mathématiques de Jussieu – Paris Rive Gauche, CNRS, INRIA,
Université Paris Diderot, Campus Pierre et Marie Curie, 4 place Jussieu, 75005 Paris
(Dated: May 8, 2018)
The swap test is a central primitive in quantum information, providing an efficient way of com-
paring two unknown quantum states. In this work, we generalise this test for the case where one
has access to multiple copies of a reference state, but to only one copy of the tested state. We
present a circuit implementing this test and propose a simple linear optical implementation using
arXiv:1805.02546v1 [quant-ph] 7 May 2018
the Hadamard interferometer. We show that both the circuit and the interferometer can be used as
programmable projective measurement devices, with a precision scaling with their size. This also
leads to a natural interpretation of the notion of projective measurement in quantum mechanics.
I. INTRODUCTION
H H
Quantum information features various non-classical
properties, including for instance the non-cloning the-
orem [1, 2]. As a result, quantum information has to SWAP
be handled differently than classical information. For
example, the simple task of discriminating between two FIG. 1: Circuit representation of a swap test. The ancilla
classical strings of n bits can be done by a straightfor- qubit is measured in the computational basis.
ward comparison in at most n steps, while comparing
two n qubits states is non trivial. Indeed, even assuming
that the complete classical descriptions of such two quan-
tum states were available, comparing these descriptions entanglement detection. Moreover, the swap test allows
would take up to 2n steps. Moreover, as soon as one of estimating the overlap of two states [13]. Hence, given
the states is unknown, any deterministic discrimination two vectors of classical data encoded into two quantum
is hopeless due to the probabilistic nature of quantum states, the distance between these vectors can be esti-
information [3]. mated using the swap test, which is useful in particular
The swap test, introduced in [4], provides an effi- for quantum machine learning [14].
cient probabilistic tool to compare two unknown quan- From a practical point of view, it has been shown that
tum states. It takes as input two quantum states |φi and linear optics can be used to implement the swap test,
|ψi that are not entangled and outputs 1 with probabil- using the Hong-Ou-Mandel effect [15]. The linear op-
ity 12 + 12 | hφ|ψi |2 and 0 with probability 21 − 12 | hφ|ψi |2 , tics platform is particularly attractive in quantum infor-
where hφ|ψi is the overlap between the states |φi and |ψi. mation. Indeed, it is possible to implement a universal
When the measurement outcome is 0 (resp. 1), we con- quantum computer solely with linear optical tools [16].
clude that the states were identical, up to a global phase Furthermore, the Boson Sampling model – a linear opti-
(resp. different). A circuit implementing the swap test is cal model for non-universal quantum computing – is an
represented in Fig. 1, where the matrix outstanding candidate for demonstrating the power of
quantum computers in the near-term [17], and a recent
1 1 1
H=√ (1) proposal for demonstrating quantum superiority also re-
2 1 −1 lies on linear optics [18]. In the optical implementation
is a Hadamard matrix. The swap test is a natural tool proposed in [15], two single photons in different spatial
when it comes to quantum state comparison, as it per- modes are sent at the same time through a beamsplitter.
forms a projection onto the symmetric subspace of the Measuring the intensity of the output modes gives statis-
input states Hilbert space [5–7]. It finds application in tics that can be post-processed in order to reproduce the
various quantum communication protocols [4, 8, 9]. The statistics of a swap test, where the states to be compared
product test [10–12] uses the swap test as a subroutine for are the states of the single photons. Two indistinguish-
able photons will always pass the test, while two photons
whose states have an overlap x < 1 will pass the test with
probability 12 + 21 x.
∗ Electronic address: ulysse.chabaud@gmail.com Despite the wide range of applications of the swap
† Electronic address: antoine.joux@m4x.org test and the potential for its implementation, a difficulty
2
Because the M − 1 last input qubits are in the same the swap test of order M . In the next section, we give
state, swapping them acts as the identity. This can be an alternative interpretation of the swap circuit of order
used to simplify the swap circuit of order M by replacing M in terms of a programmable projective measurement
the n layers of swap gates in Eq. (2) by the following device.
n layers S00 , . . . , Sn−1
0
, which have to be applied in this
order:
k
2O −1 III. PROGRAMMABLE PROJECTIVE
MEASUREMENT
Sk0 SWAP l2n−k , (l + 1)2n−k − 1 .
= (5)
l=0
A projective measurement with respect to a state |ψi
This reduces the total number of swap gates from M log 2
M
is a process that takes as input a state |φi and out-
to M − 1 without changing the number of ancilla qubits. puts 1 with probability | hφ|ψi |2 and 0 with probability
We now prove the optimality of the swap test of order 1 − | hφ|ψi |2 . We introduce the notion of precision of a
M under the one-sided error requirement, i.e. we show projective measurement.
that it achieves the lowest error probability for the iden-
tity testing of an input |φi , |ψi , . . . , |ψi. This identity Definition 2. Given a quantum state |ψi and > 0, a
testing is directly linked to the state comparison of |φi projective measurement with precision is a process that
and |ψi. For this purpose, we first derive a more general takes as input a quantum state |φi and outputs 1 with
result. In Ref. [19], the authors consider the problem probability P (1) and 0 with probability P (0), such that
of testing the identity of M quantum states with the |(| hφ|ψi |2 ) − P (1)| ≤ and |(1 − | hφ|ψi |2 ) − P (0)| ≤ .
promise that all the states are pairwise identical or or-
thogonal. In particular, they show that the optimal value Note that the two conditions in the previous definition
for the error probability of any identity test satisfying the are equivalent, since P (0) + P (1) = 1. It will thus suffice
one-sided error requirement is M 1
. We extend their result to consider e.g. the first condition.
to the case where the states to be compared are no longer
supposed pairwise identical or orthogonal: Theorem 2. A swap circuit of order M can be used to
1
perform a projective measurement with precision M .
Theorem 1. Under the one-sided error requirement,
any identity test of M unknown quantum states Proof. Since Pr(0, . . . , 0) = M 1
+ MM−1 | hφ|ψi |2 , we can
|ψ0 i , . . . , |ψM −1 i has an error probability at least consider all the circuit except |φi as a black box in Fig. 2,
and post-process the measurement outcomes D as fol-
M −1
1 X Y lows: if D = (0, . . . , 0), output 1, and output 0 otherwise
hψk |ψσ(k) i, (6) (Fig. 3). The setup now takes a single state |φi in input
M!
σ∈SM k=0
and outputs 1 with probability P (1) = M 1
+ MM−1 | hφ|ψi |2 ,
where SM is the symmetric group over {0, . . . , M − 1}. and 0 with probability P (0) = 1 − P (1). We have
1
|(| hφ|ψi |2 ) − P (1)| ≤ M , hence this device performs a
Proof. An identity test satisfying the one-sided error 1
projective measurement with precision M .
requirement can only be wrong when declaring identical
(outputting 1) states that were not identical. Hence, to
prove Theorem 1, it suffices to lower bound the probabil- Theorem 2 implies that given a large enough swap cir-
ity of outputting 1 for any identity test. This is done by cuit and the ability to produce many copies of a state
showing that the optimal identity test consists in a pro- |ψi, one can projectively measure any state with respect
jection onto the symmetric subspace of the input states to the state |ψi up to arbitrary precision. This preci-
Hilbert space. We detail the proof in the Appendix A. sion scales as the inverse of the number of copies. The
circuit can thus be used as a programmable projective
Applying Theorem 1 with |ψ0 . . . ψM −1 i = |φψ . . . ψi measurement device, where the programmable resource
implies that the value M 1
+ MM−1 | hφ|ψi |2 is a lower bound is the reference state |ψi whose number of copies can
for the error probability of any identity test of M states be adjusted to control the precision of the measurement
|φi , |ψi , . . . , |ψi (one copy of a state |φi and M −1 copies (Fig. 3).
of a state |ψi). With Definition 1 we directly obtain the The implementation of the swap circuit of order M
following result: is however challenging, due to the presence of many
Corollary 1. The swap test of order M has optimal er- controlled-swap gates. In order to lower the implemen-
1
ror probability M + MM−1 | hφ|ψi |2 under the one-sided er- tation requirements, we study in the next section the
ror requirement. Hadamard interferometer and show that its statistics can
be efficiently post-processed to reproduce those of a swap
The swap circuit of order M is thus optimal for quan- circuit of order M . This comes at the cost that the device
tum state comparison with an input |φi , |ψi , . . . , |ψi, un- no longer has a quantum output, which however does not
der the one-sided error requirement, since it implements matter for most applications. In particular we show that
4
Post-processing
d1
Pr(D) = |α|2 Pri (D) + |β|2 Prd (D)
(9)
= Prd (D) + | hφ|ψi |2 [Pri (D) − Prd (D)] ,
dn
Swap circuit of 0 where Pri (D) is the probability in the indistinguishable
order M=2n case and Prd (D) is the probability in the distinguishable
case. The single photon encoding maps quantum state
comparison to distinguishability of single photons. Note
that for any measurement outcome D = (d0 , . . . , dM −1 ),
we have d0 + · · · + dM −1 = M since an interferometer is
a passive device that does not change the total number
of photons. For any interferometer of size M , we prove
in Appendix B the following inequality:
1
form a M -approximate projective measurement with a
d0
post-processing of its measurement outcomes√that takes
1 time at most M · N . The lines of FG = M UG to-
d1 gether with the element-wise multiplication form a group
Post-processing
isomorphic to G.
Hn
dM-2
Proof. We use the notations of the Theorem. The
invariant factor decomposition of G gives
0
dM-1 G ' (Z/a1 Z) ⊗ · · · ⊗ (Z/aN Z) , (20)
VII. ACKNOWLEDGEMENTS 1 X
≥ Tr[|ψσ(0) . . . ψσ(M −1) i hψ0 . . . ψM −1 |]
M!
σ∈SM
We kindly acknowledge F. Grosshans and A. Olivo M −1
1 X Y
for interesting and fruitful discussions. This work has ≥ hψk |ψσ(k) i,
been supported in part by the European Union’s H2020 M!
σ∈SM k=0
Programme under grant agreement number ERC-669891 (A6)
and by the European Research Council Starting Grant where in the third line we used the expression of the
QUSCO. orthogonal projector PS onto the symmetric subspace.
8
along with properties of the tensor product of matrices where Q is a permutation matrix of order M and where in
in order to obtain the third line we have used Eq. (D1). Setting Pk (n+1) =
Q (I2 ⊗ Pk (n)) for k ∈ {0, . . . , n − 1} and Pn (n + 1) =
Hn+1 = (Hn ⊗ I2 ) H (M ) = Q (I2 ⊗ Hn ) QT H (M ) IM proves Eq. (D1) for n + 1, since these matrices are
permutation matrices of order M . This completes the
" n−1
#
Y
(M/2)
= Q I2 ⊗ Pk (n)H Pk (n) QT H (M )
T
induction and the proof of the result.
k=0
"n−1 #
Y
(M ) T
QT H (M )
=Q (I2 ⊗ Pk (n)) H I2 ⊗ Pk (n)
k=0
n−1
Y T
= [Q (I2 ⊗ Pk (n))] H (M ) [Q (I2 ⊗ Pk (n))] H (M ) ,
k=0
(D4)
[1] W. K. Wootters and W. H. Zurek, Nature 299, 802 [15] J. C. Garcia-Escartin and P. Chamorro-Posada, Physical
(1982). Review A 87, 052330 (2013).
[2] D. Dieks, Physics Letters A 92, 271 (1982). [16] E. Knill, R. Laflamme, and G. J. Milburn, Nature 409,
[3] A. Chefles, Contemporary Physics 41, 401 (2000). 46 (2001).
[4] H. Buhrman, R. Cleve, J. Watrous, and R. De Wolf, [17] S. Aaronson and A. Arkhipov, Theory of Computing 9,
Physical Review Letters 87, 167902 (2001). 143 (2013).
[5] S. M. Barnett, A. Chefles, and I. Jex, Physics Letters A [18] J. M. Arrazola, E. Diamanti, and I. Kerenidis, arXiv
307, 189 (2003). preprint arXiv:1711.02200 (2017).
[6] M. Kleinmann, H. Kampermann, and D. Bruss, Physical [19] M. Kada, H. Nishimura, and T. Yamakami, Journal of
Review A 72, 032308 (2005). Physics A: Mathematical and Theoretical 41, 395309
[7] A. Montanaro and R. de Wolf, arXiv preprint (2008).
arXiv:1310.2035 (2013). [20] A. Crespi, Physical Review A 91, 013811 (2015).
[8] J. N. de Beaudrap, Physical Review A 69, 022307 (2004). [21] A. Crespi, R. Osellame, R. Ramponi, M. Bentivegna,
[9] N. Kumar, E. Diamanti, and I. Kerenidis, Physical Re- F. Flamini, N. Spagnolo, N. Viggianiello, L. Innocenti,
view A 95, 032337 (2017). P. Mataloni, and F. Sciarrino, Nature communications
[10] F. Mintert, M. Kuś, and A. Buchleitner, Physical Review 7, 10469 (2016).
Letters 95, 260502 (2005). [22] M. Reck, A. Zeilinger, H. J. Bernstein, and P. Bertani,
[11] S. Walborn, P. S. Ribeiro, L. Davidovich, F. Mintert, and Physical review letters 73, 58 (1994).
A. Buchleitner, Nature 440, 1022 (2006). [23] N. Viggianiello, F. Flamini, M. Bentivegna, N. Spagnolo,
[12] A. W. Harrow and A. Montanaro, Journal of the ACM A. Crespi, D. J. Brod, R. Osellame, and F. Sciarrino,
(JACM) 60, 3 (2013). arXiv preprint arXiv:1710.03578 (2017).
[13] A. K. Ekert, C. M. Alves, D. K. Oi, M. Horodecki, [24] A. W. Harrow, arXiv preprint arXiv:1308.6595 (2013).
P. Horodecki, and L. C. Kwek, Physical review letters [25] R. Simion and F. W. Schmidt, Discrete Mathematics 46,
88, 217901 (2002). 107 (1983).
[14] S. Lloyd, M. Mohseni, and P. Rebentrost, arXiv preprint
arXiv:1307.0411 (2013).