# Bloch-Redfield master equation¶

## Introduction¶

The Lindblad master equation introduced earlier is constructed so that it describes a physical evolution of the density matrix (i.e., trace and positivity preserving), but it does not provide a connection to any underlaying microscopic physical model. The Lindblad operators (collapse operators) describe phenomenological processes, such as for example dephasing and spin flips, and the rates of these processes are arbitrary parameters in the model. In many situations the collapse operators and their corresponding rates have clear physical interpretation, such as dephasing and relaxation rates, and in those cases the Lindblad master equation is usually the method of choice.

However, in some cases, for example systems with varying energy biases and eigenstates and that couple to an environment in some well-defined manner (through a physically motivated system-environment interaction operator), it is often desirable to derive the master equation from more fundamental physical principles, and relate it to for example the noise-power spectrum of the environment.

The Bloch-Redfield formalism is one such approach to derive a master equation from a microscopic system. It starts from a combined system-environment perspective, and derives a perturbative master equation for the system alone, under the assumption of weak system-environment coupling. One advantage of this approach is that the dissipation processes and rates are obtained directly from the properties of the environment. On the downside, it does not intrinsically guarantee that the resulting master equation unconditionally preserves the physical properties of the density matrix (because it is a perturbative method). The Bloch-Redfield master equation must therefore be used with care, and the assumptions made in the derivation must be honored. (The Lindblad master equation is in a sense more robust – it always results in a physical density matrix – although some collapse operators might not be physically justified). For a full derivation of the Bloch Redfield master equation, see e.g. [Coh92] or [Bre02]. Here we present only a brief version of the derivation, with the intention of introducing the notation and how it relates to the implementation in QuTiP.

## Brief Derivation and Definitions¶

The starting point of the Bloch-Redfield formalism is the total Hamiltonian for the system and the environment (bath): \(H = H_{\rm S} + H_{\rm B} + H_{\rm I}\), where \(H\) is the total system+bath Hamiltonian, \(H_{\rm S}\) and \(H_{\rm B}\) are the system and bath Hamiltonians, respectively, and \(H_{\rm I}\) is the interaction Hamiltonian.

The most general form of a master equation for the system dynamics is obtained by tracing out the bath from the von-Neumann equation of motion for the combined system (\(\dot\rho = -i\hbar^{-1}[H, \rho]\)). In the interaction picture the result is

where the additional assumption that the total system-bath density matrix can be factorized as \(\rho(t) \approx \rho_S(t) \otimes \rho_B\). This assumption is known as the Born approximation, and it implies that there never is any entanglement between the system and the bath, neither in the initial state nor at any time during the evolution. *It is justified for weak system-bath interaction.*

The master equation (1) is non-Markovian, i.e., the change in the density matrix at a time \(t\) depends on states at all times \(\tau < t\), making it intractable to solve both theoretically and numerically. To make progress towards a manageable master equation, we now introduce the Markovian approximation, in which \(\rho(s)\) is replaced by \(\rho(t)\) in Eq. (1). The result is the Redfield equation

which is local in time with respect the density matrix, but still not Markovian since it contains an implicit dependence on the initial state. By extending the integration to infinity and substituting \(\tau \rightarrow t-\tau\), a fully Markovian master equation is obtained:

The two Markovian approximations introduced above are valid if the time-scale with which the system dynamics changes is large compared to the time-scale with which correlations in the bath decays (corresponding to a “short-memory” bath, which results in Markovian system dynamics).

The master equation (3) is still on a too general form to be suitable for numerical implementation. We therefore assume that the system-bath interaction takes the form \(H_I = \sum_\alpha A_\alpha \otimes B_\alpha\) and where \(A_\alpha\) are system operators and \(B_\alpha\) are bath operators. This allows us to write master equation in terms of system operators and bath correlation functions:

where \(g_{\alpha\beta}(\tau) = {\rm Tr}_B\left[B_\alpha(t)B_\beta(t-\tau)\rho_B\right] = \left<B_\alpha(\tau)B_\beta(0)\right>\), since the bath state \(\rho_B\) is a steady state.

In the eigenbasis of the system Hamiltonian, where \(A_{mn}(t) = A_{mn} e^{i\omega_{mn}t}\), \(\omega_{mn} = \omega_m - \omega_n\) and \(\omega_m\) are the eigenfrequencies corresponding the eigenstate \(\left|m\right>\), we obtain in matrix form in the Schrödinger picture

where the “sec” above the summation symbol indicate summation of the secular terms which satisfy \(|\omega_{ab}-\omega_{cd}| \ll \tau_ {\rm decay}\). This is an almost-useful form of the master equation. The final step before arriving at the form of the Bloch-Redfield master equation that is implemented in QuTiP, involves rewriting the bath correlation function \(g(\tau)\) in terms of the noise-power spectrum of the environment \(S(\omega) = \int_{-\infty}^\infty d\tau e^{i\omega\tau} g(\tau)\):

where \(\lambda_{ab}(\omega)\) is an energy shift that is neglected here. The final form of the Bloch-Redfield master equation is

where

is the Bloch-Redfield tensor.

The Bloch-Redfield master equation in the form Eq. (5) is suitable for numerical implementation. The input parameters are the system Hamiltonian \(H\), the system operators through which the environment couples to the system \(A_\alpha\), and the noise-power spectrum \(S_{\alpha\beta}(\omega)\) associated with each system-environment interaction term.

To simplify the numerical implementation we assume that \(A_\alpha\) are Hermitian and that cross-correlations between different environment operators vanish, so that the final expression for the Bloch-Redfield tensor that is implemented in QuTiP is

## Bloch-Redfield master equation in QuTiP¶

In QuTiP, the Bloch-Redfield tensor Eq. (7) can be calculated using the function `qutip.bloch_redfield.bloch_redfield_tensor`

. It takes three mandatory arguments: The system Hamiltonian \(H\), a list of operators through which to the bath \(A_\alpha\), and a list of corresponding spectral density functions \(S_\alpha(\omega)\). The spectral density functions are callback functions that takes the (angular) frequency as a single argument.

To illustrate how to calculate the Bloch-Redfield tensor, let’s consider a two-level atom

that couples to an Ohmic bath through the \(\sigma_x\) operator. The corresponding Bloch-Redfield tensor can be calculated in QuTiP using the following code

```
In [1]: delta = 0.2 * 2*np.pi; eps0 = 1.0 * 2*np.pi; gamma1 = 0.5
In [2]: H = - delta/2.0 * sigmax() - eps0/2.0 * sigmaz()
In [3]: def ohmic_spectrum(w):
...: if w == 0.0: # dephasing inducing noise
...: return gamma1
...: else: # relaxation inducing noise
...: return gamma1 / 2 * (w / (2 * np.pi)) * (w > 0.0)
...:
In [4]: R, ekets = bloch_redfield_tensor(H, [sigmax()], [ohmic_spectrum])
In [5]: np.real(R.full())
Out[5]:
array([[ 0. , 0. , 0. , 0.24514517],
[ 0. , -0.16103412, 0. , 0. ],
[ 0. , 0. , -0.16103412, 0. ],
[ 0. , 0. , 0. , -0.24514517]])
```

For convenience, the function `qutip.bloch_redfield.bloch_redfield_tensor`

also returns a list of eigenkets ekets, since they are calculated in the process of calculating the Bloch-Redfield tensor R, and the ekets are usually needed again later when transforming operators between the computational basis and the eigenbasis.

The evolution of a wavefunction or density matrix, according to the Bloch-Redfield master equation (5), can be calculated using the QuTiP function `qutip.bloch_redfield.bloch_redfield_solve`

. It takes five mandatory arguments: the Bloch-Redfield tensor `R`

, the list of eigenkets `ekets`

, the initial state `psi0`

(as a ket or density matrix), a list of times `tlist`

for which to evaluate the expectation values, and a list of operators `e_ops`

for which to evaluate the expectation values at each time step defined by tlist. For example, to evaluate the expectation values of the \(\sigma_x\), \(\sigma_y\), and \(\sigma_z\) operators for the example above, we can use the following code:

```
In [6]: import matplotlib.pyplot as plt
In [7]: tlist = np.linspace(0, 15.0, 1000)
In [8]: psi0 = rand_ket(2)
In [9]: e_ops = [sigmax(), sigmay(), sigmaz()]
In [10]: expt_list = bloch_redfield_solve(R, ekets, psi0, tlist, e_ops)
In [11]: sphere = Bloch()
In [12]: sphere.add_points([expt_list[0], expt_list[1], expt_list[2]])
In [13]: sphere.vector_color = ['r']
In [14]: sphere.add_vectors(np.array([delta, 0, eps0]) / np.sqrt(delta ** 2 + eps0 ** 2))
In [15]: sphere.make_sphere()
In [16]: plt.show()
```

The two steps of calculating the Bloch-Redfield tensor and evolve the corresponding master equation can be combined into one by using the function `qutip.bloch_redfield.brmesolve`

, which takes same arguments as `qutip.mesolve`

and `qutip.mcsolve`

, expect for the additional list of spectral callback functions.

```
In [17]: output = brmesolve(H, psi0, tlist, [sigmax()], e_ops, [ohmic_spectrum])
```

where the resulting output is an instance of the class `qutip.solver.Result`

.