Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

IBM Q Experience as a versatile experimental testbed for simulating open quantum systems

Abstract

The advent of noisy intermediate-scale quantum (NISQ) technology is changing rapidly the landscape and modality of research in quantum physics. NISQ devices, such as the IBM Q Experience, have very recently proven their capability as experimental platforms accessible to everyone around the globe. Until now, IBM Q Experience processors have mostly been used for quantum computation and simulation of closed systems. Here, we show that these devices are also able to implement a great variety of paradigmatic open quantum systems models, hence providing a robust and flexible testbed for open quantum systems theory. During the last decade an increasing number of experiments have successfully tackled the task of simulating open quantum systems in different platforms, from linear optics to trapped ions, from nuclear magnetic resonance (NMR) to cavity quantum electrodynamics. Generally, each individual experiment demonstrates a specific open quantum system model, or at most a specific class. Our main result is to prove the great versatility of the IBM Q Experience processors. Indeed, we experimentally implement one and two-qubit open quantum systems, both unital and non-unital dynamics, Markovian and non-Markovian evolutions. Moreover, we realise proof-of-principle reservoir engineering for entangled state generation, demonstrate collisional models, and verify revivals of quantum channel capacity and extractable work, caused by memory effects. All these results are obtained using IBM Q Experience processors publicly available and remotely accessible online.

Introduction

The theory of open quantum systems studies the dynamics of quantum systems interacting with their surroundings.1,2,3 In its most general formulation, it allows us to describe the out-of-equilibrium properties of quantum systems, it provides a theoretical framework to assess the quantum measurement problem, and it gives us the tools to investigate, understand and counter the deleterious effects of noise on quantum technologies. For these reasons its range of applicability is extremely wide, from solid state physics to quantum field theory, from quantum chemistry and biology to quantum thermodynamics, from foundations of quantum theory to quantum technologies.

Generally, the dynamics of open quantum systems are described in terms of a master equation, i.e., the equation of motion for the reduced density operator describing the quantum state of the system. Master equations are either phenomenologically postulated or derived microscopically from a Hamiltonian model of quantum system plus environment. Contrarily to the case of closed quantum systems, where the equation of motion describing the state dynamics is the Schrödinger equation, the general form of the master equation for an open quantum system is not known. Only under certain assumptions, known as the Born–Markov approximation, one can derive a general equation in the so called Lindblad form, able to describe the physical evolution of quantum states.1,2,3,4,5 When these assumptions are not satisfied, e.g., for strong system–environment interaction and/or long-living environmental correlations, we enter the intricate (and somewhat fuzzy) reign of non-Markovian dynamics. This consideration already illustrates how, despite its indubitable foundational nature, open quantum systems theory is still far from being completely understood and, in fact, it is peppered with unanswered questions of deep nature.

The increasing ability to coherently control an ever increasing number of individual quantum systems, together with the discovery of quantum coherence in complex biological systems,6 has brought to light several scenarios in which the Markovian assumption fails. This has in turn given rise to a proliferation of results on the characterisation of memory effects and non-Markovian dynamics.7,8,9,10 Interestingly, the cross-fertilisation of ideas from quantum information theory and open quantum systems has led to a new understanding of memory effects in terms of information backflow,11,12,13,14,15,16 namely a partial return of quantum information previously lost from the open system due to the interaction with the environment.

Experimental results on quantum reservoir engineering, including the possibility to design desired forms of non-Markovian dynamics,17,18,19,20,21,22,23,24,25 naturally lead to the question of whether or not memory effects are useful for quantum technologies, in the sense of constituting a resource for certain tasks.15,26,27,28,29,30,31 This question has not yet been satisfactorily answered. Even more remarkably, a complete understanding of non-Markovianity is still missing, as clearly illustrated in the insightful review of ref. 10

Given the considerations above, it is not surprising that in recent years a number of experiments have been proposed and realised to verify paradigmatic open quantum system models and test some of their predictions. Examples are numerous: the milestone experiment on the decoherence of a Schrödinger cat state with trapped ions is one of the first examples of engineered environment,32 followed by the open system quantum simulator of ref. 33 The latter is also the first experimental realisation of an idea that shifted our perspective about environmental noise. Following a proposal by Vertsrate et al.,34,35 experimentalists proved that, by engineering certain types of Markovian master equation, one may actually create entangled states as stationary asymptotic states of the dynamics, therefore turning dissipation and decoherence from enemies to allies of quantum technologies.33,36,37

In optical platforms, simulators of Markovian open quantum systems have been used to prove the existence of interesting phenomena, such as sudden death of entanglement38,39 and sudden transition from quantum to classical decoherence.40,41 In the same platform, experiments have shown how to engineer collisional models,19 wherein the microscopic interaction between system and environment is obtained through a sequence of collisions between the open quantum system and one or more ancillae, the latter collectively describing the environment.42 More recently, experiments in linear optics,17,18,19,21,23,24 cavity QED,43 NMR22 and trapped ions25 successfully demonstrated the engineering of non-Markovian open quantum systems and monitored the Markovian to non-Markovian crossover. Also complex quantum networks have been proposed as new systems for reservoir engineering of arbitrary spectral densities,44 and a bosonic implementation with optical frequency combs has been presented.45

Most of the experiments until now realised for simulating open quantum systems rely on the idea of analogue quantum simulator, that is a quantum system whose dynamics resemble those of another quantum system that we wish to study and understand. In contrast, a digital quantum simulator is a gate-based quantum computer which can be used to simulate any physical system, if suitably programmed.46,47

Theoretical and experimental research on open systems digital quantum simulators is only now starting to flourish.48,49,50,51,52,53 While, in principle, general algorithms for digital simulation of open quantum systems have been theoretically investigated,48,50,53 their experimental implementation poses several challenges, since the physical quantum gates depend on the experimental platform and the circuit decomposition needs to be optimised in view of gates and measurement errors as well as qubit connectivity. Therefore, the existence of general algorithms for implementing theoretically universal open quantum system simulators does not guarantee the practical implementability in a realistic experiment on a given platform.

In this paper, we demonstrate that a careful circuit decomposition allows us to experimentally implement a vast number of fundamental open quantum systems models for one and two qubits. Not only are we able to generate different classes of open quantum dynamics, namely, unital (e.g., pure dephasing dynamical maps), non-unital (e.g., amplitude damping dynamical maps), phase covariant, and non-phase covariant (e.g., Pauli dynamical maps), but also we can explore the Markovian to non-Markovian crossover, including the recently discovered examples of essential16 and eternal54,55 non-Markovianity. We implement a recently proposed non-Markovianity witness56 and we use our simulator to prove the non-monotonic behaviour of quantum channel capacity15 and extractable work,31 with implications to quantum communication and quantum thermodynamics.

Overall, our results clearly prove that even small quantum processors are versatile and robust testbeds for verifying a number of theoretical open quantum systems results and predictions, therefore paving the way to both new discoveries and a deeper understanding of one of the most fascinating and fundamental fields of quantum physics.

Results

We consider an open quantum system represented by a density operator \({\rho }_{S}\). The dynamics of the open system are described by a family \({\Phi }_{t}\) of completely positive and trace preserving (CPTP) maps, known as the dynamical map: \({\rho }_{S}(t)={\Phi }_{t}{\rho }_{S}(0)\), with \({\rho }_{S}(0)\) the initial state. The equation of motion for the state of the system is the master equation and, if the dynamical map is invertible, can be written in a time-local form

$${\dot{\rho }}_{S}(t)={{\mathcal{L}}}_{t}{\rho }_{S}(t),$$
(1)

where \({{\mathcal{L}}}_{t}\) is the time-dependent generator of the dynamics

$${\Phi }_{t}={\rm{T}}\exp \left({\int }_{\!\!0}^{t}{{\mathcal{L}}}_{\tau }\ d\tau \right),$$
(2)

with T the chronological ordering operator, and \({\Phi }_{0}={\mathbb{I}}\). Under rather general conditions,1 the generator can be written in the form

$$\begin{array}{l}{{\mathcal{L}}}_{t}{\rho }_{S}(t)=-i[{H}_{S},{\rho }_{S}(t)]+\sum _{k}{\gamma }_{k}(t)\left({V}_{k}{\rho }_{S}(t){V}_{k}^{\dagger }-\frac{1}{2}\{{V}_{k}^{\dagger }{V}_{k},{\rho }_{S}(t)\}\right).\end{array}$$
(3)

In the equation above, the first term on the r.h.s. describes the unitary dynamics, with \({H}_{S}\) the system Hamiltonian, and the second term, the dissipative dynamics induced by the interaction with the environment, with \({\gamma }_{k}(t)\) and \({V}_{k}\) the decay rates and jump operators, respectively. If the decay rates are positive and constant, i.e., \({\gamma }_{k}(t)\equiv \gamma \ \ge \ 0\), the dynamical map is a semigroup, \({\Phi }_{t+t^{\prime} }={\Phi }_{t}\circ {\Phi }_{t^{\prime} }\), and we refer to the dynamics as semigroup Markovian. Extending this definition, it is nowadays common to say that the dynamics are Markovian whenever all the decay rates \({\gamma }_{k}(t)\) are positive at all times. In this case, the dynamical map satisfies the property of CP-divisibility, namely \({\Phi }_{t}={\Phi }_{t,s}\circ {\Phi }_{s}\), with \({\Phi }_{t,s}\) a two-parameter family of CPTP maps. Non-Markovian dynamics occur, instead, whenever at least one of the decay rates becomes negative for a certain interval of time. In this case, the intermediate map \({\Phi }_{t,s}\) is not CP anymore and the dynamics is non-CP-divisible.

In the following subsections, we present experiments run on the IBM Q Experience processors simulating different types of open quantum systems dynamics, both Markovian and non-Markovian. We begin by considering an example of Markovian semigroup master equation and dynamical evolution.

Markovian reservoir engineering

For decades, noise induced by the environment has been considered the archetype enemy of quantum technologies. This is because very often the interaction between a quantum system and its surroundings leads to the fast disappearance of quantum properties, notoriously coherences and entanglement, playing a key role in providing quantum advantage. This point of view drastically changed as soon as physicists demonstrated that appropriate manipulation of an artificial environment (quantum reservoir engineering) would allow one to steer the open system towards, e.g., a maximally entangled state,33,36 hence turning upside down the perspective of the environment as an enemy.

Following the lines of ref., 33 in this subsection we experimentally simulate a semigroup Markovian master equation for a two-qubit open system having as asymptotic stationary state the Bell state \(\left|{\psi }^{-}\right\rangle =\frac{1}{\sqrt{2}}(\left|01\right\rangle -\left|10\right\rangle )\), where we indicate with \(\left|0\right\rangle\) and \(\left|1\right\rangle\) the computational basis of each qubit and we use the notation \(\left|01\right\rangle ={\left|0\right\rangle }_{1}{\left|1\right\rangle }_{2}\). This allows us to prepare a maximally entangled state as a result of the dissipative open system dynamics.

Each of the four Bell states is uniquely determined as an eigenstate with eigenvalues \(\pm\)1 with respect to \({\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\) and \({\sigma }_{x}^{(1)}\otimes {\sigma }_{x}^{(2)}\), where \({\sigma }_{x}^{(i)}\) and \({\sigma }_{z}^{(i)}\), with \(i=1,2\), are the \(x\) and \(z\) Pauli operators of qubit 1 and 2. The dissipative dynamics that pumps two qubits from an arbitrary initial state into the Bell state \(\left|{\psi }^{-}\right\rangle\) is realised by the composition of two channels that pump from the \(+1\) into the \(-1\) eigenspaces of the stabiliser operators \({\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\) and \({\sigma }_{x}^{(1)}\otimes {\sigma }_{x}^{(2)}\).

Specifically, we consider the two \(p\)-parametrised families of CPTP maps \({\Phi }_{zz}{\rho }_{S}={E}_{1z}{\rho }_{S}{E}_{1z}^{\dagger }+{E}_{2z}{\rho }_{S}{E}_{2z}^{\dagger }\), with

$$\begin{array}{l}{E}_{1z}\;=\;\sqrt{p}{{\mathbb{I}}}^{(1)}\otimes {\sigma }_{x}^{(2)}\frac{1}{2}\left({\mathbb{I}}+{\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\right),\\ {E}_{2z}\;=\;\frac{1}{2}\left({\mathbb{I}}-{\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\right)\\ \qquad\quad+\;\sqrt{1-p}\frac{1}{2}\left({\mathbb{I}}+{\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\right),\end{array}$$
(4)

and \({\Phi }_{xx}{\rho }_{S}={E}_{1x}{\rho }_{S}{E}_{1x}^{\dagger }+{E}_{2x}{\rho }_{S}{E}_{2x}^{\dagger }\), where \({E}_{1x}\) and \({E}_{2x}\) have the same form of \({E}_{1z}\) and \({E}_{2z}\) in Eq. (4), provided that we replace \({\sigma }_{x}^{(2)}\) with \({\sigma }_{z}^{(2)}\) and \({\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\) with \({\sigma }_{x}^{(1)}\otimes {\sigma }_{x}^{(2)}\).

By changing the parameter \(0\le p\le 1\) we simulate different types of open quantum system dynamics. For \(p\ll 1\), the repeated application of, e.g., \({\Phi }_{zz}\) generates a master equation of Lindblad form with jump operator operator \(V=\frac{1}{2}{{\mathbb{I}}}^{(1)}\otimes {\sigma }_{x}^{(2)}\left({\mathbb{I}}+{\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\right)\). For \(p=1\), the map \({\Phi }_{xx}\circ {\Phi }_{zz}\) generates \(\left|{\psi }^{-}\right\rangle\) for any initial state.

In Fig. 1, we show the action of the dissipative pumping maps \({\Phi }_{xx}\), \({\Phi }_{zz}\) and their composition \({\Phi }_{xx}\circ {\Phi }_{zz}\) as a function of \(p\), for a maximally mixed initial state. We compare the theoretical prediction (dashed lines) with the experimental data. Our results show a very good agreement between theory and experiment for the implementation of both the two families of maps and their composition. In the latter case, the results are more sensitive to errors because of the larger depth of the circuit implementing the composition of maps. Details on the circuit implementations and on their optimisation with respect to the specific qubit connectivity are given in Methods.

Fig. 1: Simulation of the Markovian reservoir engineering.
figure1

Every plot compares the measured overlap between the state of the system and the four Bell states (dots) with the corresponding analytical prediction for the ZZ pump (a), the XX pump (b) and their consecutive application (c). The pumps are applied to an initial maximally mixed state. The first two pumps clearly reduce the populations of the \(+1\) eigenspace of the corresponding stabiliser operator, and their composition results on a probability for the \(\left|{\psi }^{-}\right\rangle\) state around 0.94. Throughout the paper, the error bars indicating statistical errors are not shown, as they would be indistinguishable from the markers given the large number of experimental runs (see Methods).

Collisional model and essential non-Markovianity

Our second example of an open quantum system simulator deals with a class of models known as collisional models. These describe the interaction between a quantum system and its environment in terms of consecutive collisions between the system, in our case a qubit, and a sequence of environmental qubits (ancillae) in a given state. The system qubit and the \(n\)th environmental qubit interact pairwise during a time period \(\tau\). One assumes, as usual, a factorised initial state of system and environmental qubits. After the system has interacted with a given ancilla, one can trace out the ancillary degrees of freedom as it no longer affects the system’s dynamics.

For a sufficiently large number of collisions, when the ancillae are in a thermal state, one can prove that the equation of motion describing the system’s dynamics is of Gorini–Kossakowski–Sudarshan–Lindblad form.4 Interestingly, contrarily to the microscopic derivation of the Markovian master equation, this approach does not rely on Born–Markov approximation, but it automatically leads to a CPTP dynamical semigroup. Also non-Markovian master equations can be introduced in the collisional model picture, for example by allowing for the ancillae to interact with each other in a well defined manner.57,58,59

We implement experimentally an exemplary model of dynamics displaying the property of essential non-Markovianity,16 following the lines of ref. 60 As research in the field of non-Markovian open quantum systems progressed, more refined definitions of memory effects started to appear in the literature. In ref. 16 a hierarchical classification of non-Markovianity was introduced, generalising the notion of CP-divisibility. In particular, the dynamical map is said to be P-divisible if the two-parameter family \({\Phi }_{t,s}\) is positive. This is, of course, a weaker condition than CP-divisibility, since there exist maps that are P-divisible but not CP-divisible, while all CP-divisible maps are also P-divisible. We say that the dynamics is essentially non-Markovian if it is non-P-divisible, while it is weakly non-Markovian if it is non-CP-divisible but P-divisible.

We consider \(n\) ancillae initially prepared in the classically correlated state \({\rho }_{{\rm{corr}}}=\frac{1}{2}({\left|0\right\rangle }^{\otimes n}{\left\langle 0\right|}^{\otimes n}+{\left|1\right\rangle }^{\otimes n}{\left\langle 1\right|}^{\otimes n})\). The collision between the system qubit and the \(k\)th environmental ancilla is described by the unitary operator \({U}_{k}={e}^{ig\tau {\sigma }_{z}}\otimes {\left|0\right\rangle }_{k}\left\langle 0\right|+{e}^{-ig\tau {\sigma }_{z}}\otimes {\left|1\right\rangle }_{k}\left\langle 1\right|\), where \(g\) is the coupling strength. The dynamical map after \(n=t/\tau\) collisions is given by

$$\begin{array}{l}{\Phi }_{t}{\rho }_{S}={{\rm{Tr}}}_{E}[{U}_{n}\cdot \cdot \cdot {U}_{2}{U}_{1}({\rho }_{S}\otimes {\rho }_{{\rm{corr}}}){U}_{1}^{\dagger }{U}_{2}^{\dagger }\cdot \cdot \cdot {U}_{n}^{\dagger }]\\ \qquad\;={\cos }^{2}(ng\tau ){\rho }_{S}\,+\,{\sin }^{2}(ng\tau ){\sigma }_{z}{\rho }_{S}{\sigma }_{z}.\end{array}$$
(5)

We compare this dynamics to the case in which the environmental ancillae are prepared in the uncorrelated state \({\left|+\right\rangle }^{\otimes n}\). In this case, the dynamics is given by

$$\begin{array}{l}{\Phi }_{t}^{(+)}{\rho }_{S}\,=\frac{1}{2}(1+{\cos }^{n}(2g\tau )){\rho }_{S}\\ \qquad\qquad\,+\,\frac{1}{2}(1-{\cos }^{n}(2g\tau )){\sigma }_{z}{\rho }_{S}{\sigma }_{z}.\end{array}$$
(6)

In the weak-coupling case (when \(g\tau \ <\ \pi /4\)) the map in Eq. (6) gives rise to Markovian dynamics. In contrast, the map in Eq. (5) alternates intervals, with periodicity \(\pi /2\), in which it is P-divisible (\(0\ <\ ng\tau \ <\ \pi /4\)) with intervals in which it is non-P-divisible (\(\pi /4\ <\ ng\tau \ <\ \pi /2\)), i.e., it is essentially non-Markovian. In Fig. 2, we compare, for both maps, the exact dynamics of the qubit coherence with the experimental results, for the initial state \(\left|+\right\rangle =\frac{1}{\sqrt{2}}(\left|0\right\rangle +\left|1\right\rangle )\). The experimental data are in good agreement with the theoretical predictions, and the oscillatory behaviour of the coherences in the case of correlated ancillae is a signature of the essential non-Markovianity of the dynamics. We note that the (much smaller) oscillations in the separable case are due to the repeated, imperfect application of the CNOT gates that are required to swap the ancillae that have interacted with the qubit with fresh ones: there is a small probability that the swap fails and the system interacts again with the same ancilla. This can introduce memory effects, as shown, e.g., in refs. 58,59

Fig. 2: Simulation of a collisional model.
figure2

The red triangles show the collisions with the ancillae prepared in a classically correlated state (red triangles), while the blue dots show the case of a separable state. In both cases \(g=1\), \(\tau =\pi /6\) (weak-coupling regime). The red and blue dashed curves show, respectively, the theoretical predictions of Eqs. (5) and (6) for time \(t=ng\tau\). Up to 7 collisions were simulated: the depth of the circuits grows with the number of collisions, causing increasing decoherence, but the oscillations due to the essential non-Markovianity are clearly visible in the case of correlated ancillae.

Markovian and non-Markovian dissipative dynamics

The dynamical maps of Eqs. (5) and (6) are purely dephasing, since they affect only the coherences of the qubit. In this section we simulate an exactly solvable dissipative open quantum system known as the Jaynes–Cummings or generalised amplitude damping model. The microscopic derivation of the master equation can be found in textbooks (see, e.g., ref. 1). The master equation is given by

$$\frac{d{\rho }_{S}}{dt}(t)=\gamma (t)\left[{\sigma }_{-}{\rho }_{S}(t){\sigma }_{+}-\frac{1}{2}\{{\sigma }_{+}{\sigma }_{-},{\rho }_{S}(t)\}\right],$$
(7)

where \({\sigma }_{\pm }\) are the raising and lowering operators and the time-dependent decay rate \(\gamma (t)\) has the following analytical form

$$\gamma (t)=-2{\mathcal{R}}\left[\frac{{\dot{c}}_{1}(t)}{{c}_{1}(t)}\right],$$
(8)

with

$$\begin{array}{l}{c}_{1}(t)={c}_{1}(0){e}^{-\lambda t/2}\left[\cosh \left(\frac{\lambda t}{2}\sqrt{1-2R}\right)\right.\\ \qquad\quad +\;\left.\frac{1}{\sqrt{1-2R}}\sinh \left(\frac{\lambda t}{2}\sqrt{1-2R}\right)\right].\end{array}$$
(9)

The equation above is obtained assuming that the environment is a bosonic zero-temperature reservoir with Lorentzian spectral density

$$J(\omega )=\frac{1}{2\pi }\frac{{\gamma }_{0}{\lambda }^{2}}{{({\omega }_{0}-\omega )}^{2}+{\lambda }^{2}},$$
(10)

with \({\omega }_{0}\) the qubit frequency, \({\gamma }_{0}\) an overall coupling strength, and \(\lambda\) the half height width of the Lorentzian profile. The time-dependent coefficient \({c}_{1}(t)\) defined in Eq. (9) crucially depends on the ratio \(R={\gamma }_{0}/\lambda\) between the coupling strength and the width of the spectrum. Also, this coefficient fully determines the qubit dynamics as one can see from the following expression

$${\rho }_{S}(t)=\left(\begin{array}{cc}| {c}_{1}(t){| }^{2}&{c}_{0}^{* }{c}_{1}(t)\\ {c}_{0}{c}_{1}^{* }(t)&1-| {c}_{1}(t){| }^{2}\end{array}\right).$$
(11)

From Eq. (9) a straightforward calculation shows that the time-dependent decay rate \(\gamma (t)\), defined in Eq. (8), takes negative values for certain time intervals whenever \(2R\ \ge \ 1\). In this case the dynamical map is not CP-divisible, and therefore non-Markovian. In Fig. 3a, b we show, as example of Markovian and non-Markovian dynamics, the evolution of the excited state population of an initially excited state for two values of the parameter \(R\), corresponding to Markovian (\(R\ =\ 0.2\)) and non-Markovian (\(R\ =\ 100\)) dynamics, respectively. The figures show the monotonic decay of the excited state population in the former case, while in the latter case the population oscillates since the qubit exchanges information and energy with the central mode of the Lorentzian peak, resonant with the qubit’s Bohr frequency. As done for the other open quantum systems simulators, we compare the experimental data with theoretical predictions, finding a good agreement.

Fig. 3: Simulation of the amplitude damping channel.
figure3

a Markovian dynamics (\(R=0.2\)). b Non-Markovian dynamics (\(R=100\)). Blue triangles show the measured populations of the excited state as a function of time, whereas orange circles stand for the non-Markovianity witness, given by the probability of observing the system and an ancilla, initially prepared in the state \(\left|{\phi }^{+}\right\rangle\), in that same state as the channel acts on the system (see Methods for further details). In b, the experimental results clearly show a non-monotonic behaviour, hence confirming the non-Markovian character of the dynamical map. Dashed lines show the theoretical predictions for both quantities.

We also implement an experimentally friendly witness of non-Markovianity which was recently introduced in ref. 56 and stems from the spectral properties of the dynamical map. The witness is based on the behaviour of an initial maximally entangled state of qubit and auxiliary ancilla, and requires only the measurement of the expectation values of local observables such as \({\sigma }_{i}\otimes {\sigma }_{i}\), (\(i=x,y,z\)). Non-monotonic behaviour of the witness as a function of time signals non-Markovianity. Other witnesses of non-Markovianity (such as the BLP measure introduced in ref. 11) could be implemented, and may be more efficient at detecting memory effects, but they generally require a larger number of measurements or optimisation over initial states.

In Fig. 3, we plot the dynamics of the entanglement witness for the amplitude damping channel. In Fig 3b, the witness clearly shows oscillatory behaviour, and therefore properly signals the presence of memory effects. The circuits implementing both the amplitude damping model and the non-Markovianity witness are presented and discussed in Methods.

Depolarising and Pauli channels

The depolarising channel is one of the most common models of qubit decoherence due to its nice symmetry properties. We can describe it by stating that, with probability \(1-p\) the qubit remains intact, while it becomes maximally mixed with probability \(p\). This mixing can be modelled through a bit flip error, described by the action of \({\sigma }_{x}\), a phase flip error, described by the action of \({\sigma }_{z}\), or both, described by the action of \({\sigma }_{y}\). The dynamical map of a Markovian open quantum system subjected to depolarising noise can be written as

$${\Phi }_{t}{\rho }_{S}=\left[1-\frac{3}{4}p(t)\right]{\rho }_{S}+\frac{p(t)}{4}\sum _{i}{\sigma }_{i}{\rho }_{S}{\sigma }_{i},$$
(12)

where \(i=x,y,z\) and \(p(t)=1-{e}^{-\gamma t}\), with \(\gamma\) the Markovian decay rate.

In Fig. 4, we plot the qubit density matrix elements for various values of \(p\), comparing the experimental data with the theoretical prediction. For exemplary purposes, we choose a specific initial state possessing non-zero coherences, but we have verified, by repeating the experiment for different initial states, that the agreement observed between experiment and theory is independent from the initial state chosen. As for the other simulated models, we postpone the discussion on the circuit implementation, the readout, and the error mitigation strategy to the Methods section.

Fig. 4: Simulation of the depolarising channel.
figure4

Tomography of a single-qubit density matrix initially prepared in the state \(\left|{\psi }_{0}\right\rangle =\cos \pi /8\left|0\right\rangle +\sin \pi /8{e}^{i\pi /4}\left|1\right\rangle\), for various values of the parameter \(p\) (cf. Eq. (12)).

Let us now introduce the most general single-qubit open quantum system model, namely the time-dependent Pauli channel. The master equation in this case takes the form

$$\frac{d{\rho }_{S}}{dt}(t)=\frac{1}{2}\sum _{i}{\gamma }_{i}(t)\left[{\sigma }_{i}{\rho }_{S}(t){\sigma }_{i}-{\rho }_{S}(t)\right].$$
(13)

We note that for \({\gamma }_{i}(t)=\gamma\), we recover the Markovian depolarising channel. Generally, the dynamics described by the master equation above is not phase-covariant,61 except for the case in which \({\gamma }_{x}(t)={\gamma }_{y}(t)\). Moreover, since the decay rates may take negative values, conditions for complete positivity must be imposed, and they are given in terms of a set of inequalities involving all the three decay rates, as one can see, e.g., from ref. 16

In the Discussion section we present the simulation of a specific form of time-dependent Pauli channel proposed in ref. 54 and used as an example of eternal non-Markovianity, i.e., an open quantum system dynamics for which the dynamical map is non-CP-divisible for all times \(t\). More precisely, we use this experimental simulation to demonstrate a phenomenon predicted in ref., 31 namely the presence of oscillations in the extractable work. This shows an application of open quantum system simulation on the IBM Q Experience processors to fields other than quantum information theory, specifically quantum thermodynamics for the example here considered.

Discussion

The results presented in the previous section highlight how few-qubit NISQ devices publicly available on the cloud already provide sufficient robustness and reliability to implement experimentally a number of open quantum systems dynamics, both Markovian and non-Markovian, both unital (dephasing collisional model) and non-unital (amplitude damping, depolarising and Pauli channels).

We have simulated all the paradigmatic open quantum systems models typically used to demonstrate physical phenomena induced by the presence of the environment, its consequences for quantum technological applications, but also possible benefits in the spirit of reservoir engineering. As an example of a fundamental study on open quantum systems, we have measured the dynamics of a non-Markovianity witness and showed that it correctly signals the presence of memory effects for time-local amplitude damping dynamics.

In this section, we build on these results to substantiate our claim of the IBM Q Experience being a versatile testbed for the experimental verification of physical effects due to the open character of the dynamics. Specifically, we focus on two applications: non-Markovian quantum channel capacity, of potential use in quantum communication, and extractable work dynamics, relevant in quantum thermodynamics.

Let us first consider a typical setting in quantum information processing and communication: Alice and Bob are at the opposite ends of a quantum channel, the former sending information (classical or quantum) and the latter receiving it. The maximum amount of information that can be reliably transmitted along a noisy quantum channel is known as the channel capacity. Specifically, we consider the quantum capacity \(Q\) defined as the limit to the rate at which quantum information can be reliably sent down a quantum channel.

In the following, we focus on the time-local amplitude damping model introduced in the previous section. In this case, the quantum channel capacity can be calculated exactly and takes the form15

$$Q({\Phi }_{t})=\mathop{{\rm{max}}}\limits_{p\in [0,1]}\ \left[{H}_{2}(| {c}_{1}(t){| }^{2}p)-{H}_{2}([1-| {c}_{1}(t){| }^{2}]p)\right],$$
(14)

for \(| {c}_{1}(t){| }^{2}\ >\ 1/2\) and \(Q({\Phi }_{t})=0\) otherwise. In the equation above, \({H}_{2}\) is the binary Shannon entropy and \({c}_{1}(t)\) is given by Eq. (9).

One may be led into believing that the quantum channel capacity decreases, and in some case disappears, for increasing lengths of the noisy channel, due to the cumulative destructive effect of decoherence. This, however, only holds for Markovian noise, as theoretically demonstrated in ref. 15 Indeed, due to memory effects, the quantum channel capacity may take again non-zero values after disappearing for a certain finite length of the channel. In Fig. 5a, we experimentally demonstrate this effect, comparing the measured behaviour of \(Q({\Phi }_{t})\) with the theoretical prediction for an amplitude damping model with \(R=100\), \(R=200\), and \(R=400\).

Fig. 5: Applications in quantum communication and thermodynamics.
figure5

a Quantum channel capacity as a function of time for three different values of \(R\) calculated from Eq. (14), where \(| {c}_{1}(t){| }^{2}\) has been approximated by the ratio between the population of the excited state at time \(t\) and at \(t=0\) in order to account for the deviations in the initial state preparation. b Rescaled extractable work \({W}_{{\rm{ex}}}(t)/kT\mathrm{ln}2\) as a function of time for the eternally non-Markovian Pauli channel, with \({\gamma }_{x}(t)={\gamma }_{y}(t)=\lambda /2\) and \({\gamma }_{z}(t)=-\omega \tanh \omega t/2\), with \(\lambda =1\) and \(\omega =\frac{1}{2}\) (green circles) and for the non-CP-divisible Pauli channel \({\gamma }_{x}(t)={\gamma }_{y}(t)=\lambda /2\) and \({\gamma }_{z}(t)=\omega \tan \omega t/2\), with \(\lambda =0.1\) and \(\omega =2\). The extractable work has been evaluated using Eq. (15) from a full two-qubit tomography of system \(S\) and memory ancilla \(M\).

We now consider an example of interest in the field of quantum thermodynamics, specifically related to the presence of memory effects in the open system dynamics. In ref., 31 the connection between information backflow and thermodynamic quantities was established by means of a non-Markovianity indicator based on the quantum mutual information. More specifically, it was proven that there exists a link between memory effects, as indicated by oscillations in the quantum mutual information and the non-monotonic behaviour of the extractable work \({W}_{{\rm{ex}}}\).

To understand this connection, let us recall that in order to link non-Markovianity with the evolution of thermodynamical quantities one needs to describe not only the system \(S\), whose information content we are interested in, but also an observer or memory \(M\). Interestingly, quantum mechanical correlations between system and observer may lead to the exciting possibility of extracting work while erasing information on the system.62

Following ref., 31 we consider the case of a qubit \(S\) subjected to a Pauli dynamical map, see master Eq. (13), and an isolated qubit acting as memory, \(M\). If the system and memory are prepared in a maximally entangled state, work can be extracted during the information erasure by using the initial entanglement, as predicted in ref. 62 In this framework, the extractable work takes the form31

$${W}_{{\rm{ex}}}(t)=\left[n-H({\Phi }_{t}{\rho }_{S})+I({\Phi }_{t}{\rho }_{S}:{\rho }_{M})\right]kT\mathrm{ln}2,$$
(15)

with \(n\) the number of qubits in \(S\), \(H({\Phi }_{t}{\rho }_{S})\) the von Neumann entropy of the evolved state of the system, \(I({\Phi }_{t}{\rho }_{S}:{\rho }_{M})\) the quantum mutual information quantifying the amount of total correlations between system \(S\) and memory \(M\), \(k\) the Boltzmann constant and \(T\) the temperature of the reservoir used for the erasure. For the open system here considered, revivals of extractable work are due to the interplay between memory effects, witnessed by the quantum mutual information, and entropy dynamics, as dictated by Eq. (15).

We now further specify our analysis to the eternal non-Markovianity model, for which \({\gamma }_{x}(t)={\gamma }_{y}(t)=\lambda /2\) and \({\gamma }_{z}(t)=-\omega \tanh (\omega t)/2\). We compare the dynamics with the case in which \({\gamma }_{x}(t)={\gamma }_{y}(t)=\lambda /2\) and \({\gamma }_{z}(t)=\omega \tan (\omega t)/2\). The first dynamics is eternally non-Markovian, since \({\gamma }_{z}(t)\ <\ 0\) at all times, while the second one is non-CP-divisible but not eternally non-Markovian, since \({\gamma }_{z}(t)\) takes both positive and negative values. This comparison allows us to distinguish between quantum and classical memory effects.31

In Fig. 5b, we show the experimental results and the theoretical prediction for the dynamics of the extractable work for the two cases here considered. Despite the presence of experimental imperfections, clear oscillations of the extractable work are visible in one case, but completely absent in the other one, therefore showing for the first time not only the impact of memory effects on a thermodynamic quantity such as \({W}_{{\rm{ex}}}\), but also the subtle origin of these oscillations.

To conclude, it is worth mentioning that experiments on open quantum systems performed in dedicated experimental laboratories in different platforms such as, e.g., trapped ions, linear optical systems, superconducting qubits, NMR, NV centres in diamonds and cavity QED, generally reach higher precision and fidelity than those reported in our paper. However, this often occurs at the expense of increased specificity in terms of the models that can be simulated. Moreover, these experiments are accessible only to the researchers working in the given laboratory.

Open source small quantum processors already are, however, a reality and they have opened the door of experimental physics to quantum researchers who do not have either specific experimental training or sufficient economic resources to set up a laboratory. We therefore envisage a rapid change in the way in which research is conducted in a field which has been until now dominantly theoretical, namely the study of open quantum system dynamics. Perhaps, in a not too far future, this will blur the line separating theoretical and experimental research, and an increasing number of experiments will be remotely programmable by using a simple interface and language, in the true spirit of a quantum simulator.

Methods

The results presented in this paper have been obtained on the IBM Q Experience processors freely available online: two 5-qubit machines, ibmqx2 and ibmq_vigo, and a 14-qubit machine, ibmq_16_melbourne. The circuits have been written using IBM’s Qiskit,63 a Python-based programming language for the IBM Q Experience. Each circuit has been run for 8192 shots (the maximum allowed by the devices) to gather statistics from the measurements. When needed, one- and two-qubit full state tomography has been obtained by using the tools provided in Qiskit, performing a maximum-likelihood reconstruction of the density matrix.64

In the following, we give detailed explanations of the various circuits implemented to produce the results presented in the paper. We first make a few general considerations on the sources of error and on how to devise circuits with high fidelity on the IBM Q Experience devices.

Given the large number of experimental runs allowed by the devices, the errors due to statistical fluctuations, of order \({\mathcal{O}}(1/\sqrt{N})\approx 0.011\), are too small for errorbars to be distinguishable from markers in Figs 15, and thus they are not shown. The discrepancy between the experimental points and the theoretical prediction, on the other hand, comes from systematic errors induced by various factors in the hardware implementation. First, the qubits undergo relaxation and decoherence due to external noise. This error becomes more relevant when increasing the depth of the circuit. Second, the gates have errors due to cross-talk and unwanted interactions between qubits when addressing them with pulses. In particular, the error rate of CNOT gates is about 10 times larger than single-qubit unitaries. Finally, there is a readout error affecting the quantum measurement, although this can be mitigated to some extent, as we discuss later on. The error rates and noise parameters on IBM Q devices are characterised on a daily basis using randomised benchmarking techniques. Since there are various, interdependent sources of noise, modelling and predicting the deviations in the experimental data is a non-trivial matter, beyond the scope of this paper. In this work, all quantum channels have been decomposed into circuits bearing in mind some general guidelines targeted at minimising the aforementioned inaccuracies.

Since the IBM Q Experience devices are universal quantum computers, they enable the implementation of any unitary transformation of their constituent qubits; once a quantum circuit is provided for its execution, it is compiled into an equivalent circuit involving only the machine’s basis gates, that is, those realisable experimentally. In the case of the IBM Q Experience devices, these include any single-qubit rotation, whereas the only multi-qubit gates are CNOTs. However, if the circuit requires a multi-qubit gate among qubits that are not physically connected, the corresponding gate will be replaced with a longer circuit in which the states are swapped to neighbouring qubits in the compiled circuit. Since every swap gate includes a minimum of three CNOT gates, and these introduce considerable noise to the execution, it is crucial to assign the relevant qubits involved in the simulation (e.g., system, environment and ancillae) to the machine’s qubits so that the number of CNOT gates between disconnected qubits is minimised. Furthermore, the devices are calibrated daily and the errors of the basis gates are reported. This information can also be taken into account in the qubit assignment, as using the CNOT gates with smaller errors is preferable.

In addition to the gate errors, the qubits’ readout errors characterising the discrepancies between the qubit state and the measurement outcome probabilities are also provided. In the IBM Q Experience devices, there are considerable differences in the readout errors of the different qubits, so this information should also be taken into account in the qubit-assignment process: if possible, it is preferable to assign the system (and any auxiliary ancillae whose measurement is required) to low readout-error qubits, while qubits with large readout errors can still be used to simulate the environment or other ancillae that need not be measured. In any case, Qiskit provides post-processing error-mitigation tools that generally improve the experimental results under the package ignis. To do so, we first prepare all possible basis states \(\left|0\cdots 0\right\rangle ,\left|0\cdots 1\right\rangle ,\ldots ,\left|1\cdots 1\right\rangle\) and measure their corresponding outcome probabilities (notice that it is only necessary to include the qubits whose measurement outcomes need to be corrected). Once these are known, they can be used to correct any other experimental result by finding, via likelihood maximisation, the experimental outcome that is most congruent with the observed measurement deviations. All the data shown in the paper have been mitigated as described above, with the only exception of the collisional model with the ancillae prepared in the separable state; the reason why we have not mitigated those results is that, due to the qubit swapping, the measurements are performed on different physical qubits.

Reservoir engineering

In ref., 33 the authors provide the circuits for the implementation of the Bell-state pumping. However, these are composed of gates that are natural to the trapped-ions platform used in that work, so their direct implementation on the IBM Q Experience devices would result in far too long circuits. Therefore, we propose a different set of circuits that follow the same basic working principles, but have been designed specifically keeping in mind the characteristics of the IBM Q Experience platform.

The pumping circuits proposed in ref. 33 are composed of four parts. First, the relevant information regarding the state of the system (that is, whether the system is in the \(+1\) or the \(-1\) eigenspaces of the stabiliser operators) is mapped into an ancilla. Second, the state of the system is modified depending on the state of the ancilla. Third, the mapping circuit is reversed. At this stage, the system has been pumped, but if the ancilla is to be used again for a new pumping cycle, it needs to be reset, which is the fourth step. We follow these same lines, designing circuits that perform these same steps while minimising the number of gates involved. Before we explain the resulting circuits, let us mention that, since the IBM Q Experience devices are not equipped with the reset operation, we must use a different ancilla for every pump.

The way we map the eigenspace information into an ancilla is by first applying a CNOT gate between the system qubits. Suppose that qubits \({s}_{1}\) and \({s}_{2}\) are initially in some Bell state, for instance, \(\left|{\phi }^{\pm }\right\rangle =(\left|00\right\rangle \pm \left|11\right\rangle )/\sqrt{2}\). A CNOT gate controlled by \({s}_{1}\) transforms the state into \(\left|\pm \right\rangle \left|0\right\rangle\). Instead, \(\left|{\psi }^{\pm }\right\rangle\) would be transformed into \(\left|\pm \right\rangle \left|1\right\rangle\). Hence, we see that the information regarding the \({\sigma }_{x}^{(1)}\otimes {\sigma }_{x}^{(2)}\) eigenspace (namely, the sign) is contained in the state of \({s}_{1}\) after the transformation, whereas the one corresponding to the \({\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\) is in qubit \({s}_{2}\). Now, let us consider the circuit implementing the \({\sigma }_{z}^{(1)}\otimes {\sigma }_{z}^{(2)}\) pump in Fig. 6a. To map the eigenspace information into the environment ancilla \({a}_{{\rm{ZZ}}}\), we apply a CNOT controlled by the relevant qubit, \({s}_{2}\). After these two gates (and considering that the initial state of the ancilla is \(\left|1\right\rangle\)), \({a}_{{\rm{ZZ}}}\) will be in state \(\left|1\right\rangle\) if the initial state of the system is \(\left|{\phi }^{\pm }\right\rangle\) and \(\left|0\right\rangle\) if it is \(\left|{\psi }^{\pm }\right\rangle\). Therefore, the conditional rotation gate only acts in the former case, while it does not modify the state in the latter. The angle of the controlled rotation, in turn, controls the efficiency of the pump \(p\) via the relation \(\theta =2\arcsin \ \sqrt{p}\). Finally, the last two CNOT gates simply revert the mapping part of the circuit. The working principle of the \({\sigma }_{x}^{(1)}\otimes {\sigma }_{x}^{(2)}\) pump (Fig. 6b) is essentially the same. However, we need to add an extra Hadamard gate to transform the state of \({s}_{1}\) before mapping the information to the ancilla \({a}_{{\rm{XX}}}\). As for the composite pump, we can simply concatenate the two circuits. Notice that in the direct concatenation there would be two consecutive CNOTs between the system qubits, which can be removed.

Fig. 6: Circuits implementing the reservoir engineering protocol.
figure6

a ZZ pump, b XX pump and c ZZ and XX pump. The circuits were run on ibmqx2. Qubits \({s}_{1}\) and \({s}_{2}\) (corresponding to \({q}_{2}\) and \({q}_{1}\) on the device) are the system qubits, while qubits \({a}_{{\rm{XX}}}\) and \({a}_{{\rm{ZZ}}}\) (\({q}_{4}\) and \({q}_{0}\)) are the environment ancillae for the two maps. State preparation and measurement are not shown in the circuits above.

Regarding the measurement process, the IBM Q Experience platform only enables measurement in the computational basis. Hence, to assess the probabilities for each of the Bell states, we need to change basis by applying again a combination of CNOT and Hadamard to the system qubits, so \(\left|{\phi }^{+}\right\rangle\) is mapped into \(\left|00\right\rangle\), etc. Again, notice that this would result in repeated consecutive gates, the effect of which amounts to identity, so they can be removed from the circuits. Finally, in Fig. 1, we show the results starting from the maximally mixed state. To do so, we simulated the circuits preparing the system in four different initial conditions, \(\left|00\right\rangle\), \(\left|01\right\rangle\), \(\left|10\right\rangle\) and \(\left|11\right\rangle\).

Collisional model

The circuit used to implement the collisional model described in the section “Collisional model and essential non-Markovianity” is depicted in Fig. 7. Initially, the system and ancillae are prepared in the desired initial state, then each collision is applied, and finally the qubit is measured in the \({\sigma }_{x}\) basis. The collision unitary \(U={e}^{ig\tau {\sigma }_{z}}\otimes \left|0\right\rangle \left\langle 0\right|+{e}^{-ig\tau {\sigma }_{z}}\otimes \left|1\right\rangle \left\langle 1\right|\) can be implemented by means of a rotation \({R}_{z}(g\tau )\) around the \(Z\)-axis between two CNOT gates.

Fig. 7: Circuits implementing the collisional model.
figure7

The top circuit shows the case of the collision with three ancillae in the separable \(\left|+++\right\rangle\) state, prepared by means of Hadamard gates. Each collision consists of a rotation around \(Z\) between two CNOTs. A final measurement in the \(X\) basis is performed in order to measure the coherence of the system qubit. The bottom circuit shows how, in the case of ancillae prepared in the correlated state, we can effectively simulate the map with three ancillae prepared in the GHZ state \((\left|000\right\rangle +\left|111\right\rangle )/\sqrt{2}\), by colliding alternately with two of them. Notice that, in principle, we could have always a collision with the same ancilla. This, however, would cause the compiler to remove consecutive CNOTs and join the rotations into a single gate, making the circuit trivial. The top circuit was run on ibmq_16_melbourne, while the bottom circit was run on ibmqx2.

When the ancillae are prepared in the state \({\rho }_{{\rm{corr}}}=({\left|0\right\rangle }^{\otimes n}{\left\langle 0\right|}^{\otimes n}+{\left|1\right\rangle }^{\otimes n}{\left\langle 1\right|}^{\otimes n})/2\), we can simplify the circuit by noticing that each ancilla is in the maximally mixed state, and the action of \(U\) does not affect its state. We thus only need three ancillae prepared in the GHZ state \(\left|{\psi }_{{\rm{GHZ}}}\right\rangle =(\left|000\right\rangle +\left|111\right\rangle )/\sqrt{2}\): by tracing out the third one we are left with the two-qubit state \({\rho }_{E}^{(2)}=(\left|00\right\rangle \left\langle 00\right|+\left|11\right\rangle \left\langle 11\right|)/2\), and then we can keep colliding with either of the two ancillae.

The circuit with the ancillae in the separable state was implemented and run on the device ibmq_16_melbourne (14 qubits), in order to have a larger number of ancillae for the collisions. The system qubit was chosen to have the highest connectivity (three qubits) and smallest readout error. The connectivity layout of the computer does not allow for direct collisions with more than three ancillae, and swaps between qubits are required, increasing the errors in the simulation and possibly introducing memory effects (as discussed in the Results section).

Amplitude damping channel

The circuit in Fig. 8 implements the amplitude damping channel with the non-Markovianity witness. For an arbitrary pure state of the system \({\left|\psi \right\rangle }_{s}=\alpha {\left|0\right\rangle }_{s}+\beta {\left|1\right\rangle }_{s}\), and setting the state of the environment to vacuum \({\left|0\right\rangle }_{e}\), the two gates between the system and environment qubits transform the joint state into \(\alpha {\left|0\right\rangle }_{s}{\left|0\right\rangle }_{e}+\beta \cos \theta {\left|1\right\rangle }_{s}{\left|0\right\rangle }_{e}+\beta \sin \theta {\left|0\right\rangle }_{s}{\left|1\right\rangle }_{e}\). Therefore, identifying the states \({\left|0\right\rangle }_{s}\) and \({\left|1\right\rangle }_{s}\) with the ground and excited states respectively, and by choosing \(\theta =\arccos {c}_{1}(t)\), the reduced state of the system becomes Eq. (11).

Fig. 8: Circuit for the amplitude damping channel with non-Markovianity witness.
figure8

The circuit was run on ibmq_vigo. Qubits \({q}_{1}\), \({q}_{2}\) and \({q}_{3}\) were used as system, environment and witness ancilla, respectively. Setting \(\theta =\arccos {c}_{1}(t)\), the channel acting on the system qubit simulates the amplitude damping dynamics. The two Hadamard gates rotate the state of the qubits in order to measure the observable \({\sigma }_{x}\otimes {\sigma }_{x}\). To measure \({\sigma }_{y}\otimes {\sigma }_{y}\), the combination \({S}^{\dagger }H\) can be used instead, whereas no gates are required for \({\sigma }_{z}\otimes {\sigma }_{z}\).

The non-Markovianity witness for a channel \({\Phi }_{t}\) proposed in ref. 56 is based on the dynamical behaviour of the entanglement between the system and an ancilla initially prepared in a maximally entangled state. Namely, this quantity is defined as \({f}_{\Phi }=\langle {\phi }^{+}| {\mathbb{I}}\otimes {\Phi }_{t}[| {\phi }^{+}\rangle \langle {\phi }^{+}| ]| {\phi }^{+}\rangle\). Hence, implementing this quantity requires preparing the state \(\left|{\phi }^{+}\right\rangle\) between the system and an ancilla, which can be achieved using a Hadamard and a CNOT gate, applying the dynamical map to the system and measuring the probability of finding the joint system and ancilla state in \(\left|{\phi }^{+}\right\rangle\). As suggested in ref., 56 we need not use an extra CNOT gate to project on the Bell basis; instead, we can take advantage of the fact that \(\left|{\phi }^{+}\right\rangle \left\langle {\phi }^{+}\right|=({\mathbb{I}}\otimes {\mathbb{I}}+{\sigma }_{x}\otimes {\sigma }_{x}-{\sigma }_{y}\otimes {\sigma }_{y}+{\sigma }_{z}\otimes {\sigma }_{z})/4\) and measure the corresponding local observables. Figure 8 shows the circuit corresponding to the measurement of \({\sigma }_{x}\otimes {\sigma }_{x}\).

Depolarising channel

The depolarising channel defined in Eq. (12) can be implemented, for any value of \(p\equiv p(t)\in [0,1]\), with the circuit shown in Fig. 9. Three ancillary qubits are prepared in a state \(\left|{\psi }_{\theta }\right\rangle =\cos \theta /2\left|0\right\rangle +\sin \theta /2\left|1\right\rangle\), and are used as controls for, respectively, a controlled-\(X\) (CNOT), a controlled-\(Y\) and a controlled-\(Z\) rotation. This way, each gate will be applied with a probability \({\sin }^{2}\theta /2\).

Fig. 9: Circuit implementation of the depolarising channel.
figure9

The circuit was run on ibmqx2. Qubit \({q}_{2}\) is used as the system qubit, as it is the only one that can be targeted with three CNOTs. The ancillae \({a}_{1},{a}_{2}\) and \({a}_{3}\) are initially in the state \(\left|0\right\rangle\) and rotated around the \(y\) direction by an angle \(\theta (p)=\frac{1}{2}\arccos (1-2p)\). They then act as controls for controlled-\(X\), -\(Y\) and -\(Z\) gates, respectively.

The rotation angle \(\theta\) must be chosen so that each of the gates is applied with probability \(p\). Notice that applying \(X\) and then \(Y\), but not applying \(Z\) is equivalent (up to global phases) to just applying \(Z\), and so on. The resulting equation that binds \(\theta\) to \(p\) is thus

$${\sin }^{2}\frac{\theta }{2}{\cos }^{4}\frac{\theta }{2}+{\sin }^{4}\frac{\theta }{2}{\cos }^{2}\frac{\theta }{2}=\frac{p}{4},$$
(16)

with solution \(\theta (p)=\frac{1}{2}\arccos (1-2p)\).

Pauli channel

At a specific time instant \(t\), the Pauli channel described by the master Eq. (13) can be written as

$${\mathcal{E}}(\rho )=\sum _{i=0}^{3}{p}_{i}{\sigma }_{i}\rho {\sigma }_{i},$$
(17)

with \(0\le {p}_{i}\le 1\) and \({\sum }_{i}{p}_{i}=1\). The depolarising channel is a special case of the Pauli channel where \({p}_{1}={p}_{2}={p}_{3}=p/4\).

One could think to implement the channel by generalising the circuit of Fig. 9, specifically, by allowing for the three ancillae to be prepared in different states. One can see, however, that this cannot be done in the most general case. For example, the eternally non-Markovian channel presented in the Discussion section is not implementable in this way.

It is possible to implement the general Pauli channel with just two qubits, if we allow them to be in an entangled state. The first qubit acts as the control for a controlled-\(X\) (CNOT) gate, and the second one for a controlled-\(Y\). Notice that, as remarked in the previous section, applying both X and Y is effectively equivalent to applying a Z gate.

The state \(\left|\psi \right\rangle\) of the ancillae needed for the Pauli channel can be implemented by the circuit in Fig. 10, parametrised by the three angles \({\theta }_{1},{\theta }_{2},{\theta }_{3}\)

$$\begin{array}{l}\left|\psi \right\rangle =({c}_{1}{c}_{2}{c}_{3}+{s}_{1}{s}_{2}{s}_{3})\left|00\right\rangle +({c}_{1}{c}_{2}{s}_{3}-{s}_{1}{s}_{2}{c}_{3})\left|01\right\rangle\\ \qquad \quad +\,({c}_{1}{s}_{2}{c}_{3}-{s}_{1}{c}_{2}{s}_{3})\left|10\right\rangle + ({s}_{1}{c}_{2}{c}_{3}+{c}_{1}{s}_{2}{s}_{3})\left|11\right\rangle \end{array}$$
(18)

where \({c}_{i}\equiv \cos {\theta }_{i}\) and \({s}_{i}\equiv \sin {\theta }_{i}\).

Fig. 10: Circuit implementation of a general Pauli channel on ibmqx2.
figure10

Qubit \({q}_{2}\) is used as the system qubit because it can be targeted with two CNOTs and has the smallest readout error. The ancillae are initially in the state \(\left|0\right\rangle\) and rotated around \(y\) with the angles \({\theta }_{1},{\theta }_{2}\) and \({\theta }_{3}\) found by solving the system in Eq. (19), and they act as controls for a controlled \(X\) and a controlled \(Y\).

The angles \({\theta }_{i}\) can be found by solving the following system of equations:

$$\left\{\begin{array}{ll}{p}_{0}=| \langle 00| \psi \rangle {| }^{2}={({c}_{1}{c}_{2}{c}_{3}+{s}_{1}{s}_{2}{s}_{3})}^{2}&\\ {p}_{1}=| \langle 01| \psi \rangle {| }^{2}={({c}_{1}{c}_{2}{s}_{3}-{s}_{1}{s}_{2}{c}_{3})}^{2}&\\ {p}_{2}=| \langle 10| \psi \rangle {| }^{2}={({c}_{1}{s}_{2}{c}_{3}-{s}_{1}{c}_{2}{s}_{3})}^{2}&\\ {p}_{3}=| \langle 11| \psi \rangle {| }^{2}={({s}_{1}{c}_{2}{c}_{3}+{c}_{1}{s}_{2}{s}_{3})}^{2}&\end{array}\right..$$
(19)

The above system of equations allows for multiple analytical solutions whose expressions are too cumbersome to be reported here. The choice of the solution to use in each case depends on a number of factors, such as the gate fidelity for the specific values of the parameters.

Notice that the circuit for the Pauli channel can be used also for the depolarising channel, instead of the three-qubit circuit of Fig. 9, but it proves to be less accurate on the IBM Q Experience devices, presumably because of the required entanglement between the two qubits.

Data availability

All data supporting the findings of this study are available from the authors upon request. The code to reproduce all the results is available online at https://github.com/matteoacrossi/ibmq_open_quantum_systems.

References

  1. 1.

    Breuer, H.-P. & Petruccione, F. The Theory of Open Quantum Systems (Oxford University Press, 2007).

  2. 2.

    Weiss, U. Quantum Dissipative Systems. (World Scientific, Singapore, 2011).

    Google Scholar 

  3. 3.

    Rivas, Á. & Huelga, S. F. Open Quantum Systems. (Springer Berlin, Heidelberg, 2012).

    MATH  Google Scholar 

  4. 4.

    Gorini, V. Completely positive dynamical semigroups of n-level systems. J. Math. Phys. 17, 821 (1976).

    ADS  MathSciNet  MATH  Google Scholar 

  5. 5.

    Lindblad, G. On the generators of quantum dynamical semigroups. Commun. Math. Phys. 48, 119–130 (1976).

    ADS  MathSciNet  MATH  Google Scholar 

  6. 6.

    Huelga, S. & Plenio, M. Vibrations, quanta and biology. Contemp. Phys. 54, 181–207 (2013).

    ADS  Google Scholar 

  7. 7.

    Rivas, Á., Huelga, S. F. & Plenio, M. B. Quantum non-Markovianity: characterization, quantification and detection. Rep. Prog. Phys. 77, 094001 (2014).

    ADS  MathSciNet  Google Scholar 

  8. 8.

    Breuer, H.-P., Laine, E.-M., Piilo, J. & Vacchini, B. Colloquium: non-Markovian dynamics in open quantum systems. Rev. Mod. Phys. 88, 021002 (2016).

    ADS  Google Scholar 

  9. 9.

    de Vega, I. & Alonso, D. Dynamics of non-Markovian open quantum systems. Rev. Mod. Phys. 89, 015001 (2017).

    ADS  MathSciNet  Google Scholar 

  10. 10.

    Li, L., Hall, M. J. & Wiseman, H. M. concepts of quantum non-Markovianity: a hierarchy. Physics Reports 759, 1–51 (2018).

    ADS  MathSciNet  MATH  Google Scholar 

  11. 11.

    Breuer, H.-P., Laine, E.-M. & Piilo, J. Measure for the degree of non-Markovian behavior of quantum processes in open systems. Phys. Rev. Lett. 103, 210401 (2009).

    ADS  MathSciNet  Google Scholar 

  12. 12.

    Rivas, Á., Huelga, S. F. & Plenio, M. B. Entanglement and non-Markovianity of quantum evolutions. Phys. Rev. Lett. 105, 050403 (2010).

    ADS  MathSciNet  Google Scholar 

  13. 13.

    Lu, X.-M., Wang, X. & Sun, C. P. Quantum fisher information flow and non-Markovian processes of open systems. Phys. Rev. A 82, 042103 (2010).

    ADS  Google Scholar 

  14. 14.

    Lorenzo, S., Plastina, F. & Paternostro, M. Geometrical characterization of non-Markovianity. Phys. Rev. A 88, 020102 (2013).

    ADS  Google Scholar 

  15. 15.

    Bylicka, B., Chruściński, D. & Maniscalco, S. Non-Markovianity and reservoir memory of quantum channels: a quantum information theory perspective. Sci. Rep. 4, 5720 (2014).

    ADS  Google Scholar 

  16. 16.

    Chruściński, D. & Maniscalco, S. Degree of non-Markovianity of quantum evolution. Phys. Rev. Lett. 112, 120404 (2014).

    ADS  Google Scholar 

  17. 17.

    Liu, B.-H. et al. Experimental control of the transition from Markovian to non-Markovian dynamics of open quantum systems. Nat. Phys. 7, 931–934 (2011).

    Google Scholar 

  18. 18.

    Chiuri, A., Greganti, C., Mazzola, L., Paternostro, M. & Mataloni, P. Linear optics simulation of quantum non-Markovian dynamics. Sci. Rep. 2, 17520 (2012).

    Google Scholar 

  19. 19.

    Cuevas, Á. et al. All-optical implementation of collision-based evolutions of open quantum systems. Sci. Rep. 9, 3205 (2019).

    ADS  Google Scholar 

  20. 20.

    Yu, S. et al. Experimental investigation of spectra of dynamical maps and their relation to non-Markovianity. Phys. Rev. Lett. 120, 060406 (2018).

    ADS  Google Scholar 

  21. 21.

    Bernardes, N. K. et al. Experimental observation of weak non-Markovianity. Sci. Rep. 5, 17520 (2015).

    ADS  Google Scholar 

  22. 22.

    Bernardes, N. K. et al. High resolution non-Markovianity in NMR. Sci. Rep. 6, 33945 (2016).

    ADS  Google Scholar 

  23. 23.

    Cialdi, S. et al. All-optical quantum simulator of qubit noisy channels. Appl. Phys. Lett. 110, 081107 (2017).

    ADS  Google Scholar 

  24. 24.

    Liu, Z.-D. et al. Experimental implementation of fully controlled dephasing dynamics and synthetic spectral densities. Nat. Commun. 9, 3453 (2018).

    ADS  Google Scholar 

  25. 25.

    Wittemer, M., Clos, G., Breuer, H.-P., Warring, U. & Schaetz, T. Measurement of quantum memory effects and its fundamental limitations. Phys. Rev. A 97, 020102 (2018).

    ADS  Google Scholar 

  26. 26.

    Liu, B.-H. et al. Efficient superdense coding in the presence of non-Markovian noise. EPL 114, 10005 (2016).

    ADS  Google Scholar 

  27. 27.

    Rossi, M. A. C., Cattaneo, M., Paris, M. G. A. & Maniscalco, S. Non-Markovianity is not a resource for quantum spatial search on a star graph subject to generalized percolation. Quantum Meas. Quantum Metrol. 5, 40–49 (2018).

    Google Scholar 

  28. 28.

    Laine, E.-M., Breuer, H.-P. & Piilo, J. Nonlocal memory effects allow perfect teleportation with mixed states. Sci. Rep. 4, 4620 (2014).

    Google Scholar 

  29. 29.

    Chin, A. W., Huelga, S. F. & Plenio, M. B. Quantum metrology in non-Markovian environments. Phys. Rev. Lett. 109, 233601 (2012).

    ADS  Google Scholar 

  30. 30.

    Addis, C., Ciccarello, F., Cascio, M., Palma, G. M. & Maniscalco, S. Dynamical decoupling efficiency versus quantum non-Markovianity. New J. Phys. 17, 123004 (2015).

    ADS  Google Scholar 

  31. 31.

    Bylicka, B., Tukiainen, M., Chruściński, D., Piilo, J. & Maniscalco, S. Thermodynamic power of non-Markovianity. Sci. Rep. 6, 27989 (2016).

    ADS  Google Scholar 

  32. 32.

    Myatt, C. J. et al. Decoherence of quantum superpositions through coupling to engineered reservoirs. Nature 403, 269–273 (2000).

    ADS  Google Scholar 

  33. 33.

    Barreiro, J. T. et al. An open-system quantum simulator with trapped ions. Nature 470, 486–491 (2011).

    ADS  Google Scholar 

  34. 34.

    Verstraete, F., Wolf, M. M. & Cirac, J. I. Quantum computation and quantum-state engineering driven by dissipation. Nat. Phys. 5, 633–636 (2009).

    Google Scholar 

  35. 35.

    Poyatos, J. F., Cirac, J. I. & Zoller, P. Quantum reservoir engineering with laser cooled trapped ions. Phys. Rev. Lett. 77, 4728–4731 (1996).

    ADS  Google Scholar 

  36. 36.

    Barreiro, J. T. et al. Experimental multiparticle entanglement dynamics induced by decoherence. Nat. Phys. 6, 943–946 (2010).

    Google Scholar 

  37. 37.

    Krauter, H. et al. Entanglement generated by dissipation and steady state entanglement of two macroscopic objects. Phys. Rev. Lett. 107, 080503 (2011).

    ADS  Google Scholar 

  38. 38.

    Almeida, M. P. et al. Environment-induced sudden death of entanglement. Science 316, 579–582 (2007).

    ADS  Google Scholar 

  39. 39.

    Yu, T. & Eberly, J. H. Sudden death of entanglement. Science 323, 598–601 (2009).

    ADS  MathSciNet  MATH  Google Scholar 

  40. 40.

    Mazzola, L., Piilo, J. & Maniscalco, S. Sudden transition between classical and quantum decoherence. Phys. Rev. Lett. 104, 200401 (2010).

    ADS  MathSciNet  Google Scholar 

  41. 41.

    Xu, J.-S. et al. Experimental investigation of classical and quantum correlations under decoherence. Nat. Commun. 1, 7 (2010).

    ADS  Google Scholar 

  42. 42.

    Ziman, M. & Bužek, V. All (qubit) decoherences: complete characterization and physical implementation. Phys. Rev. A 72, 022110 (2005).

    ADS  Google Scholar 

  43. 43.

    Deléglise, S. et al. Reconstruction of non-classical cavity field states with snapshots of their decoherence. Nature 455, 510–514 (2008).

    ADS  Google Scholar 

  44. 44.

    Nokkala, J., Galve, F., Zambrini, R., Maniscalco, S. & Piilo, J. Complex quantum networks as structured environments: engineering and probing. Sci. Rep. 6, 26861 (2016).

    ADS  Google Scholar 

  45. 45.

    Nokkala, J. et al. Reconfigurable optical implementation of quantum complex networks. New J. Phys. 20, 053024 (2018).

    ADS  Google Scholar 

  46. 46.

    Feynman, R. P. Simulating physics with computers. Int. J. Theor. Phys. 21, 467–488 (1982).

    MathSciNet  Google Scholar 

  47. 47.

    Lloyd, S. Universal quantum simulators. Science 273, 1073–1078 (1996).

    ADS  MathSciNet  MATH  Google Scholar 

  48. 48.

    Wang, H., Ashhab, S. & Nori, F. Quantum algorithm for simulating the dynamics of an open quantum system. Phys. Rev. A 83, 062317 (2011).

    ADS  Google Scholar 

  49. 49.

    Schindler, P. et al. Quantum simulation of dynamical maps with trapped ions. Nat. Phys. 9, 361–367 (2013).

    Google Scholar 

  50. 50.

    Wang, D.-S., Berry, D. W., de Oliveira, M. C. & Sanders, B. C. Solovay-kitaev decomposition strategy for single-qubit channels. Phys. Rev. Lett. 111, 130504 (2013).

    ADS  Google Scholar 

  51. 51.

    Lu, H. et al. Experimental quantum channel simulation. Phys. Rev. A 95, 042310 (2017).

    ADS  Google Scholar 

  52. 52.

    Xin, T., Wei, S.-J., Pedernales, J. S., Solano, E. & Long, G.-L. Quantum simulation of quantum channels in nuclear magnetic resonance. Phys. Rev. A 96, 062303 (2017).

    ADS  Google Scholar 

  53. 53.

    Shen, C. et al. Quantum channel construction with circuit quantum electrodynamics. Phys. Rev. B 95, 134501 (2017).

    ADS  Google Scholar 

  54. 54.

    Hall, M. J. W., Cresser, J. D., Li, L. & Andersson, E. Canonical form of master equations and characterization of non-Markovianity. Phys. Rev. A 89, 042120 (2014).

    ADS  Google Scholar 

  55. 55.

    Megier, N., Chruściński, D., Piilo, J. & Strunz, W. T. Eternal non-Markovianity: from random unitary to Markov chain realisations. Sci. Rep. 7, 6379 (2017).

    ADS  Google Scholar 

  56. 56.

    Chruściński, D., Macchiavello, C. & Maniscalco, S. Detecting non-Markovianity of quantum evolution via spectra of dynamical maps. Phys. Rev. Lett. 118, 080404 (2017).

    ADS  Google Scholar 

  57. 57.

    McCloskey, R. & Paternostro, M. Non-Markovianity and system-environment correlations in a microscopic collision model. Phys. Rev. A 89, 052120 (2014).

    ADS  Google Scholar 

  58. 58.

    Lorenzo, S., Ciccarello, F. & Palma, G. M. Class of exact memory-kernel master equations. Phys. Rev. A 93, 052111 (2016).

    ADS  Google Scholar 

  59. 59.

    Kretschmer, S., Luoma, K. & Strunz, W. T. Collision model for non-Markovian quantum dynamics. Phys. Rev. A 94, 012106 (2016).

    ADS  Google Scholar 

  60. 60.

    Filippov, S. N., Piilo, J., Maniscalco, S. & Ziman, M. Divisibility of quantum dynamical maps and collision models. Phys. Rev. A 96, 032111 (2017).

    ADS  Google Scholar 

  61. 61.

    Holevo, A. A note on covariant dynamical semigroups. Rep. Math. Phys. 32, 211–216 (1993).

    ADS  MathSciNet  MATH  Google Scholar 

  62. 62.

    del Rio, L., Åberg, J., Renner, R., Dahlsten, O. & Vedral, V. The thermodynamic meaning of negative entropy. Nature 474, 61–63 (2011).

    Google Scholar 

  63. 63.

    Gadi A. et al. Qiskit: An Open-source Framework for Quantum Computing (2019).

  64. 64.

    Smolin, J. A., Gambetta, J. M. & Smith, G. Efficient method for computing the maximum-likelihood quantum state from measurements with additive gaussian noise. Phys. Rev. Lett. 108, 070502 (2012).

    ADS  Google Scholar 

Download references

Acknowledgements

We thank Dariusz Chruściński and Thomas Bullock for interesting discussions. We acknowledge use of the IBM Q Experience for this work. The views expressed are those of the authors and do not reflect the official policy or position of IBM or the IBM Q team. We acknowledge financial support from the Academy of Finland via the Centre of Excellence programme (Project no. 312058 as well as Project no. 287750). G.G.-P. acknowledges support from the emmy.network foundation under the aegis of the Fondation de Luxembourg.

Author information

Affiliations

Authors

Contributions

G.G.-P., M.A.C.R. and S.M. contributed to the design and implementation of the research, to the analysis of the results, and to the writing of the paper.

Corresponding author

Correspondence to Guillermo García-Pérez.

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/.

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

García-Pérez, G., Rossi, M.A.C. & Maniscalco, S. IBM Q Experience as a versatile experimental testbed for simulating open quantum systems. npj Quantum Inf 6, 1 (2020). https://doi.org/10.1038/s41534-019-0235-y

Download citation

Further reading

Search

Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing