Abstract
In this paper we show how the IBM superconducting chips can be a powerful tool for teaching foundations of quantum mechanics for undergraduate students (for graduates as well, in some cases). To this end, we briefly discuss about the main elements of the IBM Quantum Experience platform necessary to understand this paper, i.e., how to implement operations and single-qubit measurements. We experimentally study the dynamics of single spin systems interacting with static and time-dependent magnetic fields. First, we study the resonant behavior of a single spin coupled to a time-dependent rotating magnetic field. To end, we study the Larmor precession phenomenon. In both cases we show the theoretical and real experimental implementation. This article could be useful in introductory courses on quantum mechanics and nuclear magnetic resonance foundations, for example.
Keywords: superconducting chips; quantum mechanics; single spin systems; Larmor precession; nuclear magnetic resonance
1. Introduction
In traditional courses of quantum mechanics where we introduce the notion of single-spin dynamics, some interesting results are discussed in a theoretical way, without any experimental implementation or verification. On the other hand, simulating quantum physics is an interesting task that we can explore in the IBM Team's quantum plataform, namely, the IBM Quantum Experience (IBM-QE) [1]. From such platform we have access to a five-qubit system [2] in which we can manipulate it from unitary operations (unitary operators) and measurements. This platform has been used to experimentally confirm some theoretical results on quantum information and computation [3- 7] as well as to implement high technology quantum protocols like teleportation [8,9], among others [10- 15].
Methods to circumvent experimental limitations of teaching quantum physics have been considered in literature through simulations [16- 18], experimental proposal in quantum optics [19], nuclear magnetic systems [20] and classical implementation of quantum computers [21]. By using a different approach, in this paper we discuss how useful the IBM-QE can be in a physics teaching scenario, where we develop a didactic strategy to deal with the problem of experimentally present foundations of single-spin dynamics in presence of a magnetic field, including time-dependent fields. To this end, we first present the relevant elements that we need to know before starting the simulation of the examples we will present here. We discuss about the unitary operators that we will use in our simulations and how we can implement measurements in IBM-QE. By the way, we adopt an approach which allows us to introduce how measurement of some physical quantities are performed in a Nuclear Magnetic Resonance (NMR) experimental setup [22]. Then, we discuss about the first interesting phenomena of single-spin dynamics, namely spin resonance phenomena, associated with a spin- particle in presence of a strong static field along z-direction and a rotating magnetic field. We discuss how the resonance phenomenon emerges from a suitable choice of the rotating magnetic field frequency and how it allows us to promote transitions between “spin up” and “spin down” states of the system, even when such rotating field is weakly interacting with the system [22,23]. To conclude, we study the Larmor spin precession behavior.
2. The IBM Quantum Experience
The five-qubit IBM quantum chip is composed by five superconducting transmon qubits operating at a temperature scale around 15 mK [24- 26]. A superconducting transmon qubit is composed of two coupled Josephson junctions, with Josephson energy and capacitance [27], and shunted by an additional external capacitance , as shown in Fig. 1a. As sketched in Fig. 1b, this system presents a quantized energy levels structure , where two of these energy levels (the two lowest-energy levels) are used as an artificial qubit for quantum computation, since quantum coherence is observed in such systems [28]. Because the Josephson junctions are superconducting devices, the system is composed by a large number of Cooper pairs (a pair of electrons), where the collective effect of these pairs allows us to use a superconducting qubit as “artificial atom”. In particular, we can use it as a two-level system. For this reason, this system is not a genuine two-level quantum system, like spin-1/2 particle in presence of a magnetic field or the polarization states of light. However, the characteristics and dynamics of superconducting qubits allows us to simulate such systems. For more relevant details about the superconducting transmon qubits, we recommend the Refs [25,26,28].
(1a) Sketch of the superconducting circuit that constitutes a transmon superconducting qubit, where we have two Josephson junctions with Josephson energy and capacitive energy , connected to a external capacitance . (1b) The representation (out of scale) of the energy levels of the system, where we highlight the energy levels used as the physical qubit.
In particular, we can perform simulations and real experimental realizations from two different quantum chips, known as the IBM Q 5 Tenerife (ibmqx4) and IBM Q 5 Yorktown (ibmqx2) quantum chips. Particularly, throughout this article we implement the experiments on IBM Q 5 Yorktown quantum chip, due to the good decoherence time scale of its qubits [1]. In this section we discuss on some important elements of the IBM-QE to be considered in this paper, but more information about IBM-QE quantum chips can be obtained from a number of papers in literature [8], as well as from the own IBM-QE team beginners guide [29].
2.1. IBM-QE single-qubit operations
Single qubit operations are unitary transformations on two level systems which, in a realistic physical scenario, arise as result of a dynamics provided by Schrödinger equation
for some time dependent (or time independent) Hamiltonian . In particular, single-qubit operations can be obtained from different quantum evolutions, as in spin dynamics [20,30] or in a quantum particle in a double-well [31], for example. In this paper, the relevant single-qubit operations implementable by the IBM five-qubit chip are
where , and are free real parameters that can be adjusted in accordance with the gate to be implemented. It is possible to see that the gates and can be obtained from gate , but under experimental viewpoint the gates and can be more efficient than its counterpart obtained from . In fact, each gate can be characterized from its run-time (time associated with real pulse sequence on transmon qubits), where the run-time for can be neglected, is a gate with duration of 1 unit of gate time and has run-time of 2 units of gate time. Therefore, it is most convenient to use the gates and whenever possible.
2.2. Measuring physical quantities in a single-spin system
The measurement process in physics depends on the system under consideration [20,30,32- 34]. Here, we are interested in studying a single-spin- system driven by magnetic fields which act on it. Thus, since the system can be found in two different orthogonal states and associated with different values of the spin component, these states work as a computational basis in a Nuclear Magnetic Resonance based quantum computer [20,30]. In particular, the IBM-QE allows us to implement measurements in computational basis and , i.e., given a quantum state , the measurement outcome provides values for and . Thus, the physical quantities which we can measure in IBM-QE are constrained to a set of measurements that can be obtained from parameters and . For example, if we want to measure the expected value of the spin along z direction, we have
where , and are the spin operators defined as
Thus, it is possible to compute . In addition, if we want to compute the expected value of spin along x direction, we need to compute . It can be done if we define the operator
where one uses the relation to write
with . In quantum computation, the operator H is a Hadamard gate and it can be implemented on IBM-QE. In conclusion, it means we can measure if we implement a Hadamard gate on the state and then we measure the output state in computational basis. In a similar way, the measurement of the quantity can be done by defining the rotation operator
that represents a rotation of an angle around X-direction [23]. Thus, if we implement the operation with we get
so that we can show that , then
with . Thus, we can measure any spin component along the directions x, y and z. In addition, we can perform measurement of any physical quantity O which can be written as , where denotes a rotation of an angle around direction , from equation
3. Single-spin dynamics on IBM Quantum Experience
The spin is an internal degree of freedom of the electron that can be manipulated through external magnetic fields. In particular, for a spin- particle we have two distinct states and . These two states satisfy the eigenvalue equation
in which is the reduced Planck's constant and , where denotes the Pauli matrices for a two-level system given by (with )
so that the matrix form for the basis and reads as and , with superscript “t” denoting the transpose of a matrix.
3.1. Simulating Nuclear Magnetic Resonance phenomenon
Let us consider the coupling dynamics of a single spin- with a rotating magnetic field given by
where is the field component along the Z-direction and is a time-dependent transverse magnetic fields, given by
where is the rotating frequency of the transverse magnetic field, also known as Radio-Frequency (rf) field. Therefore, the Hamiltonian of the system is written as
where is the Larmor frequency and is the coupling intensity between the spin and the rf-field. The solution of the Schrödinger equation for the system is known and given by (See Appendix A)
where
In matrix form, we write each evolution operator as
where is a detuning between the rf-field and the Larmor frequencies, and is the effective Rabi frequency, which takes into account the effects due to the detuning [35]. It is worth to mention that the term in represents a global phase and can be neglected, as we will do from now on. In particular, here we will simulate the resonance phenomenon, where a small rf-field can be used to flip the spin state when the rf-field oscillation frequency is close to . Under this configuration, the operator becomes
and the system will evolve as
In case where the initial state is given by , we compute the time-dependence of the Z-spin component and we find
Notice that the parameter does not develop any role in the above quantity. We choose this particular state because the standard input state in IBM quantum chip is the computational state , namely the spin-up state .
To simulate the spin dynamics of the Eq. (21) we need to map the evolution operators and into the available parameters in IBM-QE. We mean, from the Eqs. (2) we need to identify the operator as and the operator as for a particular choice of the parameters , and . A first point to be highlighted is that , and are dimensionless parameters, so we need to get a correspondence between the dimensionless parameters of and with the parameters associated to the operators and , respectively. In our case, it is possible to see that and . In conclusion, would be simulated through the sequence
The quantum circuit that executes this task is shown in Fig. 2. In Fig. 2a we present the theoretical and experimental data of the spin dynamics for the case where (resonance situation). To this end, we encode our spin (to be driven by Hamiltonian in Eq. (15)) as the qubit shown in Fig. 2b. The experimental chip condition is shown in table 1, as provided by IBM team before we start the experimental procedure. In Table 1, we present the frequency of the energy gap between states and of the two-level system used in experiment, namely, , where is the difference of energy between excited state and fundamental one. In addition, it is shown the relevant quantities and associated with the natural undesired (decoherence) effects acting on the system (for more details about them, see Sec. B1 fo the Appendix B). Moreover, we present the gate and readout errors in the table. These undesired effects are different from the decoherence ones, in particular the gate error arises from the imprecise control of the pulses used to manipulate the qubit, while readout error takes into account systematic errors and experimental limitations of the evaluation process to measure the spin components of the qubit. A brief discussion on gate and readout errors is considered in Sec.2 of the Appendix B.
(2a) Theoretical (line) and experimental data (dots) of the single spin measurement at resonance (as multiple of ). In our experiment we set shots. (2b) Circuit implemented on IBM Q 5 Yorktown chip (ibmqx2), where we highlight the qubit used in experiment (continuum blue line) while the rest of the qubit were disregarded during the experiment (dashed light red lines). The magenta box represents a measurement in computational basis.
Physical parameters obtained from last calibration before the experimental implementation shown in Fig. 2. For this experiment, the calibration date is 2019-05-24 08:04:12 AM. See Appendix B for more details about the physical meaning of each quantity in this table.
After implementing the unitary operations (which simulate the dynamics), we measure the Z-spin component in order to see some spin flip in the system (as expected in resonance situation). Up to a small experimental error, the experimental results show a good compatibility with the theoretical expected values. The error bar is computed from relation [36] , where N is the number of experimental shots and . It is important to justify here the choice of the qubit as our working system. As discussed in Appendix B, the scale and times shown in Table 1 are related with the timelife of the coherence in system, so the quantum gates should be implemented during a computation run time and . Typically, the time required to implement each gate is of the order of 10 ns, so the circuits used in this manuscript are implemented within a computation run time of the order of few tens of nanoseconds [37,38]. Consequently, in our particular experiment we do not need to worry with the decohering effects acting on the system. On the other hand, the gate and readout errors are important for our discussion. In order to minimize these errors in our experiment, we used the physical qubit because it has the best (smallest) gate and readout errors. Eventually, one obtains a different result if one chooses another option. In particular, if we choose the physical qubit , it is not expected a good compatibility of our results with the theoretical expected values.
3.2. Spin precession
Now, as a second application, we discuss the experimental simulation of the Larmor precession phenomenon. Let us consider the system at the initial state
where . If the system is driven by a time-independent magnetic field along z-direction, i.e., , the associated Hamiltonian is read as
the evolved state of the system will be given by (up to a global phase)
where is the evolution operator. Now, by computing the behavior of the physical quantities defined in Eqs. (3), (6) and (9), we get
In order to see the precession behavior, if we define the spin vector in xy-plane as
so that we use the Eqs. (27) and we get
The geometrical representation of is a spinning vector around z-axis (in the xy-plane) and its norm is . Therefore, when we define the spin vector we get
since . The geometrical representation of is shown in Fig. 3a. For this reason, we call such dynamics Larmor spin precession or spin precession.
(3a) Sketch of a single-spin inside a static magnetic field along Z-direction, where the precession behavior is highlighted. (3b) Circuit used for each dynamics and measurement implemented on IBM Q 5 Yorktown chip (ibmqx2), where we highlight the qubit used in experiment (continuum blue line) while the rest of the qubits are disregarded during the experiment (dashed light red lines). The magenta box represents a measurement in computational basis and provides us the probabilities .
To simulate such dynamics, we need to prepare the initial input state , then we implement the evolution as provided by the evolution operator . Then, we measure the spin component along directions x, y and z. Thus, the circuit which simulates the spin precession is shown in Fig. 3 and we can build it following three steps:
-
The initial state: As mentioned, the IBM-QE has a natural input state given by , so any algorithm input state should be achieved from it. In particular, the initial state can be obtained from through the unitary operation
The above unitary operator is obtained from the gate in Eq. (2) if we set . Thus, we have .
-
The evolution: As previously discussed, the evolution as provided by operator can be achieved through the gate (up to a global phase) whenever we set .
-
The measurement: The last circuit step is the measurement. To measure the z-spin component we do not need to implement rotations, since the natural measurement basis of the IBM-EQ is the computational basis (“spin-up ” and “spin-down” basis in our case). The spin measurement along x and y direction are obtained as discussed in Sec. 2.2, so we need to implement a Hadamard (H) gate and gate to measure in x and y basis, respectively.
The experiment of the precession spin was implemented with same qubit as in previous experiment, but with new physical parameters as shown in Table 2. In experiment we have two dimensionless parameters to be adjusted, namely the parameter associated with initial state and the quantity due to the time-dependence of the operator . Thus, we choose two values of and we experimentally study the behavior of the physical quantities defined in Eq. (27) as function of . Since we need to start the protocol with the same state for each measurement, we set the same parameter in gate for each circuit of the Fig. 3b, while we vary the parameter of the gate used to encode the dimensionless value of . Given a same initial for all experiments, each circuits in figures provides us the probabilities values and , then we obtain a set of experimental values of the quantities from equation
Physical parameters obtained from last calibration before the experimental implementation shown in Fig. 4. For this experiment, the last calibration date is 2019-05-29 08:07:25 AM. See Appendix B for more details about the physical meaning of each quantity in this table.
Therefore, it allows us to compare the experimental result with theoretical values given in Eq. (27) and the results are shown in Fig. 4. Again, we compute the error bar for each circuit from relation [36] . Thus, we can see the good agreement between theoretical predictions and experimental data.
Spin measurement (in multiple of ) along the direction x (dashed black curves), y (dashed red dot curves) and z (continuum blue curves) as function of for the choices (4a) and (4b) . In our experiment we set shots and we implement the circuit on IBM Q 5 Yorktown chip (ibmqx2). Points denote the experimental data obtained from IBM-QE platform.
4. Conclusion
Here we have presented a didactic proposal which can be used to present a more consistent study on quantum single-spin dynamics, where we discussed how to remotely implement its experimental realization in a superconducting quantum processor. To this end, we encourage the use of the IBM-QE platform as a resource for teaching quantum mechanics from an experimental approach, in completeness with the theoretical one. Here we have shown the required elements (quantum gates and measurement) to study single-spin dynamics from IBM-QE systems. As a demonstration of how useful the IBM-QE platform can be, we discuss about two particular and interesting dynamics of single-spin system. As a first example, we have discussed about the resonance phenomena in systems composed of nuclear spins, with high applicability in nuclear magnetic resonance based quantum technologies. To conclude, we have studied the Larmor precession phenomena. Both applications could be experimentally verified. It is worth to highlight that both experiments were implemented in a relatively short time, for our case, in average, it took between 3 and 10 minutes for getting the experimental data file for each execution (each point of the graph).
The single-qubit dynamics studied in this paper can be implementable through different physical systems. For example, by using the photon polarization, a number of half-wave plate and quarter-wave plate can be used to simulate the dynamics. In this system, the readout process can be done through state tomography of the photon polarization. However, because this system needs a laboratory with high technology electronic devices, such laboratories are not accessible for a large number of universities. A second possibility of physical system, which can implement the experiment discussed here can be, is a NMR experimental setup. However, these system are orders of magnitude more expensive than optical ones. Therefore, the IBM-QE project is a possibility of experimental realizations on quantum information and computation for a number of universities around the world.
Acknowledgments
ACS acknowledges financial support from the Brazilian agencies Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq), Brazilian National Institute of Science and Technology for Quantum Information [CNPq INCT-IQ (465469/2014-0)] and the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES) (Finance Code 001). We are extremely grateful to IBM-QE project and to IBM-QE team for providing the experimental data used in this manuscript. To end, it is important to mention that the results and discussions expressed in this manuscript are the viewpoint of the authors and do not reflect the official policy or position of IBM or the IBM-QE team.
Supplementary material
The following online material is available for this article:
Appendix A - Exact solution for spin- dynamics in a rotating magnetic field.
Appendix B - Non-unitary effects in superconducting transmon qubits.
References
-
[1] https://quantum-computing.ibm.com/composer
» https://quantum-computing.ibm.com/composer - [2] B. Schumacher, Phys. Rev. A 51, 2738 (1995).
- [3] M. Berta, S. Wehner and M.M. Wilde, New J. Phys. 18, 073004 (2016).
- [4] D. García-Martín and G. Sierra, Journal of Applied Mathematics and Physics 6, 1460 (2018).
- [5] R.P. Rundle, P.W. Mills, T.Tilma, J.H. Samson and M.J. Everitt, Phys. Rev. A 96, 022117 (2017).
- [6] G.W. Dueck, A. Pathak, M. Mazder Rahman, A. Shukla and A. Banerjee, arXiv:1810.00129 (2018).
- [7] K. Das and A. Sadhu, arXiv:1810.03390 (2018).
- [8] A.C. Santos, Rev. Bras. Ensino Fís. 39, e1301 (2017).
- [9] S. Fedortchenko, arXiv:1607.02398 (2016).
- [10] N.N. Hegade, A. Das, S. Seth and P.K. Panigrahi, arXiv:1904.12187 (2019).
- [11] S. Mahanti, S. Das, B.K. Behera and P.K. Panigrahi, Quantum Inf. Process. 18, 219 (2019).
- [12] S.I. Doronin, E.B. Fel'dman and A.I. Zenchuk, Quantum Inf. Process. 19, 68 (2020).
- [13] S.J. Devitt, Phys. Rev. A 94, 032329 (2016).
- [14] A. Zhukov, S. Remizov, W. Pogosov and Y.E. Lozovik, Quantum Inf. Process. 17, 223 (2018).
- [15] O. Viyuela, A. Rivas, S. Gasparinetti, A. Wallraff, S. Filipp and M.A. Martín-Delgado, arXiv:1607.08778 (2018).
- [16] J.R. Merrill, Am. J. Phys. 40, 138 (1972).
- [17] G. Benenti and G. Strini, Am. J. Phys. 76, 657 (2008).
- [18] J.P. Grivet, Am. J. Phys. 61, 1133 (1993).
- [19] J. Skaar, J.C. García Escartín and H. Landro, Am. J. Phys. 72, 1385 (2004).
- [20] T.F. Havel, D.G. Cory, S. Lloyd, N. Boulant, E.M. Fortunato, M.A. Pravia, G. Teklemariam, Y.S. Weinstein, A. Bhattacharyya and J. Hou, Am. J. Phys. 70, 345 (2002).
- [21] Y. Vianna, M.R. Barros and M. Hor-Meyll, Am. J. Phys. 86, 914 (2018).
- [22] I. Oliveira, R. Sarthour Jr, T. Bonagamba, E. Azevedo and J.C. Freitas, NMR quantum information processing (Elsevier, Oxford, 2011).
- [23] M.A. Nielsen and I.L. Chuang, Quantum Computation and Quantum Information: 10th Anniversary Edition (Cambridge University Press, New York, 2011), 10th ed.
-
[24] https://www.research.ibm.com/ibm-q/learn/what-is-quantum-computing/
» https://www.research.ibm.com/ibm-q/learn/what-is-quantum-computing/ - [25] J. Koch, T.M. Yu, J. Gambetta, A.A. Houck, D.I. Schuster, J. Majer, A. Blais, M.H. Devoret, S.M. Girvin and R.J. Schoelkopf, Phys. Rev. A 76, 042319 (2007).
- [26] J.A. Schreier, A.A. Houck, J. Koch, D.I. Schuster, B.R. Johnson, J.M. Chow, J.M. Gambetta, J. Majer, L. Frunzio, M.H. Devoret et al., Phys. Rev. B 77, 180502 (2008).
- [27] Y. Makhlin, G. Schön and A. Shnirman, Rev. Mod. Phys. 73, 357 (2001).
- [28] H. Paik, D.I. Schuster, L.S. Bishop, G. Kirchmair, G. Catelani, A.P. Sears, B.R. Johnson, M.J. Reagor, L. Frunzio, L.I. Glazman et al., Phys. Rev. Lett. 107, 240501 (2011).
-
[29] https://quantum-computing.ibm.com/supportl
» https://quantum-computing.ibm.com/supportl - [30] V. Scarani, Am. J. Phys. 66, 956 (1998).
- [31] C. Foot and M. Shotter, Am. J. Phys. 79, 762 (2011).
- [32] M.A. Millhouse and D.C. Latimer, Am. J. Phys. 81, 646 (2013).
- [33] C. Gerry and P. Knight, Am. J. Phys. 65, 964 (1997).
- [34] B. Barman and A. Petrou, Am. J. Phys. 87, 275 (2019).
- [35] C.K. Hu, J.M. Cui, A.C. Santos, Y.F. Huang, M.S. Sarandy, C.F. Li and G.C. Guo, Opt. Lett. 43, 3136 (2018).
-
[36] https://quantumexperience.ng.bluemix.net/proxy/tutorial
» https://quantumexperience.ng.bluemix.net/proxy/tutorial - [37] G. Wendin, Reports on Progress in Physics 80, 106001 (2017).
- [38] R. Barends, J. Kelly, A. Megrant, A. Veitia, D. Sank, E. Jeffrey, T.C. White, J. Mutus, A.G. Fowler, B. Campbell et al., Nature 508, 500 (2014).
Publication Dates
-
Publication in this collection
17 Feb 2020 -
Date of issue
2020
History
-
Received
22 Oct 2019 -
Reviewed
24 Dec 2019 -
Accepted
30 Dec 2019