Introduction

Quantum state preparation is a fundamental task in quantum simulation and quantum algorithm design1,2,3,4,5,6. While eigenstates of a Hamiltonian can, in principle, be prepared using quantum phase estimation (QPE) and its variants, these algorithms themselves often require an initial state that has a significant overlap with the target state7,8,9,10,11,12,13,14,15. Dissipative state engineering offers a very different perspective on this problem. Rather than treating dissipation as a source of decoherence due to system-environment coupling, properly designed dissipative dynamics, such as those governed by the Lindblad equation, can encode a wide variety of strongly correlated states as the steady states of a dynamical process. Dissipative techniques and state preparation techniques using mid-circuit measurements, in general, have been widely employed in preparing matrix product states, ground states of stabilizer codes, spin systems, and other states exhibiting long-range entanglement2,16,17,18,19,20,21,22. There has been also growing recent interest in using Lindblad dynamics as an algorithmic tool for thermal state and ground state preparation23,24,25,26,27,28,29,30,31. However, many applications have focused on Hamiltonians with special structures, as the dissipative terms often need to be carefully engineered based on the special properties of the Hamiltonian. In contrast, in quantum chemistry and materials science, ab initio Hamiltonians lack specific geometric locality or sparsity, which significantly complicates the design of dissipative terms.

In this work, we overcome this difficulty and present a novel method for using Lindblad dynamics to efficiently prepare the ground state for general ab initio electronic structure problems on quantum computers. Our approach builds upon recent developments in quantum ground state preparation25, which has the advantage of being applicable to both commuting and non-commuting Hamiltonians on an equal basis. Unlike ref. 25, which prepares the ground state using a single jump operator together with a coherent term, we propose two sets of Lindblad jump operators, termed Type-I and Type-II. Each set contains poly(L) jump operators (L is the number of spatial orbitals), which are agnostic to chemical details and thus can readily be applied to ab initio Hamiltonians with unstructured and long-range coefficients. The process does not involve variational parameters. Type-I Lindblad dynamics break the particle-number symmetry and must be simulated in the Fock space. In contrast, Type-II jump operators preserve the particle number, allowing for more efficient simulation (on both classical and quantum computers) in the full configuration interaction (FCI) space.

The efficiency of Lindblad dynamics for quantum state preparation is quantified by the mixing time, which is the time required to reach the target steady state to a certain precision from an arbitrary initial state32,33. Theoretical analysis of the mixing time is in general a challenging task, and is often feasible only for specific systems, parameter regimes, or simplified settings34,35,36,37,38,39. Our strategy is to first theoretically analyze the spectral gap of the Lindbladian, as well as dynamics of observables, such as the energy and the reduced density matrix (RDM), within a simplified Hartree-Fock (HF) framework. In this setting, the combined action of the jump operators effectively implements a classical Markov chain Monte Carlo within the molecular orbital basis. We prove that the convergence can be provably agnostic to specific chemical details, and in some cases, the convergence rate can be universal. We then perform numerical simulations to examine the transferability of this behavior to the full ab initio Hamiltonian, using an approach based on unraveled Lindblad dynamics. We also present an active-space-based strategy to reduce the number of jump operators in the implementation, thereby lowering the simulation cost while preserving the convergence behavior. This is applied to molecular systems, such as BeH2, H2O, and Cl2, which are amenable to exact wavefunction treatment within the FCI space. We also apply our method to investigate the stretched square H4 system, which has nearly degenerate low-energy states and poses challenges for highly accurate quantum chemistry methods, such as CCSD(T). In all cases, the Lindblad dynamics can prepare a quantum state with an energy that achieves chemical accuracy, even in the strongly correlated regime. A schematic workflow of our approach is shown in Fig. 1.

Fig. 1: Conceptual workflow illustrating the proposed dissipative ground state preparation method.
figure 1

We consider the ab initio Hamiltonian in electronic structure theory for molecular systems. The central task in this framework is to construct Lindblad jump operators, derived from either Type-I or Type-II coupling operators. An active-space strategy is employed to reduce the simulation cost. The Lindblad dynamics can be efficiently simulated on quantum devices using only a single ancilla qubit, and the approach is classically validated using a wavefunction trajectory method.

Results

Dissipation engineering for ground state preparation

We consider Lindblad dynamics of the form:

$$\begin{array}{ll}\frac{{\rm{d}}}{{\rm{d}}t}\rho ={\mathcal{L}}[\rho ]={{\mathcal{L}}}_{H}[\rho ]+{{\mathcal{L}}}_{K}[\rho ]\\\qquad=-{\rm{i}}[\hat{H},\rho ]+\mathop{\sum}\limits_{k}{\hat{K}}_{k}\rho {\hat{K}}_{k}^{\dagger }-\frac{1}{2}\{{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k},\rho \}.\end{array}$$
(1)

For ground state preparation, the key object in Ref. 25 is the following jump operator:

$${\hat{K}}_{k}=\sum _{i,j}\hat{f}({\lambda }_{i}-{\lambda }_{j})\langle {\psi }_{i}| {A}_{k}| {\psi }_{j}\rangle \left\vert {\psi }_{i}\rangle \langle {\psi }_{j}\right\vert .$$
(2)

Here, {Ak} are called (primitive) coupling operators, whose selection will be discussed in detail later. Each jump operator \({\hat{K}}_{k}\) is derived by reweighting Ak in the eigenbasis \({\{\left\vert {\psi }_{i}\right\rangle \}}_{i = 0}^{N-1}\) of the Hamiltonian \(\hat{H}\) by a filter function \(\hat{f}(\omega )\) evaluated at the energy difference λiλj. The filter function \(\hat{f}(\omega )\) is only supported on the negative axis. In other words, \(\hat{f}({\lambda }_{i}-{\lambda }_{j})=0\) for any ij (assuming λ0 < λ1λN−1). As a result, the jump operator \({\hat{K}}_{k}\) only allows transitions between the eigenvectors of \(\hat{H}\) that lower the energy. Since the Lindblad dynamics generate a completely positive, trace preserving (CPTP) map40,41,42, 〈ψiρ(t)ψi〉 is a normalized probability distribution at time any t. In the energy basis, the dynamics continuously “shovels” high-energy states toward low-energy ones, eventually reaching the ground state, as shown in Fig. 2. Furthermore, we can easily verify \({\hat{K}}_{k}\left\vert {\psi }_{0}\right\rangle =0\) since \(\hat{f}({\lambda }_{j}-{\lambda }_{0})=0\) for any j ≥ 0. This immediately suggests that the ground state \(\vert {\psi }_{0} \rangle \langle {\psi }_{0} \vert\) is a stationary point of the Lindblad dynamics. This dynamics is ergodic if the ground state is the only stationary point, and this can be achieved by a carefully chosen set of coupling operators {Ak}.

Fig. 2: A conceptual illustration of the “shoveling” process in ground state preparation via Lindbladians.
figure 2

The choice of jump operators ensures that the Lindbladian only allows transitions from high-energy eigenstates to low-energy eigenstates.

At first glance, it may seem that constructing the jump operator in Eq. (2) requires diagonalizing \(\hat{H}\), which would clearly defeat the purpose. However, we can reformulate the definition of \({\hat{K}}_{k}\) in the time domain as

$${\hat{K}}_{k}={\int_{{\mathbb{R}}}}f(s){A}_{k}(s)\,{\rm{d}}s,$$
(3)

where \({A}_{k}(s)={e}^{{\rm{i}}\hat{H}s}{A}_{k}{e}^{-{\rm{i}}\hat{H}s}\) is the Heisenberg evolution of Ak, and \(f(s)=\frac{1}{2\pi }{\int}_{{\mathbb{R}}}\hat{f}(\omega ){e}^{-{\rm{i}}\omega s}\,{\rm{d}}\omega\) is the inverse Fourier transform of the filter function \(\hat{f}\) in the frequency domain.

In this form, the construction of the jump operator can be achieved using standard Trotter expansions for digitally simulating the Hamiltonian evolution. Additionally, the Trotter expansion can also be applied to simulate the Lindblad dynamics in Eq. (1). The choice of the filter function depends only on coarse-grained properties of the system, such as estimates of the spectral radius and the spectral gap \(\hat{H}\). A brief review of the selection of the filter function, the quantum simulation algorithm, as well as a rule of thumb for resource estimates is provided in the Methods section and Section I in the Supplementary Information (SI), respectively.

Types I and II jump operators for ab initio calculations

Unlike lattice problems, the second-quantized Hamiltonians in ab initio electronic structure calculations do not have clean forms, such as nearest-neighbor interactions. Therefore, it is important to choose a simple yet effective set of coupling operators {Ak} that are easy to implement and allow the system to converge rapidly towards the ground state. In this work, we introduce two simple sets of primitive coupling operators, referred to as Type-I and Type-II, respectively. The corresponding jump operators can be constructed according to Eq. (3).

We choose the set of Type-I coupling operators to be \({{\mathcal{A}}}_{{\rm{I}}}=\{{a}_{i}^{\dagger }| i=1,2,\cdots \,,2L\}\cup \{{a}_{i}| i=1,2,\cdots \,,2L\}\). This includes all of the 4L (counting spatial and spin degrees of freedom) fermionic creation and annihilation operators. Each operator can be expressed in the atomic orbital basis, molecular orbital basis, or some other basis set. These different choices differ by a unitary matrix. Given the linear relationship between the jump operator and the coupling operator, a unitary rotation of the coupling operators will correspondingly induce a unitary rotation of the jump operators. This unitary rotation can be viewed as a gauge degree of freedom. Ideally, the numerical result should be independent of this gauge. We will verify that this is indeed the case in a simplified HF setting.

The set of Type-II coupling operators is \({{\mathcal{A}}}_{{\rm{II}}}=\{{a}_{i}^{\dagger }{a}_{j}| i,j=1,2,\cdots \,,2L\}\) which includes every fermionic creation and annihilation pairs, and has 4L2 elements in total. Most Hamiltonians in ab initio electronic structure calculations are particle-number-preserving. Unlike Type-I coupling operators, which break particle number symmetries and must be simulated in the Fock space, Type-II coupling operators (and the corresponding jump operators) preserve particle number symmetries. The corresponding Lindblad dynamics can be simulated in the FCI space. Note that the dimension of the density matrix in the Fock formulation is 42L, and that of the FCI space is \({\left(\begin{array}{c}2L\\ {N}_{{\rm{e}}}\end{array}\right)}^{2}\), where Ne is the number of electrons. The difference becomes particularly significant when Ne is very small or large, such as simulating alkali metals and halogen elements in a small basis set. The particle number symmetry can be used also reduce the cost of quantum simulations, such as the Trotter error for Hamiltonian simulation \({e}^{-{\rm{i}}\hat{Ht}}\)43,44, or the block encoding subnormalization factors of the Hamiltonian45,46.

Both Type-I and Type-II sets are “bulk” coupling operators, meaning that dissipation is introduced on every (atomic or molecular) basis function. As will be seen below, this can be very effective in reducing the mixing time. On the other hand, this comes at the cost of introducing a large number of jump operators, which increases the simulation cost, both on quantum computers25 and in classical simulation. We will also discuss how to reduce the number using active space ideas.

Universal fast convergence with Type-I set in HF theory

We first consider the ground state preparation via Lindbladians at the HF level before moving on to the interacting regime. We refer readers to the Methods section for a brief review of the HF theory. Essentially, after self-consistency is reached, all the information of the HF theory is encoded in a non-interacting Hamiltonian

$$\hat{H}=\mathop{\sum }\limits_{p,q=1}^{2L}{F}_{pq}{a}_{p}^{\dagger }{a}_{q},$$
(4)

where the Hermitian matrix F is called the Fock matrix. Let Φ be the unitary matrix that diagonalizes F, then the new basis set, known as molecular orbitals, is obtained by transforming the atomic orbitals using Φ. For such Hamiltonians, the information contained in the many-body density operator ρ is entirely stored in the one-particle RDM (1-RDM), defined as

$${P}_{ij}={\rm{Tr}}(\rho {a}_{j}^{\dagger }{a}_{i}),\quad 1\le i,j\le 2L.$$
(5)

According to the Thouless theorem47,48,

$${e}^{\hat{H}}{a}_{i}^{\dagger }=\sum _{p}{a}_{p}^{\dagger }{({e}^{F})}_{pi}{e}^{\hat{H}},\quad {e}^{\hat{H}}{a}_{i}=\sum _{q}{({e}^{-F})}_{iq}{a}_{q}{e}^{\hat{H}}.$$
(6)

Therefore, we have

$$\begin{array}{ll}{\hat{K}}_{p,+}={\int_{{\mathbb{R}}}}f(s){e}^{{\rm{i}}{\hat{H}}s}{a}_{p}^{\dagger }{e}^{-{\rm{i}}{\hat{H}}s}{\rm{d}}s\\\qquad\,\,={\int_{{\mathbb{R}}}}f(s)\mathop{\sum }\limits_{r=1}^{2L}{a}_{r}^{\dagger }{({e}^{{\rm{i}}Fs})}_{r,p}{e}^{{\rm{i}}{\hat{Hs}}}{e}^{-{\rm{i}}{\hat{H}}s}{\rm{d}}s\\\qquad\,=\mathop{\sum }\limits_{r=1}^{2L}{a}_{r}^{\dagger }{({\hat{f}}(F))}_{r,p}\end{array}$$
(7)

and similarly

$$\begin{array}{ll}{\hat{K}}_{q,-}={\int_{{\mathbb{R}}}}f(s){e}^{{\rm{i}}{\hat{H}}s}{a}_{q}{e}^{-{\rm{i}}{\hat{H}}s}{\rm{d}}s\\\qquad\,\,={\int_{{\mathbb{R}}}}f(s)\mathop{\sum }\limits_{r=1}^{2L}{({e}^{-{\rm{i}}Fs})}_{q,r}{a}_{r}{e}^{{\rm{i}}{\hat{Hs}}}{e}^{-{\rm{i}}{\hat{Hs}}}{\rm{d}}s\\\qquad\,\,=\mathop{\sum }\limits_{r=1}^{2L}{a}_{r}{({\hat{f}}(-F))}_{q,r}.\end{array}$$
(8)

This implies that for the Type-I set, the jump operators are all linear in fermionic creation and annihilation operators. The corresponding Lindblad dynamics is quasi-free49,50,51,52, and we can derive a closed-form equation of motion for the 1-RDM

$${\partial }_{t}P(t)=-{\rm{i}}[F,P(t)]+B-\frac{1}{2}[P(t)(B+C)+(B+C)P(t)].$$
(9)

Here

$$\begin{array}{ll}B={\hat{f}}(F){\hat{f}}{(F)}^{\dagger }={\hat{f}}^{2}(F),\\ C={\hat{f}}(-F){\hat{f}}{(-F)}^{\dagger }={\hat{f}}^{2}(-F),\end{array}$$
(10)

and we use the fact that the Fock matrix F is Hermitian. A detailed derivation of Eq. (9) can be found in Section II in the SI. For any filter function \(\hat{f}\) satisfying \(\hat{f}(\omega )=1\) on \([-2\parallel \hat{H}{\parallel }_{2},-\Delta ]\) and \(\hat{f}(\omega )=0\) on [0, + ), we have

$$B+C={\hat{f}}^{2}(F)+{\hat{f}}^{2}(-F)={\bf{1}},$$
(11)

where 1 is the identity matrix. The equation of motion Eq. (9) then takes a very simple form

$${\partial }_{t}P(t)=-{\rm{i}}[F,P(t)]-P(t)+\hat{f}(F).$$
(12)

In particular, if we perform a unitary rotation of the fermionic creation and annihilation operators used to define the primitive coupling operators, this amounts to a gauge choice, and the final equation of motion Eq. (12) is gauge-invariant.

From Eq. (12) we can easily see that \({P}^{\star }=\hat{f}(F)\) is the unique stationary point. In fact, let P(t) and \({P}^{{\prime} }(t)\) be the solution to solve Eq. (12) with different initial values P(0) and \({P}^{{\prime} }(0)\), then

$${\parallel P(t)-{P}^{{\prime} }(t)\parallel }_{{\rm{F}}}={e}^{-t}{\parallel P(0)-{P}^{{\prime} }(0)\parallel }_{{\rm{F}}},$$
(13)

where \({\parallel A\parallel }_{{\rm{F}}}:=\sqrt{{\rm{Tr}}({A}^{\dagger }A)}\) denotes the Frobenius norm of matrices. The detailed derivation of Eq. (13) is provided in Section IV in the SI.

We may get more insight by rewriting Eq. (12) in the energy basis. Specifically, we define

$$\widetilde{P}={\Phi }^{\dagger }P\Phi ={\left({\rm{Tr}}(\rho {c}_{j}^{\dagger }{c}_{i})\right)}_{1\le i,j\le 2L},$$
(14)

where Φ is the coefficient matrix of the molecular orbitals. Then we have

$${\partial }_{t}{\widetilde{P}}(t)=-{\rm{i}}[{{\Lambda }},{\widetilde{P}}(t)]-{\widetilde{P}}(t)+\hat{f}({{\Lambda }}).$$
(15)

Here we use FΛ = ΛΦ and Λ = diag(ε1, , ε2L) with \({\varepsilon }_{1}\le \cdots \le {\varepsilon }_{{N}_{{\rm{e}}}}\le 0 < {\varepsilon }_{{N}_{{\rm{e}}}+1}\le \cdots \le {\varepsilon }_{2L}\). Therefore, the stationary point \({\widetilde{P}}{^{\star}}\) is given by

$${\widetilde{P}}{^{\star}} = {\hat{f}}({{\Lambda}}) = {\mathrm{diag}}(\underbrace{1,\cdots,1}_{N_{{\rm{e}}}},\underbrace{0,\cdots,0}_{2L-N_{{\rm{e}}}})$$
(16)

which is consistent with the aufbau principle, and this is achieved without explicitly diagonalizing the Fock matrix. In particular, the diagonal elements of \(\widetilde{P}(t)\) evolves as follows:

$${\partial }_{t}\langle {n}_{i}\rangle ={\left({\widetilde{P}}(t)\right)}_{ii}=\left\{\begin{array}{ll}-\langle {n}_{i}\rangle +1,\quad \quad &i=1,\cdots \,,{N}_{{\rm{e}}},\\ -\langle {n}_{i}\rangle ,\quad \quad &i={N}_{{\rm{e}}}+1,\cdots \,,2L.\end{array}\right.$$
(17)

Assume the initial occupation numbers of the molecular orbitals (i.e., the diagonal elements of the initial 1-RDM \(\widetilde{P}(0)\)) is given by ni(0), then

$$\langle {n}_{i}\rangle =\left\{\begin{array}{ll}1-(1-{n}_{i}(0)){e}^{-t},\quad \quad &i=1,\cdots \,,{N}_{{\rm{e}}},\\ {n}_{i}(0){e}^{-t},\quad \quad &i={N}_{{\rm{e}}}+1,\cdots \,,2L.\end{array}\right.$$
(18)

Therefore, in the energy basis, the Lindblad dynamics with Type-I jump operators can drive the occupation numbers of the lowest Ne molecular orbitals to approach 1 exponentially, while the occupation numbers of the remaining 2LNe high-energy molecular orbitals exponentially approach zero (see Fig. 3). The convergence rate is universal and is independent of any chemical details or initial starting point. The numerical validation of this statement will be presented in the later sections.

Fig. 3: A conceptual illustration of the evolution of the diagonal elements of the 1-RDM for ground state preparation with Type-I set.
figure 3

The occupation numbers on each molecular orbital increase or decrease independently in an exponential rate.

Convergence with Type-II set oblivious to chemical details in HF theory

Let us now carry out the calculation for Type-II jump operators in the HF setting. Recall \(\hat{f}(\omega )=1\) on \([-2\parallel \hat{H}{\parallel }_{2},-\Delta ]\) and \(\hat{f}(\omega )=0\) on [0, + ), using the Thouless theorem, the jump operators satisfy

$$\begin{array}{ll}{\hat{K}}_{ij}={\int_{{\mathbb{R}}}}f(s){e}^{{\rm{i}}{\hat{H}}s}{a}_{i}^{\dagger }{a}_{j}{e}^{-{\rm{i}}{\hat{Hs}}}{\rm{d}}s\\\qquad=\mathop{\sum }\limits_{p,q=1}^{2L}{\hat{f}}({\varepsilon }_{p}-{\varepsilon }_{q}){c}_{p}^{\dagger }{c}_{q}{\Phi }_{ip}^{* }{\Phi }_{jq}=\mathop{\sum}\limits_{p < q}{c}_{p}^{\dagger }{c}_{q}{\Phi }_{ip}^{* }{\Phi }_{jq}.\end{array}$$
(19)

Note that \({\hat{K}}_{ij}\) is a quadratic operator in the fermionic operators and not Hermitian. This means that the Lindblad dynamics is not quasi-free, and the 1-RDM cannot satisfy a closed-form equation of motion52. Despite this, we demonstrate below an explicit description of the dynamics in the energy basis. For the coherent part,

$${{\mathcal{L}}}_{H}^{\dagger }({c}_{r}^{\dagger }{c}_{s})={\rm{i}}[\hat{H},{c}_{r}^{\dagger }{c}_{s}]={\rm{i}}({\varepsilon }_{r}-{\varepsilon }_{s}){c}_{r}^{\dagger }{c}_{s}.$$
(20)

Here \({{\mathcal{L}}}_{H}^{\dagger }\) denotes the adjoint of the superoperator \({{\mathcal{L}}}_{H}\) with respect to the Hilbert-Schmidt inner product. Moreover, using that Φ consists of orthonormal columns, we find

$$\begin{array}{ll}\mathop{\sum }\limits_{i,j=1}^{2L}{\hat{K}}_{ij}^{\dagger }{\hat{K}}_{ij}=\mathop{\sum}\limits_{ij}\mathop{\sum}\limits_{p < q}\mathop{\sum}\limits_{r < s}{c}_{q}^{\dagger }{c}_{p}{c}_{r}^{\dagger }{c}_{s}{\Phi }_{ip}{\Phi }_{jq}^{* }{\Phi }_{ir}^{* }{\Phi }_{js}\\=\mathop{\sum}\limits_{p < q}{c}_{q}^{\dagger }{c}_{p}{c}_{p}^{\dagger }{c}_{q}=\mathop{\sum}\limits_{p < q}(1-{n}_{p}){n}_{q}.\end{array}$$
(21)

Similarly, for rs,

$$\begin{array}{ll}{{\mathcal{L}}}_{K}^{\dagger }({c}_{r}^{\dagger }{c}_{s})=\mathop{\sum}\limits_{ij}{\hat{K}}_{ij}^{\dagger }{c}_{r}^{\dagger }{c}_{s}{\hat{K}}_{ij}-\frac{1}{2}\{{\hat{{K}_{ij}}}^{\dagger }{\hat{K}}_{ij},{c}_{r}^{\dagger }{c}_{s}\}\\\qquad\qquad\,=-\frac{1}{2}({M}_{r}+{M}_{s}+1){c}_{r}^{\dagger }{c}_{s}.\end{array}$$
(22)

Here

$${M}_{k}=\mathop{\sum}\limits_{p < k}{c}_{p}{c}_{p}^{\dagger }+\mathop{\sum}\limits_{q > k}{c}_{q}^{\dagger }{c}_{q}=\mathop{\sum}\limits_{p < k}(1-{n}_{p})+\mathop{\sum}\limits_{q > k}{n}_{q}.$$
(23)

For r = s,

$${{\mathcal{L}}}_{K}^{\dagger }({c}_{r}^{\dagger }{c}_{r})=\sum _{q > r}(1-{n}_{r}){n}_{q}-\sum _{p < r}(1-{n}_{p}){n}_{r}.$$
(24)

In all the expressions above, the operators occurring in the Lindblad dynamics are all invariant to the gauge choice in the primitive coupling operators, and can all be expressed using simple operators in molecular orbitals. For a detailed derivation of the above equations, interested readers can refer to the Section III in the SI.

Consider the 1-RDM in the molecular orbital basis \(\widetilde{P}={\left({\rm{Tr}}({c}_{r}^{\dagger }{c}_{s}\rho )\right)}_{1\le s,r\le 2L}={\Phi }^{\dagger }P\Phi\). Then the equation of motion of the entries of \(\widetilde{P}\) depends on that of the 2-RDM. Specifically, for the off-diagonal elements,

$${\partial }_{t}{\widetilde{P}}_{sr}=\left\{\begin{array}{ll}-{\rm{i}}({\varepsilon }_{s}-{\varepsilon }_{r}){\widetilde{P}}_{sr}-\frac{1}{2}\langle ({M}_{r}+{M}_{s}+1){c}_{r}^{\dagger }{c}_{s}\rangle \quad &r < s,\\ -{\rm{i}}({\varepsilon }_{s}-{\varepsilon }_{r}){\widetilde{P}}_{sr}-\frac{1}{2}\langle {c}_{r}^{\dagger }{c}_{s}({M}_{r}+{M}_{s}+1)\rangle \quad &r > s.\end{array}\right.$$
(25)

For the diagonal elements,

$$\begin{array}{ll}{\partial }_{t}{\widetilde{P}}_{rr}=-\mathop{\sum}\limits_{p < r}{\widetilde{P}}_{pp}+\mathop{\sum}\limits_{q > r}{\widetilde{P}}_{qq}+\mathop{\sum}\limits_{p < r}\langle {n}_{p}{n}_{r}\rangle -\mathop{\sum}\limits_{q > r}\langle {n}_{r}{n}_{q}\rangle \\\qquad\quad=-\mathop{\sum}\limits_{p < r}\left\langle (1-{n}_{p}){n}_{r}\right\rangle +\mathop{\sum}\limits_{q > r}\left\langle (1-{n}_{r}){n}_{q}\right\rangle \\\qquad\quad=-\langle {M}_{r}{n}_{r}\rangle +\mathop{\sum}\limits_{q > r}\langle {n}_{q}\rangle.\end{array}$$
(26)

Further derivations of the equation of motion for the 2-RDM will lead to the 3-RDM, and so forth. It resembles the renowned Bogoliubov–Born–Green–Kirkwood–Yvon (BBGKY) hierarchy53. To make the system solvable, we can truncate the equations by neglecting the higher-order moment terms. At this point, if we consider these matrix elements as random processes, then the equations of motion describe a classical continuous-time Markov chain, with the stationary distribution 1-RDM approximately given by \({\widetilde{P}}{^{\star}}={\rm{diag}}(\underbrace{1,\cdots ,1}_{{N}_{{\rm{e}}}},\underbrace{0,\cdots ,0}_{2L-{N}_{{\rm{e}}}})\) according to the aufbau principle. Nonetheless, from Eq. (25) and Eq. (26), it is evident that the evolution of the RDMs is oblivious to chemical details, and are solely determined by the number of orbitals L and the number of electrons Ne. Moreover, the dynamics of the diagonal entries is independent of that of the off-diagonal entries. For an intuitive understanding of this, it resembles a “mass transport" process from higher energy orbitals to lower energy orbitals. Therefore, the change in occupation number of each orbital is influenced by the electronic population of other orbitals, leading to the appearance of 2-RDM related terms in the equations (see Fig. 4).

Fig. 4: A conceptual illustration of the evolution of the diagonal elements of the 1-RDM for ground state preparation with Type-II set.
figure 4

It is a “mass transport" process from higher energy orbitals to lower energy orbitals.

Given that the equations of motion of the entries of the 1-RDM are not closed, it is more challenging to analyze the convergence rate of the Type-II settings. Nonetheless, we may provide a qualitative estimation of the convergence rate using mean-field approximation. Let us first focus on the diagonal elements. For both r > s and r < s, applying the mean-field approximation to Eq. (25) results in the following linear homogeneous equation:

$${\partial }_{t}{\widetilde{P}}_{sr}\approx \left[-\frac{1}{2}(1+\langle {M}_{r}+{M}_{s}\rangle )+{\rm{i}}({\varepsilon }_{r}-{\varepsilon }_{s})\right]{\widetilde{P}}_{sr}.$$
(27)

So under the mean-field approximation, the off-diagonal entry \({\widetilde{P}}_{sr}\) converges exponentially to zero with an exponent of at least \(\frac{1}{2}\), since Mk is positive semidefinite for any k.

For the diagonal entries, applying the mean-field approximation on Eq. (26) gives:

$${\partial }_{t}{\widetilde{P}}_{rr}\approx -\langle {M}_{r}\rangle {\widetilde{P}}_{rr}+\sum _{q > r}{\widetilde{P}}_{qq}.$$
(28)

Note that Mk 1 for all r < Ne and r > Ne + 1, the convergence rates of the off-diagonal 1-RDM entries are exponential with the exponent of at least 1. The case r {Ne, Ne + 1} is beyond the mean-field analysis. As will be shown later, these convergence rate arguments can be verified numerically. A detailed explanation of the results above can be found in Section IV the SI.

Spectral gap of the Lindbladian in HF theory

In this section, we provide a direct characterization of the spectral gap of the Lindbladian. The definition of the spectral gap of the Lindbladian is

$${\Delta }_{{\mathcal{L}}}=-\mathop{\max }\limits_{\lambda \in \,\text{Spec}\,({\mathcal{L}})\backslash \{0\}}\Re (\lambda ).$$
(29)

Briefly speaking, the inverse spectral gap of the Lindblad generator provides an estimate for an upper bound on the mixing time, up to logarithmic factors in the error tolerance and constants depending on the stationary state32,54.

Consider the following Hamiltonian, which corresponds to the dissipative part of the Lindblad dynamics,

$${\hat{H}}_{{\rm{dp}}}=\frac{1}{2}\sum _{k}{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}.$$
(30)

Since for every jump operator \({\hat{K}}_{k}\left\vert {\psi }_{0}\right\rangle =0\), by construction, \({\hat{H}}_{{\rm{dp}}}\) can be viewed as a frustration-free parent Hamiltonian of the ground state \(\left\vert {\psi }_{0}\right\rangle\). We have the following theorem (the proof is given in Section V in the SI).

Theorem 1

If \([\hat{H},{\hat{H}}_{{\rm{dp}}}]=0\), then the spectral gap of the Lindbladian \({\mathcal{L}}\) is equal to the gap of \({\hat{H}}_{{\rm{dp}}}\).

In the HF setting, we have established that the equation of motion of the 1-RDM in the molecular orbital basis is independent of chemical details. Now we prove a stronger result, which states that the spectral gap of the Lindbladian is rigorously bounded from below using Type-I and Type-II jump operators in HF theory.

For Type-I jump operators, by calculating \({\hat{H}}_{{\rm{dp}}}\) in the molecular orbital basis (see Section V in SI for details), we obtain

$${\hat{H}}_{{\rm{dp}}}=\frac{1}{2}\sum _{p\le {N}_{{\rm{e}}}}(1-{n}_{p})+\frac{1}{2}\sum _{q > {N}_{{\rm{e}}}}{n}_{q},$$
(31)

where np, nq are number operators and commute with \(\hat{H}\), which is diagonal in the molecular orbital basis. Applying 1, we find that the spectral gap of the Lindbladian is the same as the gap of \({\hat{H}}_{{\rm{dp}}}\), which is equal to \(\frac{1}{2}\).

For Type-II jump operators, from previous calculations,

$${\hat{H}}_{{\rm{dp}}}=\frac{1}{2}\sum _{p < q}(1-{n}_{p}){n}_{q}.$$
(32)

which again only consists of number operators. Applying 1, we find that the spectral gap of the Lindbladian is also equal to \(\frac{1}{2}\).

For thermal state preparation, an estimate of the spectral gap provides a direct upper bound on the mixing time of the Lindblad dynamics in trace distance32. This relationship, however, assumes that the stationary state is invertible, which is not satisfied by the ground state density matrix. In practice, we observe that the convergence rate of observables aligns closely with the spectral gap analysis and does not exhibit dependence on system size.

Numerical verification in the HF setting

In this section, we numerically verify the convergence rate of observables, such as energy and 1-RDM at the HF level. The detailed implementation of these numerical tests can be found in Section VI in the SI.

Using the Type-I set, Fig. 5a shows that the convergence of the energy towards the ground state energy follows a universal relation \(\exp (-t)\), for any molecule in any basis set. This is because the effect of the collection action of the jump operators is to independently adjust the occupation number of each molecular orbital, until the aufbau principle is reached. We perform each simulation by propagating the 1-RDM according to Eq. (9) using the DOPRI5 solver.

Fig. 5: The numerical verification of the chemical-detail-independence in the HF setting under the two types of dissipation.
figure 5

a Convergence of energy using the Type-I set for Hartree-Fock state preparation of the molecules H4, LiH, H2O, CH4, \({\rm{HCN}}\), C2H4, N2, H10 and SO3. The y-axis is displayed on a logarithmic scale. The convergence rate is universal. The dashed lines represent the convergence of energy for different molecules, while the solid green line shows the exponential decay \(\exp (-t)\). b Convergence of energy using the Type-II set for F2, LiH and H4 molecules (square and chain geometries) in STO-3G and STO-6G. The convergence rate only depends on the number of orbitals and the number of electrons. The dashed lines represent STO-3G results, and the dash-dotted lines represent STO-6G results, for F2, LiH, and H4 (square and chain geometries).

Figure 5b shows the convergence rate of the energy using the Type-II set. The test systems are F2 (1.4 Å), LiH (1.546 Å), chain H4 (2.0 Å) and square H4 (2.0 Å) using STO-3G and STO-6G basis sets. For each molecule, STO-3G and STO-6G have the same number of orbitals and electrons. The two isomers of H4 also share the same number of orbitals and electrons. We observe that the convergence of the systems with the same L and Ne are exactly identical up to renormalization, but it varies across those molecules with different numbers, indicating a nontrivial dependence on both L and Ne. In each system, we perform the simulation by directly propagating the many-body density operator using DOPRI5 solver in the number-preserving sector with random initialization.

To further examine the convergence rate, we track the evolution of the diagonal and off-diagonal entries of the 1-RDM for the H4 within STO-3G, as shown in Fig. 6. From Fig. 6a, b, we see that the convergence rates of the diagonal entries are faster than \(\exp (-t)\) except for the highest occupied molecular orbital (HOMO) and the lowest unoccupied molecular orbital (LUMO). Additionally, the off-diagonal entries exhibit convergence exponents of at least \(\frac{1}{2}\). All of the numerical results are in very good agreement with the mean-field analysis discussed previously.

Fig. 6: Numerical demonstration of the convergence rate of the diagonal and off-diagonal entries of the 1-RDM with Type-II set.
figure 6

It is tested on the H4 system in STO-3G. a Convergence of the diagonal entries \({\widetilde{P}}_{rr}=\langle {n}_{r}\rangle\) of the 1-RDM for rNe. The colored dashed lines are diagonal entries that increase faster than the exponential reference \(\exp (-t)\) (solid purple). The solid red line corresponds to the growth of the HOMO occupation number. b Convergence of the diagonal entries \({\widetilde{P}}_{rr}=\langle {n}_{r}\rangle\) of the 1-RDM for rNe + 1. The colored dashed lines are diagonal entries that decrease faster than the exponential reference \(\exp (-t)\) (solid purple). The solid blue line corresponds to the decay of the LUMO occupation number. c Convergence of the off-diagonal entries of the 1-RDM. We plot \(| {\widetilde{P}}_{ij}| /| {\widetilde{P}}_{ij}(0)|\) for each curve. The dashed lines represent the decay of off-diagonal entries, which all converge faster than the exponential reference \(\exp (-t/2)\) shown in green solid line.

Transferability to full ab initio calculations

Both Type-I and Type-II coupling operators can be readily applied in full ab initio calculations. However, the jump operators are no longer linear or quadratic in fermionic operators. This is because, in the ab initio Hamiltonian

$$\hat{H}=\mathop{\sum }\limits_{p,q=1}^{2L}{T}_{pq}{c}_{p}^{\dagger }{c}_{q}+\frac{1}{2}\mathop{\sum }\limits_{p,q,r,s=1}^{2L}{S}_{pqrs}{c}_{p}^{\dagger }{c}_{q}^{\dagger }{c}_{r}{c}_{s},$$
(33)

the presence of quartic terms prevent us from applying the Thouless theorem to simplify the Heisenberg evolution of the coupling operators \(A(s)={e}^{{\rm{i}}\hat{H}s}A{e}^{-{\rm{i}}\hat{H}s}\), as in Equations (7), (8) and (19). Consequently, unlike in the HF Hamiltonian setting, we cannot expect to obtain analytic or semi-analytic solutions for the dynamics of physical observables like energy or reduced density matrices. To conceptually demonstrate the transferability of our approach to full ab initio calculations, we, therefore, perform numerical simulations of the Lindblad dynamics with Types I and II jump operators in the FCI space.

For small-sized systems up to 12 spin orbitals, we may choose to propagate a many-body density operator, or a stochastic wavefunction by “unraveling” Lindblad dynamics and performing stochastic averages (see the Methods section as well as Section VI in SI), in the Fock space or in the FCI space. For systems of larger sizes, the only feasible option for direct simulation is to simulate the stochastic wavefunction using Type-II jump operators in the FCI space. We quantify the convergence of the Lindblad dynamics based on the rate of energy convergence.

We note that both Types I and II sets involve a large number of jump operators, which can lead to increased simulation costs. However, in practice, the number of jump operators can be significantly reduced with minimal impact on efficiency. This is because the primary challenges in simulating chemical systems often arise in the low-energy space, particularly near the Fermi surface when we start with the HF initial guess. As a result, we can apply “active space” techniques to reduce the number of jump operators, focusing only on the most relevant degrees of freedom. For instance, if we start from the vacuum state, it is unnecessary to include all operators from the set \({{\mathcal{A}}}_{{\rm{I}}}={\{{a}_{p}\}}_{p = 1}^{2L}\cup {\{{a}_{p}^{\dagger }\}}_{p = 1}^{2L}\), as the HF state is confined to the low-energy sector. Therefore, we can instead select the subset \({{\mathcal{S}}}_{{\rm{I}}}^{r}={\{{c}_{i,\uparrow },{c}_{i,\uparrow }^{\dagger },{c}_{i,\downarrow },{c}_{i,\downarrow }^{\dagger }\}}_{i = {N}_{{\rm{e}}}-r+1}^{{N}_{{\rm{e}}}+r}\), which includes only the 8r operators defined around the Fermi surface under the molecular orbital basis.

We perform the numerical tests for \({{\mathcal{S}}}_{{\rm{I}}}^{r}\). In all of the four systems demonstrated in Fig. 7, we choose the initial state to be the HF state. We observe that energy decreases to λ0 with a fidelity within the chemical accuracy, which shows a good transferability of the active space reduction idea to full ab initio calculations for the Type-I setting.

Fig. 7: Monte-Carlo trajectory- based simulations for hydrogen chain systems.
figure 7

Tested systems are: a H2 at bond length 0.7 Å in STO-3G, b H2 at bond length 0.7 Å in 6-31G, c chain-like H4 at bond length 0.7 Å in STO-3G and d chain-like H6 at bond length 0.7 Å in STO-3G. We choose \({{\mathcal{S}}}_{{\rm{I}}}^{r}\) as the coupling matrices with r = 1, 1, 1, 2 respectively and initialize with \(\left\vert {\rm{HF}}\right\rangle\) in all of the four cases. In each panel, the red line represents the energy as a function of time, and the blue line indicates the ground-state energy of the corresponding system.

Similarly, for the Type-II set, we can start from the HF state or low-excited Slater determinant and include only the jump operators defined on a small number of orbitals around the Fermi surface. In this case, we consider the following reduced set of particle-number preserving coupling operators

$${{\mathcal{S}}}_{{\rm{II}}}^{r}=\{{c}_{i,\sigma }^{\dagger }{c}_{j,\tau }| i,j\in \{{N}_{{\rm{e}}}-r+1,\cdots \,,{N}_{{\rm{e}}}+r\},\sigma ,\tau \in \{\uparrow ,\downarrow \}\},$$
(34)

which has 16r2 coupling operators in total. In practice, setting r = 1 or r = 2 is typically sufficient to achieve convergence of the system to its ground state. The corresponding numerical results are presented in Fig. 8. To compare the convergence rates of the full ab initio and HF state preparation with the reduced set \({{\mathcal{S}}}_{{\rm{II}}}^{r}\), we begin from the (triplet) excited Slater determinant \({c}_{{N}_{{\rm{e}}}+1,\uparrow }^{\dagger }{c}_{{N}_{{\rm{e}}},\downarrow }\left\vert {\rm{HF}}\right\rangle\). Notably, the convergence rate of the full ab initio state preparation is observed to be not much slower than that of the HF method, in the sense of Lindblad simulation time required to reach chemical accuracy.

Fig. 8: Monte-Carlo trajectory based simulations for full ab initio molecular systems within the particle-number preserving sector with \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) and \({{\mathcal{T}}}_{{\rm{II}}}^{r}\).
figure 8

In all cases, we initialize with the (triplet) excited Hartree-Fock Slater determinant \({c}_{{N}_{{\rm{e}}}+1,\uparrow }^{\dagger }{c}_{{N}_{{\rm{e}}},\downarrow }\left\vert {\rm{HF}}\right\rangle\). a–f display results for the H2, F2, LiH, Cl2, H2O, and BeH2 molecules, respectively. In each panel, the orange line and the green line represent the energy as a function of time using the \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) and \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) sets respectively, while the blue line indicates the ground-state energy of the corresponding system. g presents the Lindblad simulation time required to achieve chemical accuracy with full ab initio and simplified Hartree-Fock Hamiltonians. The orange and green bars represent the FCI simulation time using the \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) and \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) sets, respectively, while the red bars and blue bars represent the Hartree-Fock simulation time using the \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) set and the \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) set, respectively.

In fact, the set of Type-II orbitals can be further compressed. For instance, we may take the subset \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) of \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) that contains only the hopping between nearest energy levels of molecular orbitals:

$$\begin{array}{ll}{{\mathcal{T}}}_{{\rm{II}}}^{r}=\left\{{c}_{i,\sigma }^{\dagger }{c}_{j,\tau }| i,j\right.\in \{{N}_{{\rm{e}}}-r+1,\cdots \,,{N}_{{\rm{e}}}+r\},\\\qquad\quad\left.| i-j| =1,\quad \sigma ,\tau \in \{\uparrow ,\downarrow \}\right\}\end{array}$$
(35)

The number of operators in \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) increases only linearly with L for fixed r. The numerical convergence behaviors \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) are shown in Fig. 8. We observe that the further compression of \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) maintains the simulation efficiency, in the sense that the Lindblad simulation time required to achieve chemical accuracy with the \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) set remains comparable to or only slightly longer than that needed with the \({{\mathcal{S}}}_{{\rm{II}}}^{r}\) set.

The ground state preparation via Lindbladians with the set \({{\mathcal{T}}}_{{\rm{II}}}^{r}\) can perform well even in strongly correlated systems where the HF state poorly approximates the true ground state. Examples like the stretched square H4 highlight these challenges due to their nearly degenerate low energy states, which even highly accurate methods like CCSD(T), often referred to as the “gold standard" in molecular quantum chemistry, struggle with refs. 55,56,57. Our results show that Lindblad dynamics effectively captures the correlation energy. As shown in Fig. 9a, as the bond length of the square H4 system increases, the energy accuracy of the HF initial guess decreases. Concurrently, the initial overlap between the HF state and the true ground state diminishes, indicating a growing extent of strong correlation. However, as illustrated in Fig. 9b, the convergence of Lindblad dynamics remains largely unaffected by the degree of strong correlation starting from the HF initial state at various bond lengths. Meanwhile, we observe that increasing the extent of strong correlation leads to slower asymptotic convergence of the Lindblad dynamics. Specifically, as shown in Fig. 9c, at bond lengths where the Hamiltonian gap \({\Delta }_{\hat{H}}\) (i.e., the gap between the ground and first excited state energies) becomes smaller, the spectral gap of the Lindbladian is also reduced. Correspondingly, the exponential fitting results in Fig. 9b demonstrate slower asymptoticconvergence rates. These observations suggest that stronger correlations in molecular systems can lead to slower convergence to the ground state.

Fig. 9: Monte-Carlo trajectory based simulations for the strong-correlated H4 molecule in STO-3G at different bond lengths.
figure 9

a The accuracy of the HF, CCSD and CCSD(T) energy and the initial overlap between the HF state and the true ground state ρg at different bond lengths for square H4 system in STO-3G. The green, yellow, and purple lines show the energy errors from HF, CCSD, and CCSD(T), respectively; the blue line shows the initial overlap, and the red dashed line marks chemical accuracy. b The energy error relative to FCI energy vs. Lindblad simulation time at bond lengths d = 1.2, 1.4, 1.6, and 2.0 Å. The solid lines (blue, orange, green, red) represent Lindblad dynamics at bond lengths d = 1.2, 1.4, 1.6, and 2.0 Å; the red dotted line indicates chemical accuracy, and the dashed lines show the fitting. c The spectral gaps of the Lindbladian \({\mathcal{L}}\) and the Hamiltonian at bond lengths d = 1.2, 1.4, 1.6 and 2.0 Å. The blue line denotes the Lindbladian gap \({\Delta }_{{\mathcal{L}}}\), while the orange line denotes the Hamiltonian gap \({\Delta }_{\hat{H}}\).

It is also noteworthy that in Fig. 9b, the behaviors at short and long bond lengths are different. At short bond lengths, the pre-asymptotic decay is relatively rapid and the error quickly falls below chemical accuracy, making the preparation appear easier. In contrast, at long bond lengths, the pre-asymptotic decay is shorter-lived and the convergence is dominated by the smaller spectral gap, requiring a longer time to reach chemical accuracy.

Discussion

To our knowledge, this work is the first Lindblad-based ground state preparation algorithm for ab initio electronic structure calculations. The Lindblad dynamics is employed as an algorithmic tool for dissipative state engineering, which can be constructed without relying on variationally adjusted parameters. A notable advantage of this approach is that the effectiveness of the method can be nearly independent of the quality of the initial state. This stands in sharp contrast to QPE, whose cost depends directly on the initial state’s overlap with the target state and can fail if this overlap vanishes. The “shoveling” process in dissipative state preparation shares some conceptual similarities with various forms of imaginary time evolution (ITE)3,57,58,59,60,61,62,63, but also exhibits notable differences. A direct implementation of ITE through the application of \({e}^{-\tau \hat{H}}\) does not yield a CPTP map, and its quantum realization again requires nontrivial overlaps between the initial and target states. The quantum imaginary time evolution (QITE) algorithm3 addresses some of these challenges, but it relies on a tomography procedure and its cost can scale explicitly exponentially with system size.

In the dissipative state preparation framework, we prove that the Lindblad dynamics with Types I and II jump operators can converge rapidly in a simplified HF setting, and validate the transferability to full ab initio calculations even for systems exhibiting strong correlation behaviors. In order to perform numerical simulation for larger systems with tens to hundreds of spin-orbitals, even propagating the state vector in the FCI space can be very costly, and advanced simulation methods, such as quantum Monte Carlo methods or tensor network-based methods must be employed. For practical implementation on quantum devices, the simulation of Lindblad dynamics involves repeatedly applying circuit blocks with intermediate measurements, continuing until the dynamics approach a fixed point. As a result, a large mixing time in certain systems can lead to a substantial overall simulation cost. It is, therefore, important to develop a stronger theoretical framework for analyzing convergence rates in the ground state preparation problem. Recent progress in this direction can be found in ref. 64. This work may also provide new perspectives of ground state preparation in other areas, such as nuclei physics, fermions with random coefficients (e.g., the SYK model), or optimization problems on unstructured graphs.

Methods

Choice of filter function and sketch of quantum simulation algorithm

In this section, we discuss the choice of filter function in ref. 25 and briefly review quantum algorithms for simulating the Lindblad dynamics.

We begin by reviewing the definition of the jump operator \({\hat{K}}_{k}\). Since the eigenvectors of \(\hat{H}\) are typically not accessible, we express \({\hat{K}}_{k}\) in the time domain as follows:

$${\hat{K}}_{k}={\int_{{\mathbb{R}}}}f(s){A}_{k}(s){\rm{d}}s$$
(36)

where \({A}_{k}(s)={e}^{{\rm{i}}\hat{Hs}}{A}_{k}{e}^{-{\rm{i}}\hat{Hs}}\) is the Heisenberg evolution of Ak and \(f(s)=\frac{1}{2\pi }{\int}_{{\mathbb{R}}}\hat{f}(\omega ){e}^{-{\rm{i}}\omega s}{\rm{d}}\omega\) is the inverse Fourier transform of the filter \(\hat{f}\) in the frequency domain. One possible choice for the filter function in the frequency domain \(\hat{f}\) is given by the following form25

$$\hat{f}(\omega ):= \frac{{\rm{erf}}(\frac{\omega +a}{{\delta }_{a}})-{\rm{erf}}(\frac{\omega +b}{{\delta }_{b}})}{2}$$
(37)

where \({\rm{erf}}(\omega ):= \mathop{\int}\nolimits_{0}^{\omega }\frac{2}{\sqrt{\pi }}{e}^{-{t}^{2}}{\rm{d}}t\) denotes the error function. Here, a is chosen to be an energy cutoff satisfying \(a > 2\parallel \hat{H}{\parallel }_{2}\) and b is chosen to be the spectral gap of the Hamiltonian Δ λ1λ0. The parameters δa and δb are chosen to be on the same order of a and b, respectively. In this setup, \(\hat{f}\) is approximately supported on the interval \([-2\parallel \hat{H}{\parallel }_{2},-\Delta ]\) (Note that the largest eigenvalue difference is \(| {\lambda }_{i}-{\lambda }_{j}| \le 2\parallel \hat{H}{\parallel }_{2}\)). The inverse Fourier transform f can also be computed analytically as

$$f(s)=\frac{1}{2\pi {\rm{i}}s}\left(\exp ({\rm{i}}as-{\delta }_{a}^{2}{s}^{2}/4)-\exp ({\rm{i}}bs-{\delta }_{b}^{2}{s}^{2}/4)\right)$$
(38)

where \(f(0)=\frac{a-b}{2\pi }\) is obtained by taking the limit s → 0. f(s) is a smooth complex-valued function with the modulus f(s) exhibiting a rapid decay when s. Specifically, f(s) approximately vanishes when s > Ss for some Ss = Θ(1/Δ), which allows us to truncate the infinite integral and use the trapezoidal quadrature rule to approximate the jump operator \({\hat{K}}_{k}\):

$${\hat{K}}_{k}\approx {\int_{-{S}_{s}}^{{S}_{s}}}f(s)A(s){\rm{d}}s\approx \mathop{\sum }\limits_{l=-{M}_{s}}^{{M}_{s}}f({s}_{l})A({s}_{l}){w}_{l}$$
(39)

where Ms is the number of quadrature nodes on [0, Ss] or [ − Ss, 0], sl = lΔs and Δs = Ss/Ms. The weights {wl} are chosen to be Δs/2 for l = ± Ms and Δs for − Ms + 1 ≤ lMs − 1.

To simulate the Lindblad dynamics \(\exp ({\mathcal{L}}t)\) on quantum devices, we can begin with a first order Trotter splitting \(\exp ({\mathcal{L}}t)\approx {(\exp ({{\mathcal{L}}}_{H}\tau )\cdot \exp ({{\mathcal{L}}}_{K}\tau ))}^{t/\tau }\). The coherent dynamics \(\exp ({{\mathcal{L}}}_{H}\tau )\) is just the Hamiltonian simulation \(\exp (-{\rm{i}}\hat{H}\tau )\). For the nonunitary dissipative part \(\exp ({{\mathcal{L}}}_{K}\tau )\), we can reduce this problem to a dilated Hamiltonian simulation up to a partial trace on the ancilla qubit, namely

$$\exp ({{\mathcal{L}}}_{K}\tau )[\rho ]={{\rm{Tr}}}_{a}{e}^{-{\rm{i}}\widetilde{K}\sqrt{\tau }}(\left\vert {0}_{a}\right\rangle \left\langle {0}_{a}\right\vert \otimes \rho ){e}^{{\rm{i}}\widetilde{K}\sqrt{\tau }}+O({\tau }^{2}).$$
(40)

Here, \({{\rm{Tr}}}_{a}\) denotes the partial trace operation on the ancilla qubit. For simplicity we consider only one jump operator K, and \(\widetilde{K}\) is defined by the Hermitian dilated matrix \(\widetilde{K}=\left(\begin{array}{cc}0&{K}^{\dagger }\\ K&0\end{array}\right)\). Then the dilated Hamiltonian simulation \({e}^{{\rm{i}}\widetilde{K}\sqrt{\tau }}\) can be efficiently performed on a quantum computer using a second-order Trotter splitting according to the discretized time evolution of K shown in Eq. (39) (see ref. 25, Section III for details).

Review of HF theory in the second quantized representation

The HF theory finds a self-consistent single-particle operator approximation to the many-body Hamiltonian taking the form

$${\hat{H}}_{{\rm{HF}}}=\mathop{\sum }\limits_{p,q=1}^{2L}{F}_{pq}{a}_{p}^{\dagger }{a}_{q},\quad {F}_{pq}={h}_{pq}+{V}_{pq}-{K}_{pq}.$$
(41)

Here L is the number of spatial orbitals, and 2L is the number of spin orbitals. The operators \({a}_{p}^{\dagger }\) and ap are fermionic creation and annihilation operators with respect to the orthonormalized spin orbitals. Here, hpq is a fixed single-particle matrix. The direct Coulomb and Fock exchange terms, denoted by Vpq and Kpq, respectively, should be solved self-consistently with respect to the one-particle density matrix (1-RDM), defined as

$${D}_{pq}=\mathop{\sum }\limits_{i=1}^{{N}_{{\rm{e}}}}{\Phi }_{pi}{\Phi }_{qi}^{* },\quad p,q=1,2,\cdots \,,2L.$$
(42)

Here \(\Phi \in {{\mathbb{C}}}^{2L\times 2L}\) is a unitary matrix called the molecular orbital coefficients, which are eigenfunctions of the Fock matrix F. We denote FΛ = ΛΦ with Λ = diag(ε1, , ε2L).

Once D is fixed, the HF Hamiltonian in Eq. (41) is a quadratic Hamiltonian. Its ground state has an explicit expression in the Slater-determinant form:

$$\left\vert {\rm{HF}}\right\rangle ={c}_{1}^{\dagger }\cdots {c}_{{N}_{{\rm{e}}}}^{\dagger }\left\vert {\rm{vac}}\right\rangle ,$$
(43)

where the new set of creation operators \(\{{c}_{i}^{\dagger }\}\) are given by the unitary transform of \(\{{a}_{i}^{\dagger }\}\) via

$$({c}_{1}^{\dagger },\cdots \,,{c}_{2L}^{\dagger })=({a}_{1}^{\dagger },\cdots \,,{a}_{2L}^{\dagger })\Phi .$$
(44)

Note that \(\left\vert {\rm{HF}}\right\rangle\) is the ground state of the converged Hamiltonian \({\hat{H}}_{{\rm{HF}}}\) with eigenvalue \({E}_{0}=\mathop{\sum }\nolimits_{k = 1}^{{N}_{{\rm{e}}}}{\varepsilon }_{k}\). This sum of eigenvalues can also be expressed as \({\rm{Tr}}(FD)\), which differs from the HF energy by a nonlinear term that depends only on D.

Monte-Carlo trajectory-based method for unraveled Lindblad dynamics

To solve the Lindblad dynamics for ground state preparation at the FCI level, we may directly propagate the many-body density operator \(\rho (t)\in {{\mathbb{C}}}^{{2}^{L}\times {2}^{L}}\) using a differential equation solver65. Another approach is to “unravel” the Lindblad dynamics for the many-body density operator66,67. Broadly speaking, we employ a family of Monte-Carlo-type algorithms where we only propagate the state vector \(\left\vert \psi (t)\right\rangle\) in some stochastic schemes, and the many-body density operator ρ(t) at the time t can be retrieved by taking the average of the random matrix \(\left\vert \psi (t)\right\rangle \left\langle \psi (t)\right\vert\), i.e., \(\rho (t)={\mathbb{E}}\left\vert \psi (t)\right\rangle \left\langle \psi (t)\right\vert .\) The deterministic Lindblad equation for the dynamics of the many-body density operator is now expressed using stochastic pure-state trajectories, thus leading to a quadratic reduction in dimensionality, at the cost of incorporating statistical averaging across multiple runs.

The simplest setting is the discrete form of unraveling, or quantum jump method68. The quantum-jump pure-state dynamics are evolved under an effective non-Hermitian Hamiltonian \(\hat{H}-{\rm{i}}/2{\sum }_{k}{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\), with stochastic quantum jumps occurring intermittently throughout the evolution. Specifically, it can be described by the following stochastic differential equation (SDE):68,69,70

$$\begin{array}{ll}{\rm{d}}\psi =\left(-{\rm{i}}\hat{H}-\frac{1}{2}\mathop{\sum}\limits_{k}({\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}-\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle )\right)\psi {\rm{d}}t\\\qquad+\mathop{\sum}\limits_{k}\left(\frac{\hat{{K}_{k}}}{\sqrt{\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle }}-1\right)\psi {\rm{d}}{N}_{t}^{k}.\end{array}$$
(45)

Here, Nt denotes a Poisson process with a splitting \({N}_{t}={\sum }_{k}{N}_{t}^{k}\). For a sufficiently small time step Δt, the Poisson increment ΔNt takes the values 0 (no jump) or 1 (jump) with expectation value \({\mathbb{E}}(\Delta {N}_{t})={\sum }_{k}{\parallel \hat{{K}_{k}}\psi \parallel }^{2}\Delta t={\sum }_{k}\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle \Delta t\). The Poisson processes \(\{{N}_{t}^{k}\}\) are mutually independent with intensities given by \({\parallel \hat{{K}_{k}}\psi \parallel }^{2}=\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle\). This implies that, in the event of a jump, we select the jump operator \({\hat{K}}_{k}\) to apply to ψ with a probability proportional to \(\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle\) for k = 1, 2, , N. It can be shown that the density operator, defined as \(\rho (t)={\mathbb{E}}\left\vert \psi (t)\right\rangle \left\langle \psi (t)\right\vert\) indeed solves the Lindblad dynamics, by calculating \(\frac{{\rm{d}}\psi {\psi }^{\dagger }}{{\rm{d}}t}\) using Itô’s lemma for the Poisson process and then taking the expectation.

For a Monte-Carlo-type simulation of Eq. (45), we first discretize the time interval by the time step Δt. Then at each step, we randomly pick up k [N + 1] (assume we have N jump operators in total) with respect to the distribution

$${p}_{k}=\left\{\begin{array}{l}{\parallel {\hat{K}}_{k}{\psi }_{n}\parallel }^{2}\Delta t,\quad k\le N\quad \\ 1-\mathop{\sum }\limits_{\ell =1}^{N}{p}_{\ell },\quad k=N+1.\quad \end{array}\right.$$
(46)

If k = 1, , N, we update the trajectory using \({\psi }_{n+1}={\hat{K}}_{k}{\psi }_{n}/\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle\). If K = N + 1, we update using \({\psi }_{n+1}={\psi }_{n}-({\rm{i}}\hat{H}+\frac{1}{2}{\sum }_{k}{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}){\psi }_{n}\Delta t\). Then, the many-body density operator ρ(tn) at time tn can be approximated by taking the average of the pure states \(\left\vert \psi ({t}_{n})\right\rangle \left\langle \psi ({t}_{n})\right\vert\) over the trajectories65.

We can also consider a variant of the Monte Carlo-type algorithm that is slightly different but essentially equivalent to the one described above. Notice that65

$$\begin{array}{ll}\quad{\left\Vert\exp ({\rm{-i}}\left(H-\frac{{\rm{i}}}{2}\mathop{\sum}\limits_{k}{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\right)\Delta t)\psi (t)\right\Vert}^{2}\\ =1-\mathop{\sum}\limits_{k}\Vert{\hat{{K}_{k}\psi (t)}}{\Vert}^{2}\Delta t+{\mathcal{O}}({(\Delta t)}^{2})\end{array}$$
(47)

which implies that the decaying evolution governed by the non-Hermitian effective Hamiltonian primarily dictates the probability distribution. Consequently, we actually do not need to compute \({\parallel {\hat{K}}_{k}{\psi }_{n}\parallel }^{2}\) at every time step. Instead, we can first calculate \({\parallel {\psi }_{n}\parallel }^{2}\) and sample a random number R ~ U(0, 1) to decide whether jump or not. If \(R < {\parallel {\psi }_{n}\parallel }^{2}\), we just propagate the trajectory using \({\psi }_{n+1}={\psi }_{n}-\left({\rm{i}}\hat{H}+\frac{1}{2}{\sum }_{k}{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\right){\psi }_{n}\Delta t\). If \(R\ge {\parallel {\psi }_{n}\parallel }^{2}\), we calculate each \(\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle\) and update \({\psi }_{n+1}=\hat{{K}_{k}}{\psi }_{n}/\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle\) with a probability proportional to \(\langle {\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\rangle\) for k = 1, 2, , N. After this, we reset the random number R ~ U(0, 1). Essentially, this corresponds to evolving the trajectory using \(\hat{H}-{\rm{i}}/2{\sum }_{k}{\hat{K}}_{k}^{\dagger }{\hat{K}}_{k}\) deterministically causing the norm of ψ to decrease, until a random quantum jump occurs. At this point, the norm is restored to 1, and the process repeats52.

In all of the steps in the unraveling algorithm, only matrix-vector multiplication is involved.