 Research
 Open access
 Published:
Experimenting quantum phenomena on NISQ computers using high level quantum programming
EPJ Quantum Technology volume 9, Article number: 6 (2022)
Abstract
We execute the quantum eraser, the Elitzur–Vaidman bomb, and the Hardy’s paradox experiment using highlevel programming language on a generic, gatebased superconducting quantum processor made publicly available by IBM. The quantum circuits for these experiments use a mixture of onequbit and multiqubit gates and require high entanglement gate accuracy. The results aligned with theoretical predictions of quantum mechanics to high confidence on circuits using up to 3 qubits. The power of quantum computers and highlevel language as a platform for experimenting and studying quantum phenomena is henceforth demonstrated.
1 Introduction
Recent advances in quantum engineering have brought about the realization of quantum computers that perform key quantum algorithms satisfactorily and display gigantic potentials [1, 2]. This powerful Turing machine employs quantum superposition and entanglement to perform calculations. By entangling multiple qubits together, techniques such as quantum parallelism is achieved to provide exponential speedup for quantum algorithms over classical ones. Despite prospective impacts, it is tremendously difficult to build a practical quantum computer that is faulttolerant [3]. The main technical obstacle lies in the fact that a quantum state is fragile to noise. It is hard to engineer a quantum system that is both wellcontrolled and longlived. Termed NISQ for Noisy Intermediate Scale Quantum [4], these prototypes are not ready for reallife applications that require complexity and precision lying beyond our current state of the art.
At the moment, the leading candidate in hardware is perhaps superconducting circuits [5]. At its heart, the qubit comprises a collective state of electrons, condensed into a single quantum state, the Cooper pairs. This artificial quantum object can be freely designed and engineered, conveniently controlled using microwave pulses, and scalable using established nanofabrications techniques. In this system, for example of a charge qubit [6], the quantum superposition is realized by a microwave pulse that places the tiny superconducting island at a potential that supports both N and \(N+1\) number of charges at the same time. This action is equivalent to a beamsplitter in a Mach–Zehnder interferometer (MZI) that splits the photon’s route into two uncertain paths. In the quantum circuit language, this is performed by a Hadamard gate with matrix form H=\frac{1}{\sqrt{2}}\left[\begin{array}{cc}1& 1\\ 1& 1\end{array}\right]. In a transmon quantum processor [7], such as those provided by IBM [8], the error of a Hadamard gate is in the range of 10^{−3} to 10^{−4}. Designed as a universal computing platform and programmed using highlevel language through cloud access, there is a range of remarkable works performed on real devices with few qubits. They include the demonstration of important quantum algorithms [9, 10], simulation of quantum phenomena [11–16], or reproducing foundation quantum experiences [17–21].
Quantum physics is a generic theory that applies to any physical objects, such as photons, electrons, or artificial devices engineered in the lab. However, lying on the surface of a chip, the superconducting qubits have limited connectivity between neighbors. It is unclear if the entanglement of a collective quantum state induced by a metallic coupler is the same as that of genuine nature elements. In this work, we perform three fundamental experiments—those at the core of quantum physics—by programming the IBM NISQ computers. Using Python scripts written in Qiskit, we demonstrate that the quantum eraser, the Elitzur–Vaidman bomb, and the Hardy’s paradox experiments can be reproduced successfully on the same quantum processor. Originally proposed and realized in optical apparatuses, we showed that theoretically, these optical setups are equivalent to our quantum circuits. The quantum circuits are executed on real quantum computers with reasonable agreement [22]. The experimental deviations to the original results are associated with the erroneousness in the performance of the superconducting devices provided by IBM.
2 The quantum eraser
The quantum eraser experiment [23–25] is a natural extension of the doubleslit experiment that demonstrates the counterintuitive nature of quantum physics—the waveparticle duality. In Fig. 1(a, d), the duality is eavesdropped on by using the Mach–Zehnder interferometer (MZI) apparatus with a spontaneous parametric downconversion (SPDC) process. Upon passing the first beamsplitter (BS), the photon splits into an upperpath (red) and a lowerpath (blue), which indicates the “whichpath” information. These paths encounter the SPDC that generates an entangled “signalidler” photons pair for each path, which are denoted as (s) and (i) in Fig. 1(a, d), respectively. The signals arrive at the second BS to interfere and are detected by D_{1}, D_{2} detectors. The idlers are measured by D_{3} and D_{4} detectors. In Fig. 1(a), we measure them directly after the SPDC, which reveals the redpath or bluepath information by the clicking of D_{3} or D_{4}, respectively. In this case, both D_{1} and D_{2} click with equal probability, which implies that there is a loss of interference in the signal photons. By observing the whichpath information via idler photons, the interference in the signal photons is deleted; in other words, they behave as “particles.” In Fig. 1(d), the idlers are interfered with a BS before the measurement. Hence, the whichpath information is “erased.” Jointly measuring D_{1,2} and D_{3,4} yields surprising results: only D_{1} and D_{3} click coincidentally but not for D_{2} and D_{3}. It indicates that the interference in the signal photons produces a constructive signal at D_{1} and a destructive signal at D_{2}. Inversely, only D_{2} and D_{4} click coincidentally but not for D_{1} and D_{4} detectors. The interference in the signal photons generates a constructive signal at D_{2} and a destructive signal at D_{1}. Thus, by erasing the whichpath information, we observe interference in signal photons; in other words, they behave as “waves.” The waveparticle duality depends on “our action” on the entangled counterparts. Termed quantum eraser, the phenomenon is verified for photons [25–27], or surface acoustic phonons [28].
This experiment can be written in the quantum circuit language [29] as showed in Fig. 1(b, e). Similar to the role of a BS in an optical setup, the first Hadamard gate splits the first qubit’s initial state \(q_{0}\rangle =0\rangle \) into \(0\rangle \) and \(1\rangle \) to represent the whichpath information: \(0\rangle \) ↔ redpath, and \(1\rangle \) ↔ bluepath. Then, a CNOT gate entangles \(q_{0}\rangle \) with the target \(q_{1}\rangle \) qubit, which simulates the function of the SPDC. By resembling \(q_{0}\rangle \) as the signals, a second Hadamard gate is applied on it to probe the interference patterns. The outcome of this quantum eraser experiment relies on qubit \(q_{1}\rangle \), which plays the role of the idler photons. In Fig. 1(b), \(q_{1}\rangle \) is measured right after the CNOT gate such that the whichpath information can be verified. The measurement results are shown in Fig. 1(c), indicating no interference in both \(q_{0}\rangle \) and \(q_{1}\rangle \). Similarly, in Fig. 1(e), \(q_{1}\rangle \) is measured after the action of the Hadamard gate. This is equivalent to the application of a BS on idler photons in Fig. 1(d). The whichpath information is erased and interference patterns are detected in \(q_{0}\rangle \), as can be seen from Fig. 1(f). Mathematically, it is simple to verify the equivalence between the quantum circuit and the optical MZI setup. Using matrix multiplication, it is straightforward to confirm that the circuit in Fig. 1(b) changes state \(00\rangle \) to \(\frac{1}{2}(00\rangle +01\rangle +10\rangle 11\rangle \), while the circuit in Fig. 1(e) changes \(00\rangle \) to \(\frac{1}{\sqrt{2}}(00\rangle +11\rangle \), in agreement with the optical MZI setup in Fig. 1(a, d), respectively. These results are confirmed by simulation results as solid lines on Fig. 1(c, f) and agree with the original proposal in the optical apparatus. We execute these circuits on IBM’s Vigo quantum computer by programming them using Qiskit [22]. In the nonerased experiment Fig. 1(c), the measurement probabilities for \(00\rangle \), \(01\rangle \), \(10\rangle \), and \(11\rangle \) are \(25.4\pm 0.9\%\), \(25.6\pm 0.9\%\), \(22.9\pm 0.8\%\), \(26.1\pm 1.0\%\), respectively. Compared to theoretical value of 25% for each state, the experiment results are quite closely matched. Similarly in the erased experiment Fig. 1(f), the corresponding probabilities are \(47.0\pm 1.7\%\), \(2.1\pm 0.1\%\), \(2.0\pm 0.1\%\), \(48.9\pm 1.8\%\), which resemble the theoretical distribution of 50%, 0%, 0%, 50%. It is possible to estimate errors from our quantum circuits in Fig. 1(b, e) due to gate and measurement errors. Using calibration values provided by IBM [22], the uncertainty in our circuits is 3.7%. We emphasize that a classical interpretation would predict no recovery of the interference pattern in the erased case, and an equal distribution to all states in the nonerased case; this was not found. Our result, therefore, satisfactorily demonstrate the quantum nature of the IBM machines.
In the quantum circuit representation, the difference between (b) and (e) is the Hadamard gate on \(q_{1}\rangle \), which changes the measurement basis: in (b) the measurement is performed on the zbasis, while in (e) it is on the xbasis. The waveparticle duality is thus demonstrated by the choice of measurement basis. This is a feature of our proposed scheme in contrast with [29], where they encoded the wave and particle behaviors into one photon (qubit) while entangling with another ancilla photon.
3 The Elitzur–Vaidman bomb
The second experiment we address here is the interactionfree measurement, also known as the Elitzur–Vaidman bomb [30, 31]. In an optical experiment as shown in Fig. 2(a), a classical object, such as a lightsensitive bomb, is placed on one path of the MZI. Due to the nonlocality of the photon’s wavefunction, there is a probability that the bomb is detected without actually being hit by the photon, thus the name interactionfree measurement. This experiment has been verified for photon [32], electrons [33], atoms [34], as well as proposed for solidstate systems [35, 36].
Putting philosophical discussion aside, this experiment can be described as follows. In a standard MZI without the bomb, the original photon splits into an upper path and a lower path with 50% chance for each case after the first BS. It then interferes with itself at the second BS, and always lights up the constructive detector D_{2}. With the bomb however, if the photon takes the upper path, it will be absorbed by the bomb, and thus produces no clicks in the detectors. If the lower path is taken, the photon will split again with an even chance for each possibility at the second BS, resulting in clicks at D_{1} and D_{2} with 25% detection each. While the click on D_{2} is indistinguishable from the nobomb case, a click on detector D_{1} tells us that there is an active bomb residing on the upper path inside the MZI. In the latter case, we detect the existence of the bomb without touching it, hence the name “interactionfree” measurement.
This experiment is described using a quantum circuit containing two Hadamard gates together with a CNOT gate. In our setup as shown in Fig. 2(b), the first qubit represents the photon in the MZI, and the two Hadamard gates simulate the two BSs. Like the bomb that detects the photon’s quantum state inside the MZI, a CNOT gate between the two H gates is targeted on a second qubit. The value of this second qubit \(q_{1}\rangle \) indicates if the bomb has been touched or not. Let \(q_{1}\rangle =1\rangle \) means the bomb is touched, we summarize what happens in the circuit via a diagram as follows:
Even though there is a 50% probability of explosion, this scheme allows us to probe the existence of a classical object in an interactionfree manner. The efficiency rate η can be expressed by a measurement on the twoqubit system [32]
Here, \(P_{\mathrm{det}}\) is the probability of detecting the bomb without touching it, and \(P_{\mathrm{abs}}\) is the probability that the bomb explodes; or in other words, the photon is absorbed. With a 50:50 beamsplitter, the efficiency rate \(\eta = \frac{1/4}{1/4+1/2} = \frac{1}{3}\). We execute the quantum circuit using a virtual quantum machine and obtain an exact value of 1/3, shown as a dasheddotted line in Fig. 2(c). The same circuit running on real IBMQ quantum hardware at various times in August 2020 yields results that differ from each other and deviate from the theoretical value 1/3. We learn that even when mitigation error correction [37] is applied, most systems have large errors as shown with error bars in Fig. 2(c), see Table 1 for more detail for Essex, Ourense, Burlington, London, Vigo, Valencia, and x2. Especially, IBM Essex is systematically off to one side, while IBM London is off to the other side of the average value. Of all devices, the IBM Vigo and IBM Valencia achieve the best result with the smallest errors in all aspects. We emphasize that these results are obtained from an identical set of codes, and thus imply large variations in IBM’s hardware. Even with a shallow circuit as shown in Fig. 2(b), one need to be cautious and choose a proper backend for their calculations.
To qualify for “interactionfree measurement” [32], the efficiency η needs to reach 100%. In the optical setup, this efficiency can be obtained by a series of connected MZIs such that the photon repeatedly detects the bomb multiple times. In a setup with N BSs, each with reflectivity \(R=\cos ^{2}(\pi /2N)\), the photon gradually transfers from the lower to the upper halves, as shown in Fig. 3(a). After every beamsplitter, there is a dominant chance that the photon takes the lower path and avoids the bomb, and every time it does so the quantum state collapses and fully recovers at the lower path before continuing to evolve unitarily [31, 38]. After \(N1\) stages with N beamsplitters, the probability that the photon only takes the lower path becomes \([\cos ^{2}(\pi /2N)]^{N}\). Following Eq. (1), the efficiency η [32] is
The quantum circuit that simulates the series of MZIs in Fig. 3(a) is shown in Fig. 3(b) for the case \(N = 5\), which is a natural expansion from the circuit shown in Fig. 2(b). The first qubit represents the chain of MZI and the photon that pass through it. The Hadamard gate is now replaced by rotation gates in the yaxis {R}_{y}(\theta )=\left[\begin{array}{cc}cos(\theta /2)& sin(\theta /2)\\ sin(\theta /2)& cos(\theta /2)\end{array}\right]. We assume an arbitrary angle for these rotations \(R_{y,i}(\theta _{i})\), with \(i \in [1,N]\). These angles need to satisfy the condition
such that the measurement is performed on the original basis after all these rotations. In contrast to Hadamard gates, a chain of \(R_{y}(\theta _{i})\) satisfying Eq. (3) interferes \(0\rangle \rightarrow 1\rangle \), instead of \(0\rangle \rightarrow 0\rangle \). To detect the status of the photon, a chain of CNOT gates is added in between these rotation \(R_{y}\). If any of these target qubits change their value to \(1\rangle \), the photon is absorbed and the bomb explodes. The state of interested is \(00..00\rangle \); it indicates that the photon has successfully passed through the circuit without exploding the bomb. Here, we postselect out the explosion cases, i.e., the target qubits turn to \(1\rangle \). Since the CNOTs do not change the value of their control qubit \(q_{0}\), the coefficient for state \(00..00\rangle \) and \(10..00\rangle \) are \(\prod_{i=1}^{N}\cos (\theta _{i}/2)\) and \(\sin (\theta _{N}/2)\prod_{i=1}^{N1}\cos (\theta _{i}/2)\), respectively. From Eq. (1), \(\eta =\frac{P_{\mathrm{det}}}{P_{\mathrm{det}}+P_{\mathrm{abs}}}\), the efficiency becomes
It is easy to see that Eq. (2) is a special case of our result when all \(\theta _{i}\) are equal \(\frac{\pi }{N}\).
To simplify Eq. (4), we set \(\theta _{N}=\theta \). Then from Eq. (3), we have \(\theta _{i} = \frac{\pi \theta }{N1}\) for \(i\in [1,N1]\). Following the result in Fig. 2(c), the circuit is executed on the Valencia quantum computer provided by IBMQ [8, 22]. In Fig. 3(c) we show theoretical curves from Eq. (4) in solid gray, and simulations of the quantum circuit in Fig. 3(b) using a virtual machine as red dots. Experiment data from the Valencia device is shown as circular dots in different colors for \(N = 2,3,4,5\), with device errors expected at 7.2%, 10.3%, 13.8%, 19.0%, respectively. The code is executed 10 times, each with 8192 shots, and error bars are calculated based on these deviations. The measurement data fit pretty well to theory for a small number of BSs, at \(N=2\) and 3. However, running the same quantum circuit on other systems, such as London or Ourense, yields substantial errors, even with \(N = 2\) (data not shown). At larger N= 4 or 5, the experiment requires entanglement of more qubits that demands a “deeper” circuit and more gates. Our data are quite off compared to theoretical and simulation results. This is not a surprising result, as the IBM’s NISQ computers are known for noises and mostly limit to shallow circuits [9, 10, 16–21]. Finding the origin for these errors is outside the scope of this work, as it requires indepth information from the chip design, fabrication process, microwave setup, cryostat, and their interconnections. Although being unreliable with quite many errors, it is impressive that these computers reach \(\eta > 0.64\) for \(N=3\) with θ around 0.6 π, and thus satisfactorily demonstrate the interactionfree measurement. At the classical limit, we expect \(\eta = 0\), for such an effect should be impossible.
4 The Hardy’s paradox
The original Elitzur–Vaidman bomb can be extended to illustrate the Hardy’s paradox [39, 40] with the optical setup showed in Fig. 4(a). Here, the classical bomb is replaced with two quantum objects, an electron and a positron. They enter two MZIs arranged so that their path crosses, which would lead to an annihilation typically. Without the positron, the electron would always go to its constructive interference detector D_{1}, and similarly for the case of the positron that light up detector D_{4}. A detection at the destructive interference detectors D_{2} or D_{3} indicates that a counterpart is sent through the MZI. The interesting case occurs when both D_{2} and D_{3} click, which indicates that the electron and the positron collide at the crossing point. According to their nature, they must annihilate and can not trigger D_{2,3} detectors. The coincident clicks are a paradox that a local hiddenvariable theory cannot explain [39]. Nevertheless, the Hardy’s paradox has been theoretically explained in terms of weak values [41–43] and experimentally verified [44–46]. Hardy’s paradox indicates the nonlocality feature of the quantum state inside the two MZIs [47]. Nonlocality is an intriguing topic that has been realized in photons [48–51], atoms [52, 53], or superconducting circuits [54, 55].
In Fig. 4(b), the quantum circuit for this experiment is built similarly to the two previous experiments. Two qubits represent the two MZIs with rotation gates also satisfying Eq. (3) to put the qubits into their superpositions. In between the rotations, a Toffoli gate is targeted on the third qubit, revealing the quantum state of the control qubits when they are both at \(1\rangle \). Finally, the qubits are rotated back to the original basis for the measurement. With the original state denoted as \(\psi \rangle =000\rangle \), the final state after the quantum circuit is
Here, \(\theta _{i}\) is the rotation angle of the ith qubit, \(i=[0,1]\). The state of interest, called the nonlocal state, corresponds to the case when the electron and the positron enter the crosslink without an annihilation. In our setup using a \(R_{y}( \theta _{i})\) and a \(R_{y}(\pi \theta _{i})\), it is state \(000\rangle \) where the first twoqubit has value \(q_{0}=0,q_{1}=0\rangle \) and the last qubit is 0: \(q_{2}=0\rangle \). To resemble the electronpositron annihilation in the quantum circuit, we reject all states with \(q_{2}=1\rangle \) in Eq. (5) and obtain the remain probabilities from which the nonlocal probability for \(000\rangle \) is
Equation (7) is obtained from Eq. (6) by choosing \(\theta _{1}=\theta _{0}=\theta \), i.e., the two MZIs are set up identically. To show that our result is equivalent to Hardy’s original probability, we change to new variables: \(\sin \frac{\theta }{2}= \frac{\sqrt{\alpha \beta }}{\sqrt{1 \vert \alpha \beta \vert }}\) and \(\cos \frac{\theta }{2}= \frac{ \vert \alpha \vert  \vert \beta \vert }{\sqrt{1 \vert \alpha \beta \vert }}\). Equation (7) becomes
which is Eq. 20 in Ref. [40]. The two approaches: the original calculation [40] and the quantum circuit, are indeed equivalent, which yield a maximum value \(\gamma =\frac{1}{2}(5\sqrt{5}11) \approx 0.090\) at \(\theta = 0.575\pi \). In Fig. 4(c), data from IBMQ Vigo are directly compared to theoretical result Eq. (6), which show similar shapes of quite large error bars. These results are fully plotted in 3D as a function of the two beamsplitters’ angles in Fig. 4(d) for theory and (e) for experiment. The maximum nonlocality probability γ measures at \(0.119\pm 0.015\) around \(\theta _{0} = \theta _{1} = \theta = 0.533\pi \), slightly larger than the value 0.090 estimated by Eq. (8) at \(\theta _{0} = \theta _{1} = \theta = 0.575\pi \). This is the best result obtained by executing the quantum circuit in Fig. 4(b) multiple time on various IBM’s quantum devices. Once again, the IBM quantum computer reproduces the Hardy’s paradox reasonably well with decent precision, especially with a Toffoli gate that demands complicated technical details.
5 Discussion and conclusion
The three chosen experiments all stemmed from the seeming nondefiniteness of quantum observables [30, 41, 56, 57]. Inside an MZI where the photon’s route is uncertain, it is the premise for restoration of the interference patterns in the eraser experiment, for the detection without interaction with the bomb, and for the collision at the crosslink of the electronpositron pair without an annihilation. As shown in Fig. 1(a), Fig. 2(a), Fig. 4(a), these MZI apparatus are quite similar, but a slight variation in the experiment setup reveals profound quantum phenomena. Using an equivalent language, the quantum circuits showed in Fig. 1(b), Fig. 2(b), Fig. 4(b) are also quite similar. Indeed, Fig. 1(b) and Fig. 2(b) are identical, implying a connection between the quantum eraser experiment and the Elitzur–Vaidman bomb. To see the similarity between the optical setup and a superconducting quantum processor, we should think of photon travels inside the MZI as a function of time. In the quantum circuit model, the quantum state evolves as a function of time under a series of gate actions, as we read it from left to right. In the original optical setup, these experiments explore the nonlocality of the photon path. In the superconducting setup, there is no spatial separation between the two eigenstates. Instead, the variable here is the charge number for charge qubits.
In 2020, our experiments are performed on some of IBM’s quantum backends, namely Athens, Burlington, Essex, London, Ourense, Valencia, Vigo, and x2. These 5 qubit processors are of standard transmon design [7, 8] with lifetime T1 and decoherence time T2 are in the range of 50–150 μs, see Table 2 for more detail. They are equipped with an universal set of gates with fidelity in the range of 99%. In their most popular layout, the center qubit in the Tshape processors like Vigo or Valencia has the most connectivity: it is in direct connection to three other ones. Although our quantum circuits are compiled from standard gates such as H, CNOT, or \(R_{y}\), they are translated into the devices’ physical gates denoted U1, U2, and U3. As noise arise from any possible sources, performance of these devices complicatedly depends on the chip design, fabrication process, cryostat setup, which are not available to end users. An indepth analysis of these error is outside the scope of our work, but we do employ certain techniques to manage error and achieve reasonable results. Firstly, the fidelity of a circuit is estimated as the product of fidelities of applied gates given in that run, and the error of an experiment can be deduced thereafter. Secondly, the quality are tightly controlled as performances of these devices can fluctuate. Although calibrated daily, the data can suddenly be bad. Thirdly, the best qubits of the best machine are handpicked for our circuit. Not all qubits are equal, and their qualities vary as IBM constantly updates their system. Finally, we applied mitigation error correction [37] extensively. Many times, this errorcorrection scheme can vastly improve our results. In any case, IBM’s quantum computers are state of the art devices that offer an unprecedented opportunity to study the quantum world.
A central issue with gedanken quantum experiments is that they are difficult to verify on physical systems. The three experiments in our work have been realized on optical or atomic setups, the popular testbeds for foundation quantum experiments. However, we are unaware of any work that reproduces them on superconducting circuits, where the quantum object is the macroscopic collective state of condensates electron pairs. Replicating these experiments on the IBM quantum computers identifies two important aspects. First, it benchmarks the quantum nature of the IBM machines. Our results show that all experiments are reproduced with decent precision. The quantum eraser achieves pretty high accuracy, while the original bomb experiments yield results that fluctuate with devices, with the best machines being IBMQ Vigo and IBMQ Valencia. However, the accuracy is lost when the quantum circuit contains more than 4 qubits. Using the same codes and quantum circuit, we could not reproduce the Elitzur–Vaidman bomb in the general case when the qubit number is larger than 3. Apparently, we need gates with high fidelity, especially the 2 qubit gates that produce entanglement. Second, the IBM machines provide a generalpurpose testbed for quantum experiments. Remotely controlled using a highlevel language, we can reproduce a range of core quantum experiments in one run. By submitting a single job to the IBM quantum cloud, we execute both the quantum eraser, the Elitzur–Vaidman bomb, and the Hardy’s paradox at once on a single solidstate device. More specially, we tune a wide range of parameters and thus verify our calculations as shown in the general bomb experiment in Fig. 3(c). Similarly, in the Hardy’s paradox experiment, our result spans the full range of \(\theta _{0}\), \(\theta _{1}\), which requires a tremendous amount of work in the optical setup. Previously, such experiments needed weeks for the demonstration. As shown in our calculations above, we emphasize the equivalent between the quantum circuit language and the traditional analysis.
In summary, we present quantum circuits for the quantum eraser, the Elitzur–Vaidman bomb, and the Hardy’s paradox experiments and prove that they are equivalent to the original setups using optical apparatuses. We further execute them on the IBM quantum computers and obtain reasonable results. While the current NISQ devices allow for the implementation of these experiments with few qubits, it is reasonable to demonstrate these proofofprinciple experiments as the testbed for testing quantum mechanics using noisy quantum computers.
Availability of data and materials
The datasets supporting the conclusions of this article are available in the Github repository [22].
Abbreviations
 BS:

Beamsplitter
 MZI:

Mach–Zehnder interferometer
 SPDC:

spontaneous parametric downconversion
 NISQ:

Noisy Intermediate Scale Quantum
References
Arute F et al.. Quantum supremacy using a programmable superconducting processor. Nature. 2019;574:505.
Zhong HS et al.. Quantum computational advantage using photons. Science. 2020;370:1460.
DiVincenzo DP. The physical implementation of quantum computation. Fortschr Phys. 2000;48:771.
Preskill J. Quantum computing in the NISQ era and beyond. Quantum. 20180730.
Krantz P, Kjaergaard M, Yan F, Orlando TP, Gustavsson S, Oliver WD. A quantum engineer’s guide to superconducting qubits. Appl Phys Rev. 2019;6:021318.
Nakamura Y, Pashkin YuA, Tsai JS. Coherent control of macroscopic quantum states in a singleCooperpair box. Nature. 1999;398:786.
Koch J, Yu TM, Gambetta J, Houck AA, Schuster DI, Majer J, Blais A, Devoret MH, Girvin SM, Schoelkopf RJ. Chargeinsensitive qubit design derived from the Cooper pair box. Phys Rev A. 2007;76:042319.
The IBM Quantum Experiences is electronically accessed at https://quantumcomputing.ibm.com. 2021.
Amico M, Saleem ZH, Kumph M. Experimental study of Shor’s factoring algorithm using the IBM Q Experience. Phys Rev A. 2019;100:012305.
Mandviwalla A, Ohshiro K, Ji B. Implementing Grover’s algorithm on the IBM quantum computers. In: 2018 IEEE international conference on big data (big data). 2018. p. 2531.
Casanova J, Mezzacapo A, Lamata L, Solano E. Quantum simulation of interacting fermion lattice models in trapped ions. Phys Rev Lett. 2012;108:190502.
Barends R, Lamata L, Kelly J, GarcıaAlvarez L, Fowler AG, Megrant A, Jeffrey E, White TC, Sank D, Mutus JY, Campbell B, Chen Y, Chen Z, Chiaro B, Dunsworth A, Hoi IC, Neill C, O’Malley PJJ, Quintana C, Roushan P, Vainsencher A, Wenner J, Solano E, Martinis JM. Digital quantum simulation of fermionic models with a superconducting circuit. Nat Commun. 2015;6:7654.
Arguelles CA, Jones BJP. Neutrino oscillations in a quantum processor. Phys Rev Res. 2019;1:033176.
Martinez EA, Muschik CA, Schindler P, Nigg D, Erhard A, Heyl M, Hauke P, Dalmonte M, Monz T, Zoller P, Blatt R. Realtime dynamics of lattice gauge theories with a fewqubit quantum computer. Nature. 2016;534:516.
Fitzpatrick M, Sundaresan NM, Li ACY, Koch J, Houck AA. Observation of a dissipative phase transition in a onedimensional circuit QED lattice. Phys Rev X. 2017;7:011016.
Kandala A, Mezzacapo A, Temme K, Takita M, Brink M, Chow JM, Gambetta JM. Hardwareefficient variational quantum eigensolver for small molecules and quantum magnets. Nature. 2017;549:242.
GarciaMartin D, Sierra G. Five experimental tests on the 5qubit IBM quantum computer. J Appl Math Phys. 2018;6:1460.
Sisodia M. Comparison the performance of fivequbit IBM quantum computers in terms of Bell states preparation. Quantum Inf Process. 2020;19:214.
Schwaller N, Dupertuis MA, JaverzacGaly C. Evidence of the entanglement constraint on waveparticle duality using the IBM Q quantum computer. Phys Rev A. 2021;103:022409.
Ku HY, Lambert N, Chan FJ, Emary C, Chen YN, Nori F. Experimental test of nonmacrorealistic cat states in the cloud. npj Quantum Inf. 2020;6:98.
Devitt SJ. Performing quantum computing experiments in the cloud. Phys Rev A. 2016;94:032329.
The code in this work can be accessed at: https://github.com/mx73/TestingQMonNISQ.
Ma XS, Kofler J, Zeilinger A. Delayedchoice gedanken experiments and their realizations. Rev Mod Phys. 2016;88:015005.
Scully MO, DrL̆l K. Quantum eraser: a proposed photon correlation experiment concerning observation and “delayed choice” in quantum mechanics. Phys Rev A. 1982;25:2208.
Kim YH, Yu R, Kulik SP, Scully MO, Shih Y. Delayed “choice” quantum eraser. Phys Rev Lett. 2000;84:1.
Kaiser F, Coudreau T, Milman P, Ostrowsky DB, Tanzilli S. Entanglementenabled delayedchoice experiment. Science. 2012;338:637.
Walborn SP, Terra Cunha MO, Padua S, Monken CH. Doubleslit quantum eraser. Phys Rev A. 2002;65:033818.
Bienfait A, Zhong YP, Chang HS, Chou MH, Conner CR, Dumur E, Grebel J, Peairs GA, Povey RG, Satzinger KJ, Cleland AN. Quantum erasure using entangled surface acoustic phonons. Phys Rev X. 2020;10:021055.
Ionicioiu R, Terno DR. Proposal for a quantum delayedchoice experiment. Phys Rev Lett. 2011;107:230406.
Elitzur AC, Vaidman L. Quantum mechanical interactionfree measurements. Found Phys. 1993;23:987.
Vaidman L. The meaning of the interactionfree measurements. Found Phys. 2003;33:491.
Kwiat P, Weinfurter H, Herzog T, Kasevich MA, Zeilinger A. Interactionfree measurement. Phys Rev Lett. 1995;74:4763.
Turner AE, Johnson CW, Kruit P, McMorran BJ. Interaction free measurement with electrons. Phys Rev Lett. 2021;127:110401.
Robens C, Alt W, Emary C, Meschede D, Alberti A. Atomic “bomb testing”: the Elitzur–Vaidman experiment violates the Leggett–Garg inequality. Appl Phys B. 2017;123:11.
Chirolli L, Strambini E, Giovannetti V, Taddei F, Piazza V, Fazio R, Beltram F, Burkard G. Electronic implementations of interactionfree measurements. Phys Rev B. 2010;82:045403.
Paraoanu GS. Interaction free measurements with superconducting qubits. Phys Rev Lett. 2006;97:180406.
Temme K, Bravyi S, Gambetta JM. Error mitigation for shortdepth quantum circuits. Phys Rev Lett. 2017;119:180509.
Misra B, Sudarshan ECG. The Zeno’s paradox in quantum theory. J Math Phys. 1977;18:756.
Hardy L. Quantum mechanics, local realistic theories, and Lorentzinvariant realistic theories. Phys Rev Lett. 1992;68:2981.
Hardy L. Nonlocality for two particles without inequalities for almost all entangled states. Phys Rev Lett. 1993;71:1665.
Aharonov Y, Botero A, Popescue S, Reznik B, Tollaksen J. Revisiting Hardy’s paradox: counterfactual statements, real measurements, entanglement and weak values. Phys Lett A. 2002;301:130–8.
Kedem Y, Vaidman L. Modular values and weak values of quantum observables. Phys Rev Lett. 2010;105:230401.
Ho LB, Imoto N. Full characterization of modular values for finitedimensional systems. Phys Lett A. 2016;380:2129–35.
Irvine W, Hodelin J, Simon C, Bouwmeester D. Realization of Hardy’s thought experiment with photons. Phys Rev Lett. 2005;95:030401.
Lundeen JS, Steinberg AM. Experimental joint weak measurement on a photon pair as a probe of Hardy’s paradox. Phys Rev Lett. 2009;102:020404.
Yokota K, Yamamoto T, Koashi M, Imoto N. Direct observation of Hardy’s paradox by joint weak measurement with an entangled photon pair. New J Phys. 2009;11:033011.
Brunner N, Cavalcanti D, Pironio S, Scarani V, Wehner S. Bell nonlocality. Rev Mod Phys. 2014;86:419.
Aspect A, Dalibard J, Roger G. Experimental test of Bell’s inequalities using timevarying analyzers. Phys Rev Lett. 1982;49:1804.
Fedrizzi A, Ursin R, Herbst T, Nespoli M, Prevedel R, Scheidl T, Tiefenbacher F, Jennewein T, Zeilinger A. Highfidelity transmission of entanglement over a highloss freespace channel. Nat Phys. 2009;5:389.
White AG, James DFV, Eberhard PH, Kwiat PG. Nonmaximally entangled states: production, characterization, and utilization. Phys Rev Lett. 1999;83:3103.
Luo YH, Su HY, Huang HL, Wang XL, Yang T, Li L, Liu NL, Chen JL, Lu CY, Pan JW. Experimental test of generalized Hardy’s paradox. Sci Bull. 2018;63:1611.
Matsukevich DN, Maunz P, Moehring DL, Olmschenk S, Monroe C. Bell inequality violation with two remote atomic qubits. Phys Rev Lett. 2008;100:150404.
Hofmann J, Krug M, Ortegel N, Gerard L, Weber M, Rosenfeld W, Weinfurter H. Heralded entanglement between widely separated atoms. Science. 2012;337:72.
Neeley M, Bialczak RC, Lenander M, Lucero E, Mariantoni M, O’Connell AD, Sank D, Wang H, Weides M, Wenner J, Yin Y, Yamamoto T, Cleland AN, Martinis JM. Generation of threequbit entangled states using superconducting phase qubits. Nature. 2010;467:570.
DiCarlo L, Reed MD, Sun L, Johnson BR, Chow JM, Gambetta JM, Frunzio L, Girvin SM, Devoret MH, Schoelkopf RJ. Preparation and measurement of threequbit entanglement in a superconducting circuit. Nature. 2010;467:574.
Bell JS. On the Einstein Podolsky Rosen paradox. Physics. 1964;1:195–200.
Kochen S, Specker EP. The problem of hidden variables in quantum mechanics. J Math Mech. 1967;17:59–87.
Acknowledgements
We would like to thank Nguyen Hai Chau for the fruitful discussions.
Funding
This work was supported by JSPS, Japan KAKENHI Grant Number 20F20021.
Author information
Authors and Affiliations
Contributions
The programming and initial data analysis was performed by TMD. Theoretical calculation are done by all authors. The manuscript was written with contribution from all authors. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
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 licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence 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 licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Tran, D.M., Nguyen, D.V., Le, B.H. et al. Experimenting quantum phenomena on NISQ computers using high level quantum programming. EPJ Quantum Technol. 9, 6 (2022). https://doi.org/10.1140/epjqt/s40507022001261
Received:
Accepted:
Published:
DOI: https://doi.org/10.1140/epjqt/s40507022001261