Abstract
Demonstrating quantum superiority for some computational task will be a milestone for quantum technologies and would show that computational advantages are possible not only with a universal quantum computer but with simpler physical devices. Linear optics is such a simpler but powerful platform where classicallyhard information processing tasks, such as Boson Sampling, can be in principle implemented. In this work, we study a fundamentally different type of computational task to achieve quantum superiority using linear optics, namely the task of verifying NPcomplete problems. We focus on a protocol by Aaronson et al. (2008) that uses quantum proofs for verification. We show that the proof states can be implemented in terms of a single photon in an equal superposition over many optical modes. Similarly, the tests can be performed using linearoptical transformations consisting of a few operations: a global permutation of all modes, simple interferometers acting on at most four modes, and measurement using singlephoton detectors. We also show that the protocol can tolerate experimental imperfections.
Introduction
Quantum mechanics offers unprecedented possibilities to transmit and process information that have the potential to revolutionize information and communication technologies. While many such advantages are well understood theoretically, building a largescale universal quantum computer or a fullyconnected quantum internet remain formidable tasks for the notsonear future. Towards these goals, it is important and worthwhile to identify examples where quantum superiority can be achieved using physical systems realizable with current or emerging technologies.
It has been fruitful to focus on specific physical systems and search for tasks that are well suited to be deployed in such platforms and where a quantum advantage can be demonstrated. A prime example of this is linear optics, namely the set of transformations on optical modes which preserve the total photon number. Linear optics can be used to perform universal quantum computing,^{1,2,3,4} increase the precision of estimation in metrology^{5,6,7} and run efficient quantum protocols in communication complexity.^{8,9,10,11,12} On the road to achieving universal quantum computing, it has also become interesting to study specific tasks, notably Boson Sampling,^{13,14,15,16,17,18} where a computational advantage may be demonstrated by a linear optics scheme that is simpler to implement than a universal quantum computer.
Boson Sampling is a canonical example of a task suitable for quantum superiority. There, the task is to sample from the distribution that arises when a number of photons starting in some optical modes go through a circuit composed of beamsplitters and phaseshifters. While this task is in theory possible to perform by just running the corresponding linear optics circuit, it is related to some computationally hard problems in classical computation. There are other proposals for showing a quantum advantage in a computational context, including, for example, sparse commuting quantum circuits (IQP), where a randomly chosen IQP circuit is applied to a square lattice of N qubits.^{19,20,21,22,23,24} Note that both above mentioned examples perform circuits of depth at least \(\sqrt N\).
The above proposals, however, present some drawbacks. First, the real difficulty in performing these tasks in a classical computer remains unclear, since it is based on unproven conjectures. In fact, recent results^{25,26} provide much faster classical algorithms for Boson Sampling, implying that quantum superiority may need a system with a very large number of photons and optical modes. Second, while in theory we know what the linear optics system is supposed to do, one cannot verify whether the physical implementation actually works correctly or not. In other words, we have no means of testing if our linear optics system works as it should. Third, Boson Sampling or random IQP circuits do not correspond to problems required for realworld applications. Hence, finding an interesting computational task whose classical hardness is well established and which can be solved efficiently and in a verifiable way by a linear optics system remains a challenge.
Here, we deviate considerably from all previous examples and describe a fundamentally different type of computational task to achieve quantum superiority using linear optics. More precisely, we consider the task of verifying NPcomplete problems, for example verifying whether a boolean formula is satisfiable or not.
In this setting, an all powerful but untrusted prover—usually denoted as Merlin—gives a witness of the solution, for example the truth assignment that satisfies the boolean formula, to an honest but computationally bounded verifier—referred to as Arthur—who checks the validity of the witness. By definition of the complexity class NP, if a witness exists, it is always possible for Merlin to provide a proof to Arthur who can verify it in polynomial time; for example Merlin can just provide the truth assignment that satisfies the boolean formula. If no witness exists, i.e. if the formula is unsatisfiable, then Arthur will always reject no matter what Merlin sends to him. But what happens if we restrict the amount of information that can be revealed to Arthur by these proofs? Can Arthur still verify if the formula is satisfied when he receives a proof that does not reveal much information about the satisfying truth assignment? In fact, if the revealed information is sufficiently small, it is in general no longer possible for Arthur to perform an efficient verification. Thus, in the case of verification where the revealed information is restricted, it might in principle be possible that quantum proofs can be verified more efficiently than classical ones, giving rise to a computational advantage. Indeed, it was shown in Ref. ^{27} that for any NPcomplete problem of size N, Merlin can send \(O(\sqrt N )\) quantum proofs each revealing O(log N) bits of information, so that, under the promise that the proofs are not entangled with each other, they can be verified by Arthur in polynomial time on a quantum computer. On the other hand, in the classical case, we will see that any verification algorithm acting on proofs that reveal at most \(O(\sqrt N \,{\mathrm{log}}\,N)\) bits of information—as in the quantum protocol—must run in exponential time.
In this work, we show that the verification protocol of Ref. ^{27} for NPcomplete problems can be implemented using simple linearoptical circuits and photonic sources. We assume, of course, that the prover has access to a classical witness when it exists. The proof states are implemented in terms of a single photon in an equal superposition over many optical modes, while the linearoptical transformations employed in the verification can be decomposed in terms of two main operations: a global permutation of all modes, and simple interferometers acting on at most four modes. As a consequence, the experimental requirements are significantly less stringent than those needed for linearoptics quantum computing or for performing arbitrary linear optics transformations. Our results illustrate another example of a computational quantum advantage in a linear optics setting. Moreover, we show that the protocol can tolerate experimental imperfections such as limited visibility and losses.
Let us make a few remarks about our result. First, the classical hardness of the problem is based on a wellestablished and widely believed conjecture, the exponential time hypothesis,^{28} namely that the best classical algorithm for NP runs in time 2^{δN} for a constant 0 < δ ≤ 1. In fact, the strong exponential time hypothesis^{29} claims that δ = 1. Second, the validity of the quantum circuit can be easily verified by running it on instances for which we already know the answer. Third, there is a vast number of NPcomplete problems that arise naturally in all sciences and being able to verify them is an important task. Restricting the information leaked from the proofs is also a subject that has been extensively studied in the area of Zero Knowledge proofs^{30} and it is relevant in cases where privacy is important. The fact that one can perform this verification with a simple linear optics system provides more evidence of the power and versatility of linear optics. Last, we note that our task is not solved by a typical quantum circuit, but involves an interaction between two parties; hence the quantum superiority is not for solving a computational task but for verifying efficiently the solution of a computationally hard problem.
Results
Quantum verification of 2outof4 SAT
We first review the verification protocol for the NPcomplete 2outof4 satisfiability problem (2outof4 SAT) of Ref. ^{27}, which consists of three tests that Arthur must be able to perform. By definition of NP, all other problems in the class can be reduced to 2outof4 SAT with only a polynomial overhead and then verified. We will then describe how the proof states can be implemented and how each of these tests is carried out in a linearoptical setting.
In 2outof4 SAT, we are given a formula over N binary variables consisting of a conjunction of clauses, each of which contains exactly four variables. The clauses are satisfied if and only if exactly two variables are equal to 1, i.e. if x_{i }+ x_{j }+ x_{k }+ x_{l} = 2 for a clause relating the variables x_{i}, x_{j}, x_{k} and x_{l}. The problem is to decide whether there exists an assignment x = x_{1}x_{2}…x_{N} such that the formula is satisfied. We focus on the case in which the 2outof4 SAT instance meets two conditions. First, the instance must be balanced, meaning that every variable occurs in at most a constant number of clauses, and furthermore, the instance must be a PCP, i.e. either it is satisfiable or else a fraction of at most 1 − ε of the clauses should be satisfiable, for some ε > 0. These conditions can always be guaranteed when reducing the 3satisfiability (3SAT) problem to 2outof4 SAT,^{27,31} and therefore any NPcomplete problem can be reduced to an instance of 2outof4 SAT satisfying these restrictions by first reducing it to an instance of 3SAT.
In a valid verification protocol, if there exists a satisfying assignment for the instance, then a correct proof is accepted by Arthur with high probability—typically larger than 2/3. This property is called completeness. Similarly, if there is no satisfying assignment for the instance, then any proof is rejected by Arthur with high probability—again, typically larger than 2/3. This property is known as soundness. In Ref. ^{27}, it was shown that there exists a quantum verification protocol for 2outof4 SAT that is both sound and complete. In the following, we describe how this protocol can be carried out in a linearoptical setting.
State preparation
Since we are verifying NPcomplete problems, we have to assume that the prover has access to the classical witness, otherwise there would be an efficient algorithm for NP, which is highly unlikely. Then, the first ingredient in the verification protocol is the construction of the quantum proofs. Merlin sends Arthur K proofs \(\left {\psi _x} \right\rangle _1 \otimes \left {\psi _x} \right\rangle _2 \otimes \ldots \otimes \left {\psi _x} \right\rangle _K\), with \(K = O(\sqrt N )\). Each of these proofs is an Ndimensional state of the form
where x is the string satisfying the instance of the 2outof4 SAT problem. We henceforth refer to any state of this form as a proper state. Note that, using results for satisfiability solvers as outlined for instance in Ref. ^{32}, in order to verify the correctness of our circuit we can choose pairs of instances and solutions that can be efficiently generated but are still hard for a classical Arthur to solve.
Proper states are mathematically equivalent to a state of \(\left\lceil {{\mathrm{log}}_2N} \right\rceil\) qubits and therefore it can only reveal at most \(\left\lceil {{\mathrm{log}}_2N} \right\rceil\) bits of information about x. In a linearoptical setting, this state can be implemented in terms of a single photon in a superposition over N different modes as
where \(a_i^\dagger\) is the creation operator for the ith mode.
The soundness proofs of Ref. ^{27} assume that Merlin can only send states in a Hilbert space of dimension N, which in this case corresponds to the singlephoton subspace of the N modes. To ensure soundness of the verification, Arthur simply rejects the proof if he observes more than one photon in the states he measures. Indeed, in this case, for any strategy in which Merlin sends states containing n photons with probability P(n), the acceptance probability by Arthur obeys
since P (acceptn) = 0 for any n ≠ 1. This probability is maximized for P(1) = 1 and therefore we ensure that Merlin’s optimal strategy employs single photon states, in which case the soundness proof of Ref. ^{27} is valid.
It is also required that the states are not entangled with each other. There is no known general method of detecting this entanglement^{27} and therefore Arthur cannot enforce this condition through a test in his verification. We thus view this unentanglement condition as a promise on the form of the proofs produced by Merlin. Note that this requirement can be enforced if we assume that Arthur interacts with \(\sqrt N\) noncommunicating provers that do not share any entanglement.^{27} In fact, the unentanglement condition can be enforced even if there are just two noncommunicating provers that do not share any entanglement.^{33}
One way for Merlin to create the state \(\left {\psi _x} \right\rangle\) is to start with an initial state of the form
and then have N phaseshifters acting on each of the N modes which apply a phaseshift of −1 only when the corresponding bit of the classical witness x is 1. This allows Merlin to perform the transformation \(\left \psi \right\rangle \to \left {\psi _x} \right\rangle\) as desired.
Equal superposition states of the form of Eq. (4) can be created by sending a single photon through a cascade of beamsplitters (see Fig. 1). An equal superposition state over N modes can be implemented in this way using O(log N) beamsplitters resulting in a linear optics circuit of depth O(log N). Such circuits have been implemented for small N.^{34} The output modes are then sent through phaseshifters to create the proof states.
Once the proof states have been prepared, Arthur performs his verification which employs three tests: the satisfiability, uniformity, and symmetry tests. Arthur selects one of the three tests uniformly at random and decides whether to accept or reject the proof depending on the specific criterion of each test. We further describe how these tests can be performed in a linear optics setting.
Satisfiability test
In the satisfiability test, Arthur checks that the assignment x which is encoded in the quantum proofs satisfies the 2outof4 SAT instance. To do so, Arthur divides all the clauses into a constant number of blocks B_{1}, B_{2},…, B_{s} in such a way that each block contains at least Ω(N) clauses and in each block, no variable appears more than once. This partition into different blocks is guaranteed to exist because the instance is balanced. Arthur selects a block B_{r} uniformly at random from this set. He then picks a state \(\left {\psi _x} \right\rangle\) at random from the K copies and performs a permutation Π_{Sat} of the modes that groups them into the clauses corresponding to the selected block B_{r}. After the permutation, for every clause of the form x_{i }+ _{j }+ x_{k }+ x_{l}, the corresponding modes a_{i}, a_{j}, a_{k}, a_{l} have been placed in sequence beside each other. For each such set of four modes, Arthur interferes them in the circuit shown in Fig. 2.
The effect of this interferometer is to perform a mode transformation between the input modes a_{i}, a_{j}, a_{k}, a_{l} and the output modes \(a_i^\prime ,a_j^\prime ,a_k^\prime ,a_l^\prime\) given by
For a singlephoton proper state, as in Eq. (2), this relation implies that the probability of observing a photon in each of the output modes is given by
Whenever the clause is satisfied, i.e. when x_{i }+ x_{j }+ x_{k }+ x_{l} = 2, a photon will never be detected in mode \(a_i^\prime\). We refer to this mode as the satisfiability mode. If the clause is not satisfied, the probability of observing a photon in the satisfiability mode is twice the one in the other three modes.
Arthur’s criterion for acceptance is the following: he accepts the proof if and only if exactly one photon is detected and it is not detected in a satisfiability mode. This is illustrated in Fig. 3. In the honest Merlin case, the test will pass with certainty while, as shown in Ref. ^{27}, if x is not a satisfying assignment of the problem, a constant fraction of the clauses will be unsatisfied, leading to an overall constant probability of rejecting the proof, since there are Ω(N) clauses in each block. Thus, the test has perfect completeness and constant soundness.
Uniformity test
Arthur’s satisfiability test functions correctly whenever the states sent by Merlin are proper states, i.e. of the form of Eq. (2). Arthur requires an additional test to certify that the states he receives are proper states. To perform this uniformity test, Arthur first selects a random perfect matching on the set {1,2,…,N}. A perfect matching is a partitioning of the set into N/2 disjoint edges {(i_{1}, j_{1}), (i_{2}, j_{2}),…,(i_{N/2}, j_{N/2})}. For instance, {(1, 3),(2, 5),(4, 6)} is a possible matching on the set {1, 2, 3, 4, 5, 6}. For each of the K states he receives, Arthur performs a permutation of the modes such that all modes are paired according to the edges (i, j) in the matching. After the permutation, for every edge he interferes the corresponding pair of modes in a 50:50 beamsplitter and checks for photons in the outputs. The beamsplitter performs the transformation
which means that, for a proper state, the probabilities of observing a photon in each output are
Thus, whenever a photon is detected in a pair of modes \((a_i^\prime ,a_j^\prime )\), Arthur learns the value of x_{i} ⊕ x_{j}. This allows a labelling of all possible outcomes of this measurement as (i, j, b), with b = x_{i} ⊕ x_{j}.
Arthur’s uniformity test is the following: he performs the measurement described above on all K copies of the state and he accepts the proof only if there are no incompatible outcomes of the form (i, j, 0) and (i, j, 1). As before, he also requires that there is exactly one photon detected in each state and he rejects the proof if there are no collisions, i.e. photons detected for the same edge (i,j) in different copies. The test is illustrated in Fig. 4.
By choosing \(K = O(\sqrt N )\), it follows from the generalized birthday paradox^{35} that collisions will occur with high probability. In the honest case, incompatible outcomes never occur and therefore the test has constant completeness where rejection of a correct proof only occurs if there are no collisions. On the other hand, if the states are far from a proper state, it was shown in Ref. ^{27} that the test has a constant probability of rejecting the proof for any other input state and thus has constant soundness.
Symmetry test
If Arthur performs a satisfiability and a uniformity test, the only room left for Merlin to deviate from honest behaviour is to send different proper states in each of the K systems. To protect against this, Arthur needs to check that all states are equal. He can achieve this by using a SWAP test: a twooutcome measurement on a pair of states with the property that the probability of obtaining each outcome depends on the inner product of the states.
To perform the test in a linear optics setting, Arthur randomly selects two out of the K states and performs a permutation that pairs the ith mode of the first state with the ith mode of the second state for all i = 1, 2,…, N. Afterwards, each pair of modes is sent through a 50:50 beamsplitter. The output modes of each beamsplitter can be labelled as the “up” mode and the “down” mode. The interference of the two photons corresponds to a generalized version of the HongOuMandel effect^{36} and indeed it was shown in Ref. ^{37} that for any two proper input states \(\left \psi \right\rangle\) and \(\left \phi \right\rangle\) as in Eq. (2), the probability of observing a coincidence, i.e. a photon in an “up” mode and the other photon in a “down” mode, is equal to (1−〈ψϕ〉^{2})/2, the same probability of a SWAP test resulting in a ‘different state’ outcome. In particular, this implies that coincidences never occur if the states are equal.
This property allows Arthur to perform the following test for symmetry: he accepts the proof if and only if exactly two photons are detected and there are no coincidences. Note that the SWAP test is a crucial component in quantum fingerprinting^{8,38} and its implementation in a linearoptical setting has already been demonstrated in recent quantum fingerprinting experiments.^{10,11} The symmetry test is illustrated in Fig. 5.
In the honest case, the test passes with certainty and therefore it has perfect completeness, while it was shown in Ref. ^{27} that the test also has constant soundness. Overall, by selecting randomly between these three tests, Arthur can verify Merlin’s proof with perfect completeness and constant soundness, as required by a verification protocol.
For the satisfiability and symmetry tests described above, the verifier needs to randomly pick one or a pair of the K proofs on which to apply the test. Note that the verifier can pick this before the proofs arrive. One way of doing this is a K × K block switch that takes as input the K proofs, puts two random ones as the first two and leaves the remaining unchanged.
In summary, to perform the verification of 2outof4 SAT for an instance of size N, Arthur needs the following components when using spatial modes:

1.
1. \(K = O(\sqrt N )\) single photon sources.

2.
K fixed cascades of beamsplitters of depth O(log N), each preparing a single photon in an equal superposition over N modes.

3.
KN phaseshifters, one for each mode.

4.
One K × K block switch that permutes groups of N modes.

5.
K N × N switches that perform arbitrary permutations of N modes.

6.
One 2N × 2N switch that performs an arbitrary permutation of 2N modes.

7.
O(N) fourmode interferometers for the satisfiability test.

8.
O(KN) twomode interferometers for the uniformity and symmetry tests. This includes the photon number resolving detectors.
A complete setup for the verification protocol is illustrated in Fig. 6. Note that by separating the modes in time it would be possible to use a constant number of interferometers and detectors, greatly reducing the number of required components. It is also possible to optimize the required resources by using delay circuits to suitably direct the selected proofs depending on the chosen test.
In the next section, we calculate the running time of this quantum verification protocol showing that it runs in polynomial time. Note also that only \(O(\sqrt N logN)\) bits of information are revealed to the verifier about the witness x. Then, we show that any classical algorithm using proofs that reveal only \(O(\sqrt N logN)\) bits of information requires exponential time under the only assumption that there are no classical algorithms for NPcomplete problems running in time less than 2^{O(N)}.
Running time of the verification algorithm
The quantum verification procedure can be decomposed into three main steps: the preparation by the prover of the quantum states that correspond to the classical witness, a permutation circuit that the verifier uses to rearrange the optical modes according to his random choices, and interferometers running on at most four modes each. As discussed before, given knowledge of the classical witness x, each proof state can be prepared using a simple cascade of beamsplitters of size O(N) and of depth O(log N) as well as phaseshifters, while the interference circuits for the tests have constant depth and O(N) size. Let us look a bit more carefully at the permutation circuit which just spatially rearranges the modes. First, notice that all the random choices of the verifier can be made before he receives the proofs, so the entire permutation circuit can be prepared in advance. For the satisfiability and uniformity tests, we need a permutation module acting on N modes; while in the symmetry test, the permutation acts on 2N modes. Such permutations can be performed using a universal circuit of size O(N^{2}),^{39,40} but there also exist standard microelectromechanical system switches (MEMS) that perform such permutations using only O(N) adjustable mirrors. MEMS switches have been demonstrated to work for up to 1100 modes.^{41} We also need a permutation to choose one or two of the K proofs for the satisfiability and symmetry tests, which can also be performed by a switch of size \(O(K) = O(\sqrt N )\). Hence, if the proofs arrive at the same time in different spatial modes, the size of the quantum circuit is O(KN) (dominated by the state preparation).
For the running time of the quantum verification algorithm, let us consider first the case of all proofs arriving at the same time in different spatial modes. Then, we divide the algorithm into two steps: the preprocessing of the permutation circuit, which takes time O(N); and the quantum execution of the algorithm that takes time O(logN), which is the depth of the quantum circuit. Note that, using standard Chernhoff bound arguments, the verification error can be reduced to any small constant by simply repeating the protocol a constant number of times. In the case each proof comes sequentially, the running time of the quantum execution is also O(N) since we possibly need to wait until the last proof.
The states employed are each of dimension N, so the global state consisting of all copies has dimension \({\mathrm{log}}\,N^K = \gamma \sqrt N \,{\mathrm{log}}\,N\), for some small constant γ. The dimension of this state places an upper bound on the information that it contains about the classical witness x. In particular, for any proof state ρ, we have that the mutual information with the string x satisfies
In summary, we have a quantum verification procedure where the verifier takes as input a proof revealing at most \(\gamma \sqrt N \,{\mathrm{log}}\,N\) bits of information about x and can verify instances of 2outof4SAT in O(N) time.
What can we say about the running time of a classical verification algorithm receiving a proof that reveals the same amount of information? Denote by R(A) the running time of any verification algorithm acting on a classical proof ϕ with \(I(X:\phi ) \le H(\phi ) \le \gamma \sqrt N \,{\mathrm{log}}\,N\). We want to bound the asymptotic scaling of R(A) by using the verification algorithm A to produce an algorithm for 2outof4 SAT by randomly searching over all possible proofs. The algorithm is the following:

1.
Generate a random proof. From the entropy bound, the probability of guessing a correct proof is \(p_{guess}(\phi ) = 2^{  H_{min}(\phi )} \ge 2^{  H(\phi )} \ge 2^{  \gamma \sqrt N \,{\mathrm{log}}\,N}\).

2.
Repeat the verification protocol on this proof \(O(\sqrt {N\,} {\mathrm{log}}\,N)\) times and take the majority vote of the outcomes. This identifies whether or not the proof is correct except with probability \(O(2^{  \gamma \sqrt N \,{\mathrm{log}}\,N})\).

3.
Repeat the previous steps \(O(2^{\gamma \sqrt N \,{\mathrm{log}}\,N})\) times to ensure that, if it exists, a correct proof will be found with high probability. Accept if a valid proof is found, reject otherwise.
This is an algorithm for 2outof4SAT with running time \(O\left( {\sqrt N \,{\mathrm{log}}\,N2^{\gamma \sqrt N \,{\mathrm{log}}\,N}} \right)R(A)\). Under the exponential time hypothesis that algorithms for NPcomplete problems must have running time 2^{δN}, we have that
and therefore
which is exponential in the input size N for large enough N. Since we showed that the quantum verification runs in polynomial time, we conclude that there is a quantum advantage in the linearoptical verification of an NPcomplete problem with proofs revealing a restricted amount of information.
Let us now make a quick calculation to understand what order of N we would possibly need in order to show quantum superiority. Note that the constant γ comes from the uniformity test, where we need enough proofs to find a collision with high enough probability. Using standard arguments for the probability of collision we can take γ = 2 and assure a probability higher than 98%. Let us also assume the strong exponential time hypothesis, namely δ = 1. In this case, we need to make sure that a classical algorithm which runs in time exponential in \(N  2\sqrt N \,{\mathrm{log}}\,N\) remains infeasible. By taking N = 512, we have that the exponent in Eq. (7) is more than 100. Note that N is the number of optical modes for each of the \(2\sqrt N\) proofs and that each proof contains one photon. In other words, our circuit has a total of 46 photons, each one in 512 optical modes. The number of photons is comparable to the other proposals, namely Boson Sampling and IQP circuits. While the number of optical modes in our scheme is significantly larger, the depth of the linearoptical part of the circuit can be just logarithmic in N, since the permutation part can be performed with standard microelectromechanical system switches. This is of course a high level calculation and there is significant space for optimizing these parameters. On the other hand, it is important to consider experimental imperfections as well.
In the following, we discuss the role of experimental imperfections in the quantum verification scheme, showing that they can be tolerated by increasing the number of copies by a constant factor.
Experimental imperfections
In linear optics, there are three main forms of experimental imperfections: detector dark counts, limited interferometric visibility, and losses. Let us start with dark counts. For a state of N modes, where the dark count probability for each detector is p_{dark}, the probability of obtaining a single click due to a dark count is
which is negligible as long as \(N \ll 1/p_{dark}\). Typical values of the dark count probability are below 10^{−6}, whereas, as discussed, a quantum advantage can be reached for values of N many orders of magnitude smaller than 10^{6}.
Limited interferometric visibility refers to all deviations from the ideal state preparation and transformations. This will not lead to a change in the expected number of clicks, but it can cause the wrong detectors to fire. The verification protocol can then tolerate limited visibility as long as there remains a constant gap between soundness and completeness of the test, i.e., of the difference between the probability of accepting a correct proof and the one of accepting an incorrect one, since this difference can be amplified by repeating the verification a constant number of times. Note that our protocol provides such a constant gap in the case of no imperfections.
Losses in the verification are problematic for the tests as we have previously defined them, since proofs are rejected if no photons are detected. To address this, we can modify the tests to correct for this effect. Let η be the overall transmissivity of the protocol, meaning that a single photon is detected with probability η. We address the modifications to each test separately.
As stated previously, the satisfiability test acts on a single randomly chosen state and rejects if no photons are detected. In the presence of losses, this would cause the test to reject with probability 1 − η even for a correct proof. Instead, we modify the test by instead randomly selecting O(1/η) states to ensure a high probability of observing a photon in at least one state, and then performing the satisfiability test on each of them. The proof is then accepted if and only if no photons are detected in the satisfiability modes, not more than one photon is detected in each state, and there is at least one state for which a photon is detected.
Similarly, to test for symmetry, instead of randomly selecting a single pair of states, we must now randomly select O(1/η^{2}) pairs of states to ensure a high probability of having two photons in at least one pair of states, and perform the symmetry test on each pair. In this case, we accept the proof if and only if no coincidences are observed for any state, no more than two photons are detected for any pair, and there is at least one pair for which two photons are detected.
Finally, in the uniformity test, a measurement is made on all \(K = O(\sqrt N )\) states, so in this case we can compensate for the presence of losses by increasing the number of copies to \(K = O(\sqrt N /\eta )\) in order to ensure a high probability of obtaining a collision. Arthur accepts the proof if and only if no incompatible outcomes of the form (i, j, 0) and (i, j, 1) occur, at least one collision occurs, and not more than one photon is detected in any state.
Overall, these modifications to the tests lead to completeness of the verification in the presence of losses. With respect to the soundness, note that any statistics that Merlin can induce in Arthur’s measurement in the presence of losses can also be obtained in the ideal lossless case, since Merlin can just introduce the losses himself—so we recover the soundness of the lossless case.
Note also that what we want to demonstrate is a quantum circuit that verifies the NPcomplete problem correctly and from which the verifier does not get more than \(O(\sqrt N \,{\mathrm{log}}\,N)\) bits of information about the classical witness. In practice one can ensure this by just making sure that the number of detector clicks are bounded, since this is the way the verifier obtains information. It is important to remember that we are not in a cryptographic setting where we have to worry about a verifier trying to cheat by changing the circuit in order to get more information from the prover. Hence, even though we increased the number of photons by a factor 1/η^{2}, the information the verifier gets is still \(O(\sqrt N \,{\mathrm{log}}\,N)\), since most photons get lost. Of course, if we want to be even more stringent and ensure that the verifier could not get more information even if he replaces the entire circuit with a lossless one, then we can include the factor 1/η^{2} and upper bound the information as \(O\left( {\sqrt N \,{\mathrm{log}}\,N/\eta ^2} \right)\).
Discussion
We have shown that it is possible to verify NPcomplete problems using simple linear optics. This is done by reducing instances of any NPcomplete problem to a balanced instance of 2outof4 SAT. The solution is encoded into singlephoton states in a superposition across many optical modes, which are then verified by choosing randomly between three different tests. Each of these tests can be implemented using simple linear optics, namely mode permutations and interferometry of at most four modes. We have also shown that a quantum advantage can be obtained for the running time of verification algorithms of proofs that reveal a limited amount of information about the variables. This advantage only holds if the states are not entangled with each other, which we take as a promise from the prover. Overall, our results provide another example of the surprising computational power of linear optics.
Besides the advantage that we discuss in this paper, there are other features of this protocol that are appealing. One of them is the low energy expenditure of the scheme. The only energy consumption takes place in the state preparation, which uses only a few photons, and in the permutation of the modes. This is likely to be less resourceintensive than running conventional computers for the same verification. Additionally, besides thinking of the limited information of the proofs as a restriction on the verification, we can view it as a security goal of Merlin who wants to convince Arthur without revealing full information about the solution. These questions are studied in the context of zeroknowledge proofs, where verification is possible without revealing any information. However, those protocols are interactive and often very complex. Our verification scheme provides a simple alternative where only partial information is revealed while requiring no interaction.
In terms of experimental realizations of the verification protocol, as discussed before, technology is currently available to perform arbitrary permutations of large number of modes using microelectromechanical systems, which can be employed to build optical switches capable of permuting as many as 1100 modes.^{41} Since the interferometers act on a small number of modes, the entire verification circuits could in principle be built modularly from small integrated chips, which can be manufactured independently from each other. Finally, although significant progress has been made in preparing highdimensional single photon states using integrated photonics,^{34} it remains a challenge to create many such states independently for interferometric experiments. It is likely, however, that the verification can be performed using coherent states instead of single photons, in which case only a single coherent laser source would be needed which can be subsequently split into the desired modes. Indeed, as shown in Ref ^{9} given one singlephoton state and a linearoptical measurement on it, replacing the single photon with a coherent state leads to measurement statistics that are equivalent to a randomlyselected number of repetitions of the same measurement on a singlephoton state. Further work is needed to ensure that the quantum superiority is retained in this case.
Code availability
The authors declare that no code was produced or used for this study.
Data availability
The authors declare that no data was produced or used for this study.
References
 1.
Knill, E., Laflamme, R. & Milburn, G. Nature 409, 46 (2001).
 2.
D. E. Browne & T. Rudolph, Resourceefficient linear optical quantum computation, quantph/0405157 (2004).
 3.
Kok, P., Munro, W. J., Nemoto, K., Ralph, T. C., Dowling, J. P. & Milburn, G. J. Rev. Mod. Phys. 79, 135 (2007).
 4.
O’Brien, J. L. Science 318, 1567 (2007).
 5.
Giovannetti, V., Lloyd, S. & Maccone, L. Phys. Rev. Lett. 96, 010401 (2006).
 6.
Giovannetti, V., Lloyd, S. & Maccone, L. Nat. Photonics 5, 222 (2011).
 7.
Tóth, G. & Apellaniz, I. J. Phys. A Math. Theor. 47, 424006 (2014).
 8.
Arrazola, J. M. & Lütkenhaus, N. Phys. Rev. A 89, 062305 (2014).
 9.
Arrazola, J. M. & Lütkenhaus, N. Phys. Rev. A 90, 042335 (2014).
 10.
Xu, F. et al. Nat. Commun. 6, 8735 (2015).
 11.
Guan, J.Y. et al. Phys. Rev. Lett. 116, 240502 (2016).
 12.
Kumar, N., Diamanti, E. & Kerenidis, I. Phys. Rev. A 95, 032337 (2017).
 13.
Aaronson, S. and Arkhipov, A. in Proceedings of the fortythird annual ACM symposium on Theory of computing, pp. 333–342 (ACM, 2011).
 14.
Broome, M. A., Fedrizzi, A., RahimiKeshari, S., Dove, J., Aaronson, S., Ralph, T. C. & White, A. G. Science 339, 794 (2013).
 15.
Tillmann, M., Dakić, B., Heilmann, R., Nolte, S., Szameit, A. & Walther, P. Nat. Photonics 7, 540 (2013).
 16.
Crespi, A., Osellame, R., Ramponi, R., Brod, D. J., Galvao, E. F., Spagnolo, N., Vitelli, C., Maiorino, E., Mataloni, P. & Sciarrino, F. Nat. Photonics 7, 545 (2013).
 17.
Spring, J. B. et al. Science 339, 798 (2013).
 18.
Spagnolo, N. et al. Nat. Photonics 8, 615 (2014).
 19.
Boixo, S. Isakov, S. V. Smelyanskiy, V. N. Babbush, R. Ding, N. Jiang, Z. Martinis, J. M. and Neven, H. arXiv preprint arXiv:1608.00263 (2016).
 20.
Farhi, E. and Harrow, A. W. arXiv preprint arXiv:1602.07674 (2016).
 21.
Bremner, M. J., Montanaro, A. & Shepherd, D. J. Quantum 1, 8 (2017).
 22.
Bravyi, S., Gosset, D. and Koenig, R. arXiv preprint arXiv:1704.00690 (2017).
 23.
Gao, X., Wang, S.T. & Duan, L.M. Phys. Rev. Lett. 118, 040502 (2017).
 24.
BermejoVega, J., Hangleiter, D., Schwarz, M., Raussendorf, R. and Eisert, J. arXiv preprint arXiv:1703.00466 (2017).
 25.
Clifford, P. and Clifford, R. arXiv preprint arXiv:1706.01260 (2017).
 26.
Neville, A., Sparrow, C., Clifford, R., Johnston, E., Birchall, P. M., Montanaro, A. & Laing, A. Nat. Phys. 13, 1153 (2017).
 27.
Aaronson, S., Beigi, S., Drucker, A., Fefferman, B. and Shor, P. in 23rd Annual IEEE Conference on Computational Complexity, 2008, pp. 223–236 (IEEE, 2008).
 28.
Impagliazzo, R. and Paturi, R. Proc. 14th IEEE Conf. on Computational Complexity p. 237–240 (1999).
 29.
Dantsin, E. and Wolpert, A. Theory and Applications of Satisfiability Testing  SAT pp. 313–325 (2010).
 30.
Goldwasser, S., Micali, S. and Rackoff, C. SIAM Journal on Computing (1989).
 31.
Irit, D. J. ACM 54, 12 (2007).
 32.
Achlioptas, D., Gomes, C., Kautz, H. and Selman, B. in Proceedings of American Association of Artificial Intelligence (AAAI), pp. 256–301 (2000).
 33.
Harrow, A. & Montanaro, A. J. ACM 60, 3 (2013).
 34.
Heilmann, R., Gräfe, M., Nolte, S. & Szameit, A. Science 60, 96 (2015).
 35.
Knight, W. & Bloom, D. Am. Math. Mon. 80, 1141 (1973).
 36.
Hong, C., Ou, Z. & Mandel, L. Phys. Rev. Lett. 59, 2044 (1987).
 37.
GarciaEscartin, J. C. & ChamorroPosada, P. Phys. Rev. A 87, 052330 (2013).
 38.
Buhrman, H., Cleve, R., Watrous, J. & de Wolf, R. Phys. Rev. Lett. 87, 167902 (2001).
 39.
Reck, M., Zeilinger, A., Bernstein, H. J. & Bertani, P. Phys. Rev. Lett. 73, 58 (1994).
 40.
Carolan, J. et al. Science 349, 711 (2015).
 41.
Kim, J. et al. IEEE Photonics Technol. Lett. 15, 1537 (2003).
Acknowledgements
We would like to thank A. Ignjatovic for valuable discussions. J.M.A. acknowledges funding from the Singapore Ministry of Education (partly through the Academic Research Fund Tier 3 MOE2012T31009) and the National Research Foundation of Singapore, Prime Minister's Office, under the Research Centres of Excellence programme. This research was supported by the European Research Council projects QCC (I.K.) and QUSCO (E.D.)
Author information
Affiliations
Contributions
All authors contributed to the analysis and the writing of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Arrazola, J.M., Diamanti, E. & Kerenidis, I. Quantum superiority for verifying NPcomplete problems with linear optics. npj Quantum Inf 4, 56 (2018). https://doi.org/10.1038/s4153401801031
Received:
Revised:
Accepted:
Published:
Further reading

Practically Feasible Robust Quantum Money with Classical Verification
Cryptography (2019)

Experimental demonstration of quantum advantage for oneway communication complexity surpassing bestknown classical protocol
Nature Communications (2019)