Quantum Computing
Quantum Computing
Robert Schade ,1 Carsten Bauer ,1 Konstantin Tamoev,2 Lukas Mazur ,1 Christian Plessl ,1,3 and Thomas D. Kühne2
1
Paderborn Center for Parallel Computing, Paderborn University, 33098 Paderborn, Germany
2
Dynamics of Condensed Matter and Institute for Sustainable Systems Design, Chair of Theoretical Chemistry,
Paderborn University, 33098 Paderborn, Germany
3
Department for Computer Science, Paderborn University, 33098 Paderborn, Germany
A parallel hybrid quantum-classical algorithm for the solution of the quantum-chemical ground-state energy
problem on gate-based quantum computers is presented. This approach is based on the reduced density-matrix
functional theory (RDMFT) formulation of the electronic structure problem. For that purpose, the density-matrix
functional of the full system is decomposed into an indirectly coupled sum of density-matrix functionals for
all its subsystems using the adaptive cluster approximation to RDMFT. The approximations involved in the
decomposition and the adaptive cluster approximation itself can be systematically converged to the exact result.
The solutions for the density-matrix functionals of the effective subsystems involves a constrained minimization
over many-particle states that are approximated by parametrized trial states on the quantum computer similarly
to the variational quantum eigensolver. The independence of the density-matrix functionals of the effective
subsystems introduces a new level of parallelization and allows for the computational treatment of much larger
molecules on a quantum computer with a given qubit count. In addition, for the proposed algorithm techniques
are presented to reduce the qubit count, the number of quantum programs, as well as its depth. The evaluation
of a density-matrix functional as the essential part of our approach is demonstrated for Hubbard-like systems on
IBM quantum computers based on superconducting transmon qubits.
DOI: 10.1103/PhysRevResearch.4.033160
proposed algorithm inherits the noise tolerance and suitability but not on the one-particle Hamiltonian ĥ that includes the
for near-term quantum computers. external potential.
The structure of the paper is as follows. First, we introduce Several approximations of the RDMF have been developed
the employed RDMFT-based approach in Sec. II. Afterwards, and even simple variants suffice to describe strong elec-
in Sec. III, we introduce our hybrid quantum-classical algo- tronic correlations beyond the abilities of local or semilocal
rithm for computing the RDMF on quantum hardware. The exchange-correlation functionals [16,17]. However, promis-
subsequent sections are then concerned with the efficient im- ing functionals have also shown pathological behaviours [18].
plementation of this algorithm on noisy intermediate-scale It is therefore worthwhile to take a step back to the definition
quantum (NISQ) devices. Concretely, we discuss various pos- of the RDMF [13,19],
sibilities for reducing the number of qubit operations (Sec. IV)
and the number of quantum programs (Sec. V). Lastly, we F Ŵ [ρ (1) ] = min Pi i |Ŵ |i (4)
{Pi ,|i }→ρ (1) , Pi =1
showcase exemplary results for the evaluation of the RDMF i
i
of the half-filled Hubbard chain as obtained in noise-free
as the constrained minimum over an ensemble of fermionic
quantum simulation,s as well as genuine simulations on NISQ
many-particle wave functions |i with ensemble probabili-
hardware by IBM in Sec. VI.
ties Pi . Beyond normalization, the major requirement is that
the ensemble {Pi , |i } must correspond to the given one-
II. REDUCED DENSITY-MATRIX FUNCTIONAL THEORY particle reduced density matrix ρ (1) via
A. Theoretical framework (1)
ρα,β = Pi i |ĉβ† ĉα |i . (5)
RDMFT for fermionic systems uses the one-particle re- i
duced density matrix, i.e.,
Focusing on the case of a nondegenerate ground state and zero
(1)
ρα,β = ĉβ† ĉα , (1) electron temperature, the minimization can be simplified to
only a single many-particle wave function
with the fermionic annihilation operator ĉα for electrons in
the one-particle basis state with index α and creation operator F Ŵ [ρ (1) ] = min |Ŵ |, (6)
ĉβ† for electrons in the one-particle basis state with index β, as |→ρ (1)
the basic quantity. Assuming a finite-dimensional one-particle
with the constraints
basis of Nχ states, i.e., α, β ∈ {1, ..., Nχ }, the one-particle
reduced density matrix ρ (1) ∈ C Nχ ×Nχ is hermitian. As such, (1)
ρα,β = |ĉβ† ĉα |. (7)
RDMFT can be seen as an extension to density functional the-
ory (DFT) in the sense that beyond the electron density, which Let us note in passing that the generalization of RDMFT to
(1)
corresponds to the diagonal elements of ρα,β , all elements finite temperatures is relatively straightforward [11,20].
of the one-particle reduced density matrix are considered. For an efficient minimization of the total energy in Eq. (3),
It is suitable for the description of strong local electronic the derivatives of the RDMF F Ŵ [ρ (1) ] with respect to the
(1)
correlations in solids and molecules because the one-particle elements of the one-particle reduced density matrix ρα,β , are
reduced density matrix explicitly contains information about required. Within our hybrid classical-quantum algorithm—
the orbital occupancies that are essential for the description of to be introduced in Sec. III—these derivatives are readily
electronic correlations. Similar to DFT, RDMFT is an exact available as Lagrange multipliers during the constrained min-
theory if the underlying functionals are not approximated. imization procedure.
Given a many-particle Hamiltonian of an N-particle system Thus far, no approximations have been introduced and the
at zero temperature, constrained minimization in Eq. (4) still entails the exponen-
tial complexity of the many-particle problem. However, as we
Ĥ = ĥ + Ŵ , (2) will show in the following section, the minimization problem
which is composed of a noninteracting (single-particle) required for the RDMF is well suited for quantum computers
and can be solved via a hybrid quantum-classical algorithm
operator ĥ = α,β hα,β ĉα† ĉβ and a two-particle interaction
on NISQ quantum hardware.
operator Ŵ = 21 α,β,γ ,δ Uα,β,δ,γ ĉα† ĉβ† ĉγ ĉδ , the ground-state
energy EN (ĥ + Ŵ ) of the system can be expressed as [11,13]
B. RDMFT-based ab inito molecular dynamics simulations
EN (ĥ + Ŵ ) = min Tr(ρ h) + F [ρ ].
(1) Ŵ (1)
The overall goal of this method is to perform ab initio
ρ (1) ,0ρ (1) 1,Tr(ρ (1) )=N
molecular dynamics simulations. Hence, analytical nuclear
(3)
forces are required that can be evaluated within RDMFT as
Here, the condition 0 ρ (1) 1 is shorthand for the
ensemble-representability of the one-particle reduced density dEN
matrix that is, its eigenvalues fi (occupations) must fulfill Fi = − (8a)
dRi
0 fi 1. This way, the exponential many-particle com-
d (1) (1)
plexity of the fermionic problem is absorbed into the RDMF =− Tr ρmin h + F Ŵ ρmin , (8b)
F Ŵ [ρ (1) ], which is the analogon of the exchange-correlation dRi
functional in DFT. Since F Ŵ [ρ (1) ] is universal, it only depends with the position Ri of atom i and the one-particle reduced
(1)
on the interaction and the one-particle reduced density matrix, density matrix ρmin in the minimum of Eq. (3). The derivatives
033160-2
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
033160-3
ROBERT SCHADE et al. PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
(1)
FIG. 2. Convergence of the RDMF F Ŵlocal,1 [ρACA(n) ] of the
ground-state density matrix for a half-filled 16-site Hubbard chain
(U/t = 1) for the local interaction Ŵlocal,1 on the first site of chain: the
(1)
nth order ACA is compared to the value of the RDMF F Ŵlocal,1 [ρnaive,n ]
with a naive truncation, where the truncated density matrix ρnaive,n (1)
033160-4
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
Algorithm 1. RDMF with augmented Lagrangian. the augmented Lagrangian can be written as
1
set initial parameters u, initial penalties μ, initial Lagrange L(u, λ, μ) = W (u) + λi ci (u) + μi (ci (u))2 , (22)
multipliers λ 2 i
i
while not converged do
solve unconstrained problem minu L(u, λ, μ) with the objective function W (u), the Lagrange multipliers
λ ← λ + μc(u) multiplier update λi , and penalty parameters μi . After setting initial penalty
μ ← f (μ, c(u)) penalty update parameters μ0 = μinitial and Lagrange multipliers λ0 = λinitial
end while the main loop of the augmented Lagrangian begins and re-
quires in every loop iteration k the solution of the auxiliary
unconstrained problem
is an upper bound to the exact constrained minimum of Eq. (6)
if the parametrization is sufficiently flexible to allow the ful- uk = argminu L(u, λk , μk ). (23)
fillment of the density-matrix constraints, i.e., there exists a u
so that The constraint violations ci (uk ) in this iteration are then
used to update the Lagrange multipliers as λi,k+1 = λi,k +
(1)
ρβ,α = (u)|ĉα† ĉα |(u) (18) μi,k ci (uk ) (first-order multiplier update). Additionally, the
penalty parameters μk can be modified for example with a
for the given ρ (1) . constant factor β > 1, i.e., μk+1 = βμk before the algorithm
Similar to the VQE this can be used to construct a hybrid proceeds to the next iteration k → k + 1. Thus, for the so-
quantum-classical algorithm, where the parameters u are op- lution of the constrained minimization only unconstrained
timized on a classical computer, but all expectation values problems in Eq. (23) have to be solved. Existing techniques
of quantum mechanical observables in the state |(u) are from noisy unconstrained minimization such as the simulta-
evaluated on a quantum computer. Relevant observables to be neous perturbation stochastic approximation (SPSA) [31,32]
evaluated on the quantum computer are the elements of the or related noise-resistant algorithms can be used.
one-particle reduced density matrix The augmented Lagrangian approach as a method for con-
(1)
ρβ,α (u) = (u)|ĉα† ĉα |(u) (19) strained minimization has the advantage that no derivatives
of the objective function or constraints are required and that
and elements of the two-particle reduced density matrix ρ (2) , exact constraint satisfaction is not required in every iteration.
i.e., A major advantage compared to the use of penalty methods
(2)
is that due to the presence of the Lagrange multipliers the
ρα,β,γ ,δ (u) = (u)|ĉγ ĉδ ĉα ĉβ |(u).
† †
(20) penalty parameters do not have to be increased to infinity,
Only those elements are required for which the corresponding which drastically reduces the problem of ill conditioning. The
matrix elements of the interaction Hamiltonian are nonzero. cost to be paid for this advantage is the necessity for multiple
With these quantities, the expectation value of the interac- solutions of the unconstrained subproblems in Eq. (23) that,
however, can be mediated by a warm-start strategy. The aug-
tion Hamiltonian W̃ (u) = (u)|W̃ˆ |(u) can be estimated. mented Lagrangian approach for the RDMF usually converges
These expectation values carry the exponential complexity of in between five and 10 outer iterations of the augmented
the fermionic many-particle problem and can be evaluated Lagrangian [33].
efficiently with gate-based quantum computers. A further important property of the augmented Lagrangian
The practical evaluation of expectation values requires two approach is the fact that the Lagrange multipliers λi corre-
steps. In the first step, the state |(u) is set up on the quantum spond to the derivatives of the RDMF with respect to the
computer. The second step is to measure the fermionic oper- elements of the one-particle reduced density matrix, which is
ators in the prepared state. To measure fermionic observables required for an efficient minimization of the total energy in
on gate-based quantum computers they have to be transformed Eq. (3).
to bosonic qubit operators, which in turn have to be trans-
formed with additional gates to Pauli-z operators that can
finally be measured. Details about fermionic transformations IV. REDUCTION OF THE NUMBER
are discussed in Sec. IV A. OF QUBIT OPERATIONS
With the measurements of the expectation values, the con- A. Fermionic transformations
strained minimization for the RDMF in Eq. (17) can be written
as A well-known way to map fermionic operators to bosonic
operators is the Jordan-Wigner transformation [34]. It maps
W̃ˆ
F [ρ (1) ] = min W (u). (21) each one-particle state to a qubit, but the number of required
u:ρ (1) (u)=ρ (1)
additional qubit operations scales linearly with the number
To solve this constrained minimization problem we propose to of qubits. The parity transformation [35] is equivalent to the
use the augmented Lagrangian approach [21,22], as described Jordan-Wigner transformation in this regard. A promising al-
in Algorithm 1. To formulate the problem in terms of the ternative is the Bravyi-Kitaev transformation [35,36], which
standard constrained optimization problem we map the com- in contrast to the Jordan-Wigner transformation requires only
plex density-matrix constraints ρ (1) (u) − ρ (1) = 0 to equality a logarithmically scaling number of additional qubit opera-
constraints ci for real and imaginary parts individually. Then tions and becomes advantageous for large problems.
033160-5
ROBERT SCHADE et al. PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
033160-6
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
Nlocal
O (n + 1)2 Nint,i
2
, (25)
i=1
033160-7
ROBERT SCHADE et al. PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
modifications in the underlying algorithm, we present the Algorithm 2. Construction of measurement programs.
construction here as a whole.
The construction utilizes the stabilizer matrix formalism, Input: N commuting Pauli strings P1 , ..., PN
which writes a set of N commuting Pauli strings that act on Output: measurement circuit consisting of the gates that have
Nq qubits as a stabilizer matrix S ∈ GF(2)2Nq +1×N , i.e., been applied to S
S ← stabilizer matrix of P1 ,
..., PN with ri = 0 prep.
⎡ ⎤
Z1,1 Z1,2 ... Z1,N RZX ← rk
SZ
⎢ .. .. ⎥ SX
⎢ . . ... ⎥ while rk(SX ) < RZX do rank max.
⎢ ⎥
⎢Z ... ZNq ,N ⎥ choose some qubit q to apply Hadamard to
⎢ Nq ,1 ZNq ,2 ⎥
⎢ ⎥ S ← H (q)S
S=⎢
⎢ X1,1 X1,2 ... X1,N ⎥ ⎥. (26) end while
⎢ . .. ⎥ P, L, U ← PLU decomposition of SZX PLU-decomp.
⎢ .. . ... ⎥
⎢ ⎥ T ← transpositions in P
⎢ ⎥
⎣XNq ,1 XNq ,2 ... XNq ,N ⎦ for each transposition i → j in T do permutation
r1 r2 ... rN S ← SWAP(i, j)S
end for
The elements are defined as follows: L −1 ← inv(L)
(1) Zi, j = 1 iff the j-th Pauli-string has the Pauli-z or for each (i, j), i = j with Li,−1j = 1 do row reduc.
Pauli-y acting on the ith qubit. S ← CNOT(i, j)S
end for
(2) Xi, j = 1 iff the jth Pauli-string has the Pauli-x or Pauli-
if SX is not diagonal then diag. reduc.
y acting on the ith qubit.
reduce SX to diagonal form with CNOTs
(3) r j defines that the jth single-qubit measurement needs
end if
to be multiplied with (−1)r j . reduce SZ to zero with phase gates and CNOTs
(4) Otherwise all elements are zero. for each qubit q do X-Z-flip
For example the Pauli strings X̂ ⊗ Ẑ ⊗ Ŷ ⊗ 1, Ŷ ⊗ Ẑ ⊗ S ← H(q)S
X̂ ⊗ 1, 1 ⊗ X̂ ⊗ Ẑ ⊗ Ŷ , and 1 ⊗ Ŷ ⊗ Ẑ ⊗ X̂ correspond to end for
the stabilizer matrix for each qubit q do sign-step
⎡ ⎤ if rq = 1 then
0 1 0 0
S ← Y(q)S
⎢1 1 0 1⎥
⎢ ⎥ end if
⎢ ⎥
⎢1 0 1 1⎥ end for
⎢ ⎥
⎢0 0 1 0⎥
⎢ ⎥
⎢ ⎥
S=⎢ ⎢ 1 1 0 0 ⎥,
⎥ (27)
⎢ ⎥ (2) transforming the SX to upper triangular form (PLU-
⎢0 0 1 1 ⎥
⎢ ⎥ decomp. and row reduc.),
⎢1 1 0 0 ⎥
⎢ ⎥ (3) reducing SX to diagonal form (diag. reduc.),
⎢ ⎥
⎣0 0 1 1 ⎦ (4) transforming the SZ to a zero matrix (Z reduction),
(5) exchanging the elements of the SZ and Sz matrix so that
0 0 0 0
SX = 0 and SZ diagonal (X-Z flip)
(6) and using the information in the phase row to get the
where ri = 0 has been chosen as a convention. The action of
correct signs in the measurements (sign step).
quantum gates now corresponds to changes in the stabilizer
The result is a stabilizer matrix, where SZ is diagonal, SX =
matrix [42]:
0 and ri = 0, which means that the Pauli strings Pi can be
(i) CNOT(c,t): ∀i ∈ 1, ..., N do ri → ri + Zt,i Xc,i (1 +
measured as single-qubit measurements at the qubits q, where
Xt,i + Zc,i ), Xt,i → Xt,i + Xc,i , Zc,i → Zc,i + Zt,i .
SZ,q,i = 1.
(ii) Hadamard gate H(q): ∀i ∈ 1, ..., N do ri → ri +
The initial step is the construction of the stabilizer matrix
Xq,i Zq,i and swap Xq,i and Zq,i .
S from the set {Pi } of N Pauli strings. It should be noted that
(iii) Phase gate S(q): ∀i ∈ 1, ..., N do ri → ri + Xq,i Zq,i ,
all algebra has to be performed over GF(2) instead of R. The
Zq,i → Zq,i + Xq,i . T
All operations are performed in GF(2). The inclusion of the initial rank of the matrix [SZ SX ] represents the maximal
phase row r1 , ..., rN guarantees that the sign of the measure- rank of the SX matrix that can be reached by exchanging rows
ments is correct. of the SX and SZ matrix with Hadamard gates. Next, these
The algorithm for the construction of the measurement Hadamard gates are applied to qubits such that the rank of SX
T
circuits is described in Algorithm 2. To simplify the notation becomes equal to the initial rank of [SZ SX ] . The qubits
we define the first Nq rows of the stabilizer matrix as matrix where the Hadamard gates have to be applied can be found in
SZ , the following Nq rows as the matrix SX , and the last row polynomial time with the simple Algorithm 3.
as the phase row. For the example given in Eq. (27) the ranks are
T
Specifically, the algorithm performs the following steps: rk([SZ SX ] ) = 4 and rk(SX ) = 2. Applying Hadamard
(1) maximizing the rank of the SX matrix (rank max.), gates at the first and second qubit results in the stabilizer
033160-8
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
033160-9
ROBERT SCHADE et al. PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
A. Definition of the model where we have chosen a single-site local approximation, i.e.,
Nint = 2 and n determines the order of the ACA. The result-
The Hubbard model [24–26] has proven to be an ex- (1)
ing L functionals F U n̂i,↑ n̂i,↓ [ρ0,ACA(n) ] to be computed consider
tremely valuable model system for materials with strong only 2(n + 1) one-particle states instead of 2L of the full
electronic correlations. Conventional DFT fails to qualita- system. The results discussed in Sec. II D show that the first-
tively describe these strong electronic correlations and the order ACA, i.e., n = 1 already gives results close to the exact
resulting phenomena like metal-insulator transitions. Thus, value and quantum computers with at least 4 qubits are widely
alternative correlated approaches are required. available. Thus, this work will consider the evaluation of the
We use here a L = 8-site half-filled Hubbard chain with the (1)
RDMF F Ŵ1 [ρ0,ACA(1) ] with Ŵ1 = U n̂1,↑ n̂1,↓ as an exemplary
Hamiltonian case.
L−1
L
Ĥ = −t †
ĉi,σ ĉi+1,σ + U n̂i,↑ n̂i,↓ , (34) C. Trial state
σ ∈{↑,↓} i=1 i=1
As the hardware-efficient trial state we propose the variant
where n̂i,σ = ĉi,σ
†
ĉi,σ is the particle number operator for the shown in Fig. 8 tailored to IBM quantum computers
√ with the
spin channel σ on site i, t is the hopping parameter and U 0 Falcon r4L processor type, which have Rz -, X - and CNOT-
the interaction operator. The first sum represents the kinetic gates as basic gates and a linear topology for basic two-qubit
energy of electrons hopping between sites and the second sum gates [46]. The Bravyi-Kitaev transformation is used for the
033160-10
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
FIG. 10. Comparison of the RDMF Fqc,no noise obtained with the
FIG. 9. Convergence of the augmented Lagrangian L, the inter- augmented Lagrangian and the trial state in Fig. 8 without noise
action energy Ŵ1 = U n̂1,↑ n̂i,↓ and the constraint violation i ci2 compared to the exact value Fexact (see Appendix B) for the RDMF
(1)
at the end of each solution of an unconstrained subproblem in F U n̂1,↑ n̂1,↓ [ρ0,ACA(1) ] defined in Sec. VI B.
a noiseless simulation for the situation defined in Sec. VI B and
U/t = 1. Fexact is the value of the RDMF obtained with a constrained
minimization over Slater determinants (see Appendix B). Solid lines Lagrange multipliers are initialized to zero, i.e., λ0 = 0, then
show the convergence when the initial Lagrange multipliers are cho- the augmented Lagrangian approach converges from a large
sen as zero and dashed lines the corresponding results if the initial constraint violation to the final result. However, if an initial
values of the Lagrange multipliers are chosen as the derivatives of guess for the Lagrange multipliers is obtained from the Müller
the Müller functional. functional [17], then the constraint violation is already small
after the first iteration of the augmented Lagrangian and the
convergence of the interaction energy Ŵ is much quicker.
fermionic transformation and the two interacting one-particle The Müller functional [17] is an approximate parametrized
states are placed on the two center qubits. RDMF and its derivatives with respect to the one-particle
The chosen hardware efficient trial state is minimal in reduced density matrix, which correspond to the Lagrange
terms of the number of two-qubit gates. We were not able multipliers, can be obtained with polynomial cost.
to find a parametrization of the trial state that represents The results for the RDMF Fqc,no noise obtained with the
(1)
the one-particle reduced density matrix ρ0,ACA(1) of the cho- augmented Lagrangian and the trial state in Fig. 8 without
sen example case without the additional freedom generated noise are shown for a wide range of interactions strengths
by the additional unitary transform of the noninteracting U/t in Fig. 10. The chosen trial state together with the uni-
states introduced in Sec. IV C. One exception is the case of tary transformation of the noninteracting states introduced in
infinite interaction strengths, i.e., U/t → ∞, where the ACA- Sec. IV C obtains the density-functional that is nearly indis-
(1)
transformed density matrix ρ0,ACA(1) is diagonal. Hence, this tinguishable from the exact result for arbitrary U/t, i.e., in the
additional freedom makes the constraints in the constrained weakly interacting regime U/t 1, as well as in the strongly
minimization problem satisfiable for arbitrary interactions interacting and correlated regime U/t 1.
strengths and allows us to use such a simple trial state. The
implementation of the augmented Lagrangian and input files
for the presented results are publicly available [29]. E. Results on NISQ device
After showing that the proposed schema with the chosen
trial state converges accurately to the RDMF when exact ex-
D. Simulation without noise pectation values are considered, we now include noise into the
To show the suitability of the chosen trial state the con- simulation.
strained minimization with the augmented Lagrangian was We focus on IBM quantum computers [46] with a linear
run without noise, i.e., exact expectation values. Details for coupling topology like the ibmq_bogota, ibmq_manila, or
the constrained minimization can be found in Appendix C. ibmq_santiago machines, respectively. These are all 5-qubit
Figure 9 shows the convergence of the value of the augmented quantum computers with the processor type Falcon r4L. The
Lagrangian L and the expectation value of the interaction noisy simulations have been performed with the density-
Ŵ1 = U n̂1,↑ n̂i,↓ , i.e., the value of the RDMF in comparison matrix-based simulator in Qiskit 0.29.0 using the noise model
to the value Fexact of the RDMF obtained from a constrained of the ibmq_manila quantum computer, the qubit-wise com-
minimization over Slater determinants (see Appendix B). Ad- mutation of measurements, and 8192 shots per measurement.
ditionally, the overall constraint violation i ci2 is shown. The The noise simulation included depolarizing gate errors, ther-
convergence of the augmented Lagrangian is rapid so that mal relaxation errors, and single-qubit readout errors. The first
typically no more than 10 outer iterations are required. If the four qubits of the 5-qubit quantum computer were used.
033160-11
ROBERT SCHADE et al. PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
FIG. 11. Convergence of the expectation value Ŵ1 = U n̂1,↑ n̂i,↓ FIG. 12. Convergence of the expectation value Ŵ1 = U n̂1,↑ n̂i,↓
of the interaction and and the overall constraint violation i ci2 dur- of the interaction and the overall constraint violation i ci2 during
ing the solution of the unconstrained subproblems of the augmented the solution of the unconstrained subproblems of the augmented La-
(1) (1)
Lagrangian for the RDMF F U n̂1,↑ n̂1,↓ [ρ0,ACA(1) ] defined in Sec. VI B grangian for the RDMF F U n̂1,↑ n̂1,↓ [ρ0,ACA(1) ] defined in Sec. VI B for
for U/t = 1. The expectation values of the trial states were obtained U/t = 1 when executed with the ibmq_manila quantum computer.
from a noisy simulation on a classical computer. The correspond- Vertical-dashed lines indicate different outer iterations, i.e., updates
ing results obtained on a quantum computer are shown in Fig. 12. of the penalty parameters and Lagrange multipliers.
Vertical-dashed lines indicate different outer iterations, i.e., updates
of the penalty parameters and Lagrange multipliers.
commenced from a random starting point. Thus, we conclude
that the convergence to a local minimum rather than a global
minimum is very unlikely and that the observed behavior
Figure 11 shows the behavior of the expectation value
points to a representability issue of the many-particle state
of the interaction Ŵ1 and the constrained violation i ci2
on the noisy quantum computer. This aspect is the subject of
during the constrained minimization when the quantum pro-
future research.
grams are simulated with the noise model of the real quantum
We therefore conclude that the evaluation of the RDMF
computer ibmq_manila. The corresponding calibration results
is possible on a quantum computer. The results obtained this
are given in Table I. The convergence when using the real
way can then be used in an iterative total energy minimization.
quantum computer to evaluate the expectation values during
The formulation of the total energy minimization problem
the minimization is very similar to the noisy simulation.
with the RDMF allows us to employ novel approximations
During the first outer iteration of the augmented La-
grangian, the constraint violation converges in both the noisy
simulation and real execution to a finite value. For a solution
of a constrained minimization problem with the augmented
Lagrangian approach this behavior is not unexpected, as can
be seen also in Fig. 9. However, after the penalty update, i.e.,
increase of the penalties on the constraints, the convergence
to essentially the same constraint violation in the second and
subsequent outer iterations is curious and points to a deeper is-
sue. Two possible explanations exist: Either the minimization
in the first outer iteration has converged to a local minimum
that is not the global minimum and subsequent iterations are
not able to escape this minimum, or due to the inclusion
of noise, the trial state can not represent a state that fulfills
the constraints. The dominant part of the overall constraint
violation stems from the constraints on the off-diagonal el-
(1) (1)
ements ρACA(1),1↑,2↑ and ρACA(1),1↓,2↓ , respectively, i.e., the
covalencies.
Using the converged parameters unoiseless of the trial state
from the noiseless constrained minimization as a starting point
for the constrained minimization with noise, the convergence FIG. 13. Convergence for the same situation as shown in Fig. 11
as shown in Fig. 13 is obtained. The converged values are very but starting from the converged parameters unoiseless of the noiseless
similar to the results shown in Fig. 11, where the minimization simulation.
033160-12
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
like the ACA to drastically reduce the qubit requirements of APPENDIX A: AVAILABILITY OF SOURCE
the problem and to parallelize it. CODE AND DATA
The source code of the software implementation of the
presented approach, input files for the presented results as well
VII. CONCLUSIONS AND OUTLOOK as the raw data are openly available at [29].
We have introduced a hybrid quantum-classical approach
based on an RDMFT formulation of the quantum total energy APPENDIX B: PRACTICAL DETAILS
problem and the ACA for gate-based quantum computers. OF THE EXACT RDMF
Using the latter, a drastic reduction of the necessary qubit
count is demonstrated. The measurements of the one-particle The exact reference of the RDMF has been obtained by
reduced density matrix that are required for the density-matrix parametrizing
constraints are shown to be obtainable with only a linear
number of quantum programs when the general commutativ- Ŵ
Fexact [ρ (1) ] = min (x)|Ŵ |(x) (B1)
Nχ
ity of observables is exploited. A construction algorithm for x∈C 2
the measurement programs is given and available degrees of
freedom for their optimization are introduced. with the equality constraints
The essential part of the proposed approach, the evalua-
(1)
tion of a local RDMF, is demonstrated with a Hubbard-type (x)|ĉα† ĉβ |(x) = ρβ,α , (B2a)
model system using noise-free simulations, simulations in- (x)|(x) = 1, (B2b)
cluding noise models of realistic quantum computers, as well
as with executions on real IBM quantum computers. While
where |(x) = i xi |ni is a sum over all Slater determinants
model systems such as the Hubbard model are convenient to
|00 · · · , |10 · · · ,..., respectively. The complex parameters
study the features and convergence behavior of the proposed
xi were represented by their real and imaginary parts and
algorithm, the goal of this approach is the application within
the constrained minimization was performed using the trust-
ab initio molecular dynamics calculations. The main differ-
region constrained minimization algorithm from SciPy 1.7.1
ence between the treatment of model systems and realistic
[52,53] with a convergence tolerance of 10−9 .
systems is the number of terms in the interaction Hamilto-
nian. The variational formulation based on RDMFT makes
the proposed algorithm very suitable for ab initio molecular APPENDIX C: PRACTICAL DETAILS OF THE
dynamics calculations because the forces can be evaluated in a AUGMENTED LAGRANGIAN APPROACH
straightforward way from already available quantities such as
the one- and two-particle reduced density matrix [47]. Noise a. Parameters for the Augmented Lagrangian. The initial
in the nuclear forces stemming from the noise of the quan- values for the parameters u0 were uniformly chosen at random
tum computer can be compensated for in ab initio molecular from [−π , π ]. The initial values for the Lagrange multipliers
dynamics simulations in the spirit of approximate computing λ0 were either chosen as zero, or as the numerical derivatives
[48], where the desired thermodynamic expectation values of the Müller functional [17] for the given one-particle re-
can nevertheless be accurately obtained by devising a prop- duced density matrix. The initial value for the penalties μ0
erly modified Langevin equation [49,50]. The investigation was chosen as 10 and the penalties were updated after each
of the representability of fermionic quantum states on noisy solution of the unconstrained problem by multiplying them
gate-based quantum computers, the optimization of the mea- with 1.5.
surement programs as well as the integration with molecular
dynamics programs like CP2K [51] are subject for future
1. Solution of the unconstrained subproblems
research.
In the case without noise, the unconstrained subproblems
were solved with the L_BFGS_B and COBYLA algorithms
implemented in Qiskit 0.29.0 [43,52]. The tolerance was set
ACKNOWLEDGMENTS to 10−3 and at most 10 000 iterations were permitted. The
The authors acknowledge the use of IBM Quantum ser- optimization of the unitary transform of the noninteracting
vices for this paper. The views expressed are those of one-particle states outlined in Sec. IV C has been performed
the authors, and do not reflect the official policy or posi- with the BFGS algorithm (with a convergence tolerance of
tion of IBM or the IBM Quantum team. In this paper the 10−9 ) from SciPy 1.7.1 [52] and the parametrization of unitary
ibmq_manila, which is one of the IBM Quantum Falcon Pro- matrices
cessors has been used. The authors gratefully acknowledge
the funding of this project by computing time provided by the U = eiH , (C1)
Paderborn Center for Parallel Computing (PC). This work is
partially funded by Paderborn University’s research award for where H is a parametrized arbitrary hermitian matrix.
“GreenIT”, as well as the Federal Ministry of Education and In the case with noise, the COBYLA algorithm imple-
Research (BMBF) and the state of North Rhine-Westphalia as mented in Qiskit 0.29.0 [43,52] was used with a convergence
part of the NHR Program. tolerance of 0.01.
033160-13
ROBERT SCHADE et al. PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
Qubit Q0 Q1 Q2 Q3 Q4
T1 in μs 128.51 142.79 184.95 214.35 127.79
T2 in μs 74.34 79.95 24.85 69.18 44.4
Frequency in GHz 4.963 4.838 5.037 4.951 5.066
Anharmonicity in GHz –0.34335 –0.34621 –0.34366 –0.34355 –0.34211
Readout error 0.0259 0.0324 0.0190 0.02210 0.01920
SPAM error |1 → |0 0.0438 0.0482 0.0286 0.0306 0.0302
SPAM error |0 → |1 0.0080 0.0166 0.0094 0.0136 0.0082
Readout√ length in ns 5351.111 5351.111 5351.111 5351.111 5351.111
Identity, x, x errors × 104 1.920 3.970 2.571 1.834 3.155
CNOT error × 103 0 to 1 6.684 1 to 2 9.947 2 to 3 7.344 3 to 4 4.746
CNOT Gate time in ns 277.33 312.889 504.889 391.111 298.667
[1] M. Troyer and U.-J. Wiese, Computational Complexity for simulating molecular electronic structure, Phys. Rev. A 95,
and Fundamental Limitations to Fermionic Quantum 020501(R) (2017).
Monte Carlo Simulations, Phys. Rev. Lett. 94, 170201 [11] T. L. Gilbert, Hohenberg-Kohn theorem for nonlocal external
(2005). potentials, Phys. Rev. B 12, 2111 (1975).
[2] F. Calcavecchia, F. Pederiva, M. H. Kalos, and T. D. Kühne, [12] A. J. Coleman, Structure of fermion density matrices, Rev.
Sign problem of the fermionic shadow wave function, Phys. Mod. Phys. 35, 668 (1963).
Rev. E 90, 053304 (2014). [13] M. Levy, Universal variational functionals of electron densities,
[3] S. Lloyd, Universal quantum simulators, Science 273, 1073 first-order density matrices, and natural spin-orbitals and solu-
(1996). tion of the v-representability problem, Proc. Natl. Acad. Sci.
[4] A. Aspuru-Guzik, A. Dutoi, P. Love, and M. Head-Gordon, USA 76, 6062 (1979).
Simulated quantum computation of molecular energies, Science [14] E. H. Lieb and F. Y. Wu, Absence of Mott Transition in an
309, 1704 (2005). Exact Solution of the Short-Range, One-Band Model in One
[5] A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, Dimension, Phys. Rev. Lett. 20, 1445 (1968).
P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, A varia- [15] R. Schade and P. E. Blöchl, Adaptive cluster approximation
tional eigenvalue solver on a photonic quantum processor, Nat. for reduced density-matrix functional theory, Phys. Rev. B 97,
Commun. 5, 4213 (2014). 245131 (2018).
[6] J. R. McClean, J. Romero, R. Babbush, and A. Aspuru-Guzik, [16] K. Pernal and K. J. H. Giesbertz, Reduced density matrix func-
The theory of variational hybrid quantum-classical algorithms, tional theory (RDMFT) and linear response time-dependent
New J. Phys. 18, 023023 (2016). rdmft (TD-RDMFT), Top. Curr. Chem. 368, 125 (2016).
[7] A. Kandala, A. Mezzacapo, K. Temme, M. Takita, M. Brink, [17] A. Müller, Explicit approximate relation between reduced two-
J. M. Chow, and J. M. Gambetta, Hardware-efficient variational and one-particle density matrices, Phys. Lett. A 105, 446
quantum eigensolver for small molecules and quantum mag- (1984).
nets, Nature (London) 549, 242 (2017). [18] E. Kamil, R. Schade, T. Pruschke, and P. E. Blöchl, Reduced
[8] J. Tilly, H. Chen, S. Cao, D. Picozzi, K. Setia, Y. Li, E. Grant, density-matrix functionals applied to the Hubbard dimer, Phys.
L. Wossnig, I. Rungger, G. H. Booth, and J. Tennyson, The Rev. B 93, 085141 (2016).
Variational Quantum Eigensolver: A review of methods and [19] P. E. Blöchl, C. F. J. Walther, and T. Pruschke, Method to
best practices, arXiv:2111.05176. include explicit correlations into density-functional calculations
[9] P. J. J. O’Malley, R. Babbush, I. D. Kivlichan, J. Romero, based on density-matrix functional theory, Phys. Rev. B 84,
J. R. McClean, R. Barends, J. Kelly, P. Roushan, A. Tranter, N. 205101 (2011).
Ding, B. Campbell, Y. Chen, Z. Chen, B. Chiaro, A. Dunsworth, [20] T. Baldsiefen, A. Cangi, and E. K. U. Gross, Reduced-density-
A. G. Fowler, E. Jeffrey, E. Lucero, A. Megrant, J. Y. Mutus, et matrix-functional theory at finite temperature: Theoretical
al., Scalable Quantum Simulation of Molecular Energies, Phys. foundations, Phys. Rev. A 92, 052514 (2015).
Rev. X 6, 031007 (2016). [21] M. Powell, A method for nonlinear constraints in minimization
[10] Y. Shen, X. Zhang, S. Zhang, J.-N. Zhang, M.-H. Yung, and K. problems, in Optimization (Academic Press, New York, 1969),
Kim, Quantum implementation of the unitary coupled cluster pp. 283–298.
033160-14
PARALLEL QUANTUM CHEMISTRY ON NOISY … PHYSICAL REVIEW RESEARCH 4, 033160 (2022)
[22] M. R. Hestenes, Multiplier and gradient methods, J. Optim. [39] R. Karp, Reducibility among combinatorial problems, in Com-
Theory Appl. 4, 303 (1969). plexity of Computer Computations, edited by R. Miller and J.
[23] S. Bravyi, J. M. Gambetta, A. Mezzacapo, and K. Temme, Thatcher (Plenum Press, New York, 1972) pp. 85–103.
Tapering off qubits to simulate fermionic Hamiltonians, [40] A. A. Hagberg, D. A. Schult, and P. J. Swart, Exploring network
arXiv:1701.08213. structure, dynamics, and function using networkx, in Proceed-
[24] M. C. Gutzwiller, Effect of Correlation on the Ferromagnetism ings of the 7th Python in Science Conference, edited by G.
of Transition Metals, Phys. Rev. Lett. 10, 159 (1963). Varoquaux, T. Vaught, and J. Millman ( Pasadena, CA, 2008)
[25] J. Hubbard, Electron correlations in narrow energy bands, Proc. pp. 11–15.
R. Soc. London A 276, 238 (1963). [41] D. Gottesman, Stabilizer codes and quantum error correction,
[26] J. Kanamori, Electron correlation and ferromagnetism of tran- Ph.D. thesis, California Institute of Technology, 1997.
sition metals, Prog. Theor. Phys. 30, 275 (1963). [42] S. Aaronson and D. Gottesman, Improved simulation of stabi-
[27] R. Schade, E. Kamil, and P. Blöchl, Reduced density-matrix lizer circuits, Phys. Rev. A 70, 052328 (2004).
functionals from many-particle theory, Eur. Phys. J.: Spec. Top. [43] Md. S. Anis, Abby-Mitchell, H. Abraham, AduOffei,
226, 2677 (2017). R. Agarwal et al., Qiskit: An open-source framework for
[28] E. Prodan and W. Kohn, Nearsightedness of electronic matter, quantum computing (2021), https://github.com/Qiskit/qiskit/
Proc. Natl. Acad. Sci. USA 102, 11635 (2005). blob/master/Qiskit.bib.
[29] R. Schade, C. Bauer, K. Tamoev, L. Mazur, C. Plessl, and T. D. [44] M. Fishman, S. R. White, and E. M. Stoudenmire, The
Kühne, pc2/rdmft_on_qc: Implementation and results, Zenodo ITensor software library for tensor network calculations,
(2021). arXiv:2007.14822.
[30] M. Piris, Global Method for Electron Correlation, Phys. Rev. [45] J. Lado, DMRGPY, https://github.com/joselado/dmrgpy (2021).
Lett. 119, 063002 (2017). [46] IBM Quantum, https://quantum-computing.ibm.com/ (2021).
[31] J. C. Spall, Multivariate stochastic approximation using a si- [47] T. D. Kühne, M. Krack, F. R. Mohamed, and M. Parrinello,
multaneous perturbation gradient approximation, IEEE Trans. Efficient and Accurate Car-Parrinello-like Approach to Born-
Automat. Contr. 37, 332 (1992). Oppenheimer Molecular Dynamics, Phys. Rev. Lett. 98, 066401
[32] J. C. Spall, A stochastic approximation technique for generating (2007).
maximum likelihood parameter estimates, in 1987 American [48] V. Rengaraj, M. Lass, C. Plessl, and T. D. Kühne, Accu-
Control Conference (IEEE, Minneapolis, MN, USA, 1987) pp. rate sampling with noisy forces from approximate computing,
1161–1167. Computation 8, 39 (2020).
[33] R. Schade, New methods for the ab-initio simulation of [49] T. D. Kühne and E. Prodan, Disordered crystals from first prin-
correlated systems, Ph.D. thesis, Georg-August University, ciples I: Quantifying the configuration space, Ann. Phys. 391,
Göttingen, 2019, http://dx.doi.org/10.53846/goediss-7327. 120 (2018).
[34] P. Jordan and E. P. Wigner, Über das paulische äquivalenzver- [50] I. O. Sokolov, P. K. Barkoutsos, L. Moeller, P. Suchsland,
bot, in The Collected Works of Eugene Paul Wigner: Part A: The G. Mazzola, and I. Tavernelli, Microcanonical and finite-
Scientific Papers, edited by A. S. Wightman (Springer, Berlin, temperature ab initio molecular dynamics simulations on
1993) pp. 109–129. quantum computers, Phys. Rev. Research 3, 013125 (2021).
[35] J. T. Seeley, M. J. Richard, and P. J. Love, The Bravyi-Kitaev [51] T. D. Kühne, M. Iannuzzi, M. Del Ben, V. V. Rybkin, P.
transformation for quantum computation of electronic structure, Seewald, F. Stein, T. Laino, R. Z. Khaliullin, O. Schütt, F.
J. Chem. Phys. 137, 224109 (2012). Schiffmann et al., Cp2k: An electronic structure and molecular
[36] S. B. Bravyi and A. Y. Kitaev, Fermionic quantum computation, dynamics software package - quickstep: Efficient and accurate
Ann. Phys. 298, 210 (2002). electronic structure calculations, J. Chem. Phys. 152, 194103
[37] A. F. Izmaylov, T.-C. Yen, R. A. Lang, and V. Verteletskyi, (2020).
Unitary partitioning approach to the measurement problem in [52] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T.
the variational quantum eigensolver method, J. Chem. Theory Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser,
Comput. 16, 190 (2020). J. Bright et al., SciPy 1.0: Fundamental algorithms for scientific
[38] P. Gokhale, O. Angiuli, Y. Ding, K. Gui, T. Tomesh, M. computing in python, Nat. Methods 17, 261 (2020).
Suchara, M. Martonosi, and F. T. Chong, Minimizing state [53] A. R. Conn, N. I. M. Gould, and P. L. Toint, Trust Region
preparations in variational quantum eigensolver by partitioning Methods (SIAM, Philadelphia, PA, 2000) https://epubs.siam.
into commuting families, arXiv:1907.13623. org/doi/pdf/10.1137/1.9780898719857.
033160-15