# Theoretical Background

This document contains a brief list of the coupling parameters between
the central and the bath spins used in **PyCCE**, a description of the qubit dephasing, and a
summary of the cluster correlation expansion (CCE) method.
You can find more details in the following references 1 2 3.

## Hamiltonian

The **PyCCE** package allows one to simulate the dynamics of a central spin interacting with a spin bath through
the following Hamiltonian:

Where \(\hat H_S\) is the Hamiltonian of the free central spin, \(\hat H_{SB}\) denotes interactions between central spin and a spin belonging to the bath, and \(\hat H_B\) are intrinsic bath spin interactions:

Where \(\mathbf{S}=(\hat{S}_x, \hat{S}_y, \hat{S}_z)\) are the components of spin operators of the central spin, \(\mathbf{I}=(\hat{I}_x, \hat{I}_y, \hat{I}_z)\) are the components of the bath spin operators, and \(\mathbf{B}=(B_x,B_y,B_z)\) is an external applied magnetic field.

The interactions are described by the following tensors that are either required to be input by user or can be generated by the package itself (see Hamiltonian Parameters Input for details):

\(\mathbf{D}\) (\(\mathbf{P}\)) is the self-interaction tensor of the central spin (bath spin). For the electron spin, the tensor corresponds to the zero-field splitting (ZFS) tensor. For nuclear spins corresponds to the quadrupole interactions tensor.

\(\mathbf{\gamma}_i\)-spin describing the interaction of the spin and the external magnetic field \(B\). We assume that for the bath spins, it is isotropic.

\(\mathbf{A}\) is the interaction tensor between central and bath spins. In the case of the nuclear spin bath, it corresponds to the hyperfine couplings.

\(\mathbf{J}\) is the interaction tensor between bath spins.

## Qubit dephasing

Usually, two coherence times are measured to characterize the loss of a qubit coherence - \(T_1\) and \(T_2\). \(T_1\) defines the timescale over which the qubit population is thermalized; \(T_2\) describes a purely quantum phenomenon - the loss of the phase of the qubit’s superposition state.

In the pure dephasing regime (\(T_1 >> T_2\)) the decoherence of the central spin is completely determined by the decay of the off diagonal element of the density matrix of the qubit.

Namely, if the qubit is initially prepared in the \(\left|{\psi}\right\rangle = \frac{1}{\sqrt{2}}(\left|{0}\right\rangle+e^{i\phi}\left|{1}\right\rangle)\) state, the loss of the relative phase of the \(\left|{0}\right\rangle\) and \(\left|{1}\right\rangle\) levels is characterized by the coherence function:

Where \(\hat{\rho}_S(t)\) is the density matrix of the central spin and \(\left|{0}\right\rangle\) and \(\left|{1}\right\rangle\) are qubit levels.

The cluster correlation expansion (CCE) method was first introduced in ref. 2. The core idea of the CCE approach is that the spin bath-induced decoherence can be factorized into set of irreducible contributions from the bath spin clusters. Written in terms of the coherence function:

Where each cluster contribution is defined recursively as:

Where \(L_{C}\) is a coherence function of the qubit, interacting only with the bath spins in a given cluster \(C\) (with the cluster Hamiltonian \(\hat H_C\)), and \(\tilde{L}_{C'}\) are contributions of \(C'\) subcluster of \(C\).

For example, the contribution of the single spin \(i\) is equal to the coherence function of the bath with one isolated spin \(i\):

The contribution of pair of spins \(i\) and \(j\) is equal to:

and so on.

Maximum size of the cluster included into the expansion determines the order of CCE approximation. For example, in the CCE2 approximation, only contributions up to spin pairs are included, and in CCE3 - up to triplets of bath spins are included, etc.

The way the coherence function for each cluster is computed slightly varies between depending on whether the conventional or generalized CCE method is used.

### Conventional CCE

In the original formulation of the CCE method, the total Hamiltonian of the system is reduced to the sum of two effective Hamiltonians, conditioned on the qubit levels of the central spin:

Where \(\hat H^{(\alpha)}\) is an effective Hamiltonian acting on the bath when the central qubit is in the \(\ket{\alpha}\) state (\(\ket{\alpha}=\ket{0},\ket{1}\) is one of the two eigenstates of the \(\hat H_S\) chosen as qubit levels).

Given an initial qubit state \(\ket{\psi}=\frac{1}{\sqrt{2}}(\ket{0}+e^{i\phi}\ket{1})\) and an initial state of the bath spin cluster \(C\) characterized by the density matrix \(\hat \rho_{C}\), the coherence function of the qubit interacting with the cluster \(C\) is computed as:

Where \(\hat U_C^{(\alpha)}(t)\) is time propagator defined in terms of the effective Hamiltonian \(\hat H_C^{(\alpha)}\) and the number of decoupling pulses. Note that \(\hat H_C^{(\alpha)}\) here includes only degrees of freedom of the given cluster.

For free induction decay (FID) the time propagators are trivial:

And for the generic decoupling sequence with \(N\) (even) decoupling pulses applied at \(t_1, t_2...t_N\) we write:

Where \(\ket{\alpha} = \ket{0}, \ket{1}\) and \(\ket{\beta} = \ket{1}, \ket{0}\) accordingly (when \(\ket{\alpha} = \ket{0}\) one should take \(\ket{\beta} = \ket{1}\) and vice versa). \(t=\sum_i{t_i}\) is the total evolution time. In sequences with odd number of pulses N, the leftmost propagator is the exponent of \(\hat H_C^{(\beta)}\).

### Generalized CCE

Instead of projecting the total Hamiltonian on the qubit levels, one may directly include the central spin degrees of freedom to each clusters. We refer to such formulation as gCCE.

In this case we write the cluster Hamiltonian as:

And the coherence function of the cluster \(L_C(t)\) is computed as:

Where \(\hat \rho_{C+S} = \hat \rho_{C} \otimes \hat \rho_S\) is the combined initial density matrix of the bath spins’ cluster and central spin.

Further details on the theoretical background are available in the references below.

- 1
Mykyta Onizhuk and Giulia Galli. “PyCCE: A Python Package for Cluster Correlation Expansion Simulations of Spin Qubit Dynamic”. Adv. Theory Simul. 2021, 2100254, https://onlinelibrary.wiley.com/doi/10.1002/adts.202100254

- 2(1,2)
Wen Yang and Ren-Bao Liu. “Quantum many-body theory of qubit decoherence in a finite-size spin bath”. Phys. Rev. B78, p. 085315, https://link.aps.org/doi/10.1103/PhysRevB.78.085315

- 3
Mykyta Onizhuk et al. “Probing the Coherence of Solid-State Qubits at Avoided Crossings”. PRX Quantum 2, p. 010311. https://link.aps.org/doi/10.1103/PRXQuantum.2.010311.