Noise models
In the calculation of the NMR-correlation function a quantum algorithm is used to time-evolve a spin-Hamiltonian on a quantum computer. For quantum computers available presently, moderate noise occurs during the computation. This noise can however be interpreted as a coupling to an environment of the original NMR system.
The effect of the noise during the quantum computation is given by the noisy algorithm model. It maps incoherent noise during the execution of the algorithm to a continuous open system time evolution from the system. Calculating noisy algorithm model is a part of the HQS Qorrelator App and its theoretical basis is described shortly below. Its practical use is demonstarted in the examples.
For physical NMR systems, the environment seen by the spins is at infinite temperature. It is then desired that the noise during the quantum computation has an effect that is similar to an infinite temperature environment. The verification of this needs a detailed analysis of the noisy algorithm model. Such an analysis is provided by the HQS NMR tool. This thermalization analysis returns the essential information condensed to a simple quantity: the thermalization fidelity F. Its value is defined to be between 0 and 1. The value F=1 means that the infinite-temperature environment interpretation is valid exactly, whereas numbers below 1, but well above 0, imply that this interpretation is approximatively valid. Values F≈0 imply that the interpretation may not be valid. Different quantum algorithms lead to different thermalization fidelities F.
Device noise
The effect of the noise during the quantum computation is modeled in our software by the noisy algorithm model. This adds noise to the classical simulation of the gate-based time propagation of the system state on quantum computer. Each gate comes with a noise that acts on qubits. The device can be set up with three different types of qubit noise:
- Damping
- Dephasing
- Depolarization
The device initialization involves setting up independent rates of each decoherence channels (see the examples). To find out the noise probability corresponding to each gate, this is combined with the physical time needed to execute the gate.
In the modeling, we split each gate operation in an algorithm into the ideal unitary gate ˆU and a noise ˆN. Two simplest examples are
Uˆρ→NUˆρ U2U1ˆρ→N2U2N1U1ˆρ, where Uk and Nk are superoperator representations of the unitary gate and the non-unitary noise. (In the superoperator representation the density matrix ˆρ is a vector.)
The non-unitary noise gate is given by a Lindblad time-evolution over the physical gate time τk, Nk≡eLkτk, where Lk is the Lindblad superoperator, defined below.
The Lindbladians are used to describe incoherent time evolution of the reduced density matrix of the qubits due to the effect of noise. We have ˙ρ=L[ρ]. Damping of all N qubits is described by
L[ˆρ]=N∑j=1γ(ˆS−jˆρˆS+j−12ˆS+jˆS−jˆρ−12ˆρˆS+jˆS−j).
Here the spin operators act on the qubits. The dephasing noise corresponds to a Z (longitudinal) noise operator, L[ˆρ]=N∑j=1γ(ˆSzjˆρˆSzj−ˆρ). The form is equivalent with the preceding Lindbladian, but we have used here ˆSzˆSz=1. The depolarising noise is a sum of X, Y, and Z noise channels, with Lindbladian of the form L[ρ]=N∑j=1[γ4∑d∈[x,y,z](ˆSdjρˆSdj−ˆρ)]. For single-qubit systems this reduces to L[ρ]=γ(12−ˆρ). Multiple Lindbladians can be added on the right-hand side of the density-matrix equation-of-motion, ˙ρ=∑lLl[ρ].
A fully thermalized state ˆρ0 (having an equal probability of states |0⟩ and |1⟩) is a steady state of the depolarization noise. It is also a steady state of dephasing noise, though dephasing does not necessary drive the system towards it, since it conserves the excitation number. However, with any addition of X noise or Y noise it does that. In contrast, the steady state of the damping noise is a state with no excitations, i.e., a pure state |0,0,…⟩. It is then the magnitude of the damping noise that plays a central role in the full thermalization, as discussed below.
Effective noise
The thermalization analysis is done for the effective noise of the quantum algorithm. This is given by Lindbladian Leff. This describes the collective effect of the noise gathered during the execution of the quantum algorithm. It is a Lindbladian acting on the spins of the NMR system. It is created as a sum of noise operations at each gate within one Trotter step. Each of these terms contribute via a Lindbladian of the original form, but with a unitary-transformed noise operator.
A minimal example is a two-gate Trotter step. Since gates Gi are unitary and thereby invertible, we can write N2G2N1G1ρ=N2G2N1G−12G2G1ρ≡N2N′1Gρ≡NGρ where G=G2G1 and the effective noise operator is N=N2N′1 N′1=G2N1G−12 We see that when re-organizing the gates and noises to one overall gate plus noise construction, the first noise superoperator got transformed by G2. Equivalently, the original noise operator in the Lindbladian (such as ˆSx) got transformed by ˆG2. Importantly, it turns out to be the superoperators N′1 and N2 that define the effective Lindbladian. They map to a sum of individual noise Lindbladians, with noise operators (such as ˆSx) that have the transformed noise operators (such as ˆG2ˆSxˆG−12). In particular, the noise originating from dephasing or depolarization is a summation of noise of unitary-transformed X,Y, or Z Pauli operators. This turns out to be important for the thermalization analysis, since such contributions can be mapped exactly to an environment at infintite temperature, as discussed below.
All noise contributions (over arbitrary many gates) within one Trotter circuit can be represented also in the general compact form Leff[ρ]=iℏ[ˆρ,H]+∑ijMˆAiˆAj(ˆAiˆρˆA†j−12ˆA†jˆAiρ−12ˆρˆA†jˆAi) Here we have also included contribution from the coherent gates as commutation with Hamiltonian ˆH, establishing the coherent time-evolution part. The operators ˆAi are chosen such that they construct a full basis of superoperators. The software tool works in the basis of spin operators Sdj, i.e., Pauli matrices. This means that for us operators ˆAi are either spin operators Sdj, or multiplications between different-site spin operators, SdiSd′j….
The noise Lindbladian corresponding to the NMR quantum algorithm is calculated automatically by the HQS NMR tool. An example printing out the effective noise model is given in the practical examples.
Thermalization
The thermalization analysis is done for the effective noise, described by Lindbladian Leff. The driving idea behind the following analysis is that in order to interpret the effective noise as an infinite temperature environment, it needs to drive the system to a fully mixed state. The fully mixed density matrix is proportional to the identity matrix, ˆρ0=12N1, where N is the number of qubits, or equivalently spins.
Steady state of noise
We want that the fully thermalized system is a steady state of the system, ˙ρ=Leff[ρmixed]=0. Since the mixed density matrix commutes with the Hamiltonian ˆH, this gives a condition ∑ijMˆAiˆAj(ˆAiˆA†j−ˆA†jˆAi)=0.
We first note that if there are no non-diagonal contributions, so that MAiAj=0 for i≠j, and if the operators are Pauli matrices or unitary tranformations of them, we will have AiA†i=1, and the relation is valid. It follows that all contributions in the effective Lindbladian originating in the dephasing and depolarization during the quantum algorithm satisfy this condition, since they contribute through summation of this type of terms. (Note that the collective summed representation of these terms in terms of operators ˆAi can still have non-diagonal terms.) The thermalization analysis is then an analysis of the effective noise originating in the damping of the qubits.
Damping analysis
The software tool works in the basis of spin (Pauli) operators. We then continue by looking at the representation of the damping Lindbladian in this basis γˆS−ρˆS+=γ4(ˆSxρˆSx+ˆSyρˆSy+iˆSxρˆSy−iˆSyρˆSx) We observe that for damping noise MˆSx,ˆSx=MˆSy,ˆSy=Imag[MˆSx,ˆSy]=−Imag[MˆSy,ˆSx] On the other hand, for a combination of decay and excitation, we have γ−ˆS−ρˆS++γ+ˆS+ρˆS−=γ++γ−4(ˆSxρˆSx+ˆSyρˆSy)+γ+−γ−4(iˆSxρˆSy−iˆSyρˆSx) If γ−=γ+, we have Imag[MˆSx,ˆSy]=0. This noise can then be represented as a direct sum of X-noise Lindbladian and Y-noise Lindbladian. A fully-mixed density matrix ˆρ0 is a steady state of such noise. It then corresponds to an infinite temperature environment.
On the other hand, we note that any single-qubit rotation of spins lead to combinations such as ˆA=cosϕˆSx+sinϕˆSy. For this ˆA†ˆA†=1 and we have finite values of Real[MˆSx,ˆSy]. However, Imag[MˆSx,ˆSy]=0. Also all common two-qubit gates do not lead to imaginary factors. We thus assign an imaginary part of MˆSx,ˆSy to something that originates in damping.
According to these observations, we start constructing a definition of thermalization fidelity ˜F=1−2Imag[MˆSx,ˆSy]MˆSx,ˆSx+MˆSy,ˆSy. The contribution is calculated in the presence of all noise mechanisms (not just damping).
For pure damping the result is 0 whereas for a symmetric combination of damping and excitation (infinite temperature) the result is ˜F=1. The result is also ˜F=1 for any common single-qubit gate transformation of dephasing or depolarization noise. For a finite damping, the presence of dephasing and depolarization increases the fidelity, since they contribute only via the denominator (corresponding to the total decoherence rate).
Definition of thermalization fidelity
The above construction was done for damping in the Z basis. Generalizing to damping of all directions, and to arbitrary many spin sites, we now refine the definition to F1=1−2N∑j=1|Imag[MˆSxj,ˆSyj]|+|Imag[MˆSxj,ˆSzj]|+|Imag[MˆSyj,ˆSzj]|∑Ni=1∑d∈[x,y,z]MˆSdi,ˆSdi. The index 1 refers to that the numerator includes only single-spin operators as operators ˆAi, such as ˆAi=ˆSx2. In the software, we use a factored approximation of the exact noise model, where higher-order noise operators are approximated by single-spin operators. This approximation includes only single-spin operators as the diagonals MˆAi,ˆAi: the summation in the denominator is then done over all diagonal rates in the effective model.
The factoring approximation of the effective noise model can still include non-diagonal elements of type MˆSsiˆStj,ˆSuk. These contributions can also cause deviations to the steady state in comparison to the fully mixed state, but with a smaller overall effect. A numerical analysis shows that the key terms stopping full thermalization come from terms of type MˆSxi,ˆSyiˆSzj, i.e., there is a matching spin index on two sides, associated with X and Y spin operators. According to this observation, we phenomenologically add a (second order) correction to the fidelity and finally define it as F=F1−2∑i≠j|Imag[MˆSxi,ˆSyiˆSzj]|+|Imag[MˆSyi,ˆSxiˆSzj]|∑Nk=1∑d∈[x,y,z]MˆSdkˆSdk.
It should be noted that we are neglecting a possible contribution from other higher-order contributions of type MˆSsi,ˆStjˆSuk. To keep track of the size of dropped terms, we also define a discarded weight, which is a sum of the absolute values of the non-diagonal rates, divided by the overall rate, i.e., the above denominator.