How an Equi-ensemble Description Systematically Outperforms the Weighted-ensemble Variational Quantum Eigensolver Akilan Rajamani, Martin Beseda, Benjamin Lasorne, Bruno Senjean Abstract Calculating excited states in chemistry is crucial to provide insight into photoinduced molecular behavior beyond the ground state, enabling innovations in spectroscopy, material sciences, and drug design. While several approaches have been developed to compute excited-state properties, finding the best ratio between computational cost and accuracy remains challenging. The advent of quantum computers brings new perspectives, with the development of quantum algorithms that promise an advantage over classical ones. Most of these new algorithms are inspired from previous classical ones, but with different pros and cons. In this Letter, we focus on the generalization of the variational principle for many-body excited-states that led to the ensemble variational quantum eigensolver (VQE). We compare the performance of two ensemble VQE approaches, the equi-ensemble and weighted-ensemble ones, and conclude that the equi-ensemble is the way to go. Let us consider an ensemble of K initial orthonormal states \{\ket{\Phi_j}\}_{j=0,\ldots,K-1} transformed by the same variationally parametrized unitary operator \hat{U}({\bm{\theta}}) . We define the ( {\bf w} -weighted) ensemble energy as Theophilou 1979 ; Gross et al. 1988a \displaystyle E_{C}^{{\bf w}}({\bm{\theta}}) \displaystyle= \displaystyle\sum_{j=0}^{K-1}w_{j}\bra{\Phi_j}\hat{U}^{\dagger}({\bm{\theta}})\hat{H}\hat{U}({\bm{\theta}})\ket{\Phi_j} (1) \displaystyle\geq\sum_{j=0}^{K-1}w_{j}E_{j}, where w_{j}\geq w_{j+1} , \hat{H} is the electronic structure Hamiltonian, and E_{j}\leq E_{j+1} its exact eigenvalues. The inequality in Eq. ( 1 ) reflects the variational principle generalized to an ensemble of states, such that minimizing the ensemble energy with respect to the parameters {\bm{\theta}} will lead to \hat{U}({\bm{\theta}})\ket{\Phi_j}=\ket{\Psi_j(\bmtheta)}\sim\ket{\Psi_j} , \ket{\Psi_j} being the j th eigenvector of \hat{H} with eigenvalue E_{j} , assuming that the unitary \hat{U}({\bm{\theta}}) can achieve this goal. This generalized variational principle has been used to extract excited-state properties from ensemble density functional theory Gross et al. 1988b ; Filatov and Shaik 1999 ; Kazaryan et al. 2008 ; Filatov 2015 ; Filatov et al. 2015 ; Filatov et al. 2017 ; Liu et al. 2021 ; Filatov et al. 2021 ; Gould and Pittalis 2017 ; Gould et al. 2018 ; Gould and Pittalis 2019 ; Gould and Pittalis 2020 ; Gould 2020 ; Gould et al. 2020 ; Gould and Kronik 2021 ; Gould et al. 2021 ; Sagredo and Burke 2018 ; Senjean et al. 2015 ; Senjean et al. 2016 ; Deur et al. 2018 ; Deur and Fromager 2019 ; Senjean and Fromager 2018 ; Marut et al. 2020 ; Cernatic et al. 2022 ; Cernatic and Fromager 2024 ; Scott et al. 2024 ; Cernatic et al. 2024a ; Dupuy and Fromager 2025 ; Fromager 2025 ; Gould 2025 ; Gould et al. 2025 ; Daas et al. 2025 and more recently in the context of the one-particle reduced density-matrix functional theory Schilling and Pittalis 2021 ; Liebert et al. 2021 ; Liebert and Schilling 2023a ; Liebert and Schilling 2023b , variational Monte–Carlo Schautz and Filippi 2004 ; Wheeler et al. 2024 and density-matrix embedding methods Cernatic et al. 2024b . Turning to multiconfigurational approaches, the generalized variational principle is used in conjunction with configuration interaction (CI) and multiconfigurational self-consistent field (MCSCF) approaches Helgaker et al. 2014 . For the latter, the variational principle is used not only for the linear many-body variational problem (CI/MC) but also for the nonlinear one-body variational orbital-optimization problem (SCF). In general, the equi-ensemble ( i.e. , w_{j}=w_{j+1} , \forall j ) version of Eq. ( 1 ) is considered for the SCF orbital optimization to provide a democratic description of all the MC states of the ensemble, which is especially important when vibronic couplings are large, i.e. , in the vicinity of avoided crossings and conical intersections Domcke et al. 2004 , thus leading to the so-called state-average MCSCF (SA-MCSCF). Recently, the quantum computing analog of the SA-MCSCF method has been derived and called state-average orbital-optimized variational quantum eigensolver (SA-OO-VQE) Yalouz et al. 2021 ; Yalouz et al. 2022 ; Beseda et al. 2024 ; Illésová et al. 2025 , inspired by the previous work of Nakanishi and coworkers on the subspsace-search VQE Nakanishi et al. 2019 , which is equivalent but without orbital optimization. SA-OO-VQE is analogous to SA-MCSCF as regards the state-average orbital optimization problem, which is performed classically. However, while SA-MCSCF always uses an actual – full or partial, but supposedly exact (numerically) for the targeted ensemble – diagonalization algorithm for the many-body part ( i.e. , for \hat{U}({\bm{\theta}}) ), SA-OO-VQE uses an approximate parameterized-circuit ansatz \hat{U}({\bm{\theta}}) to minimize the ensemble energy. How this ansatz – for which several different expressions have been derived Peruzzo et al. 2014 ; Yung et al. 2014 ; Barkoutsos et al. 2018 ; Romero et al. 2018a ; Lee et al. 2019 ; Evangelista et al. 2019 ; Sokolov et al. 2020 ; Khamoshi et al. 2022 ; Smart and Mazziotti 2021 ; Marécat et al. 2023 ; Materia et al. 2024 ; Kandala et al. 2017 ; Ganzhorn et al. 2019 ; O’Gorman et al. 2019 ; Burton 2024 ; Gard et al. 2020 ; Seki et al. 2020 ; Anselmetti et al. 2021 ; Lacroix et al. 2023 ; Ruiz Guzman and Lacroix 2024 – can actually achieve diagonalization without any convergence issues is one of the biggest challenges of VQE McClean et al. 2018 ; Bittel and Kliesch 2021 ; D’Cunha et al. 2023 ; Larocca et al. 2025 ; Leone et al. 2024 . Such a difference is also not without consequences as regards the choice of the initial orthonormal states \{\ket{\Phi_j}\}_{j=0,\ldots,K-1} , and has led to a revival of the use of ensemble theory to extract many-body excited states in the context of quantum computing Nakanishi et al. 2019 ; Parrish et al. 2019 ; Yalouz et al. 2021 ; Yalouz et al. 2022 ; Omiya et al. 2022 ; Bierman et al. 2022 ; Benavides-Riveros et al. 2022 ; Xu et al. 2023 ; Heya et al. 2023 ; Beseda et al. 2024 ; Chen et al. 2024 ; Bierman et al. 2024 ; Benavides-Riveros et al. 2024 ; Hong et al. 2024 ; Ding et al. 2024 ; Illésová et al. 2025 . Let us now discuss in more details the role of the weights {\bf w} in Eq. ( 1 ). To converge towards the eigenvectors of the problem, while the weights {\bf w} do not need to take particular values in principle apart from being sorted in descending order ( w_{j}>w_{j+1} ), they can have a huge impact in practice. Indeed, the choice of the weights can strongly influence the parameter landscape and impact the minimization of the cost function E_{C}^{\bf w}({\bm{\theta}}) , as shown recently in Refs. 83 and 84 . Interestingly, they also have an impact in ensemble DFT when approximate Hartree-exchange-correlation functionals of the density are used Senjean et al. 2015 , such that they are sometimes taken as Boltzmann weights (with a fictitious temperature arbitrarily fixed by the user), thus leading to thermal DFT Pittalis et al. 2011 ; Pribram-Jones and Burke 2016 ; Pastorczak et al. 2013 . Note that Boltzmann weights may also be used in SA-MCSCF to avoid active-space discontinuities with respect to a finite adiabatic target subspace at various geometries Olsen 2015 . Along the lines of the aforementioned works, we question the use of different weight values in practical calculations. Using descending weights requires a decision to be made in advance as regards the guess (initial states and associated weights) to be transported to the final eigenstates which are not known in advance. If the guess does not match the final eigenenergy order, which cannot be predicted before being calculated, there is a source of problem that we address in this Letter. Indeed, we will show in the following that – at least in the context of quantum chemistry on quantum computers studied herein – the additional complexity arising from considering ordered weights is highly detrimental and generally prevents convergence towards the targeted subspace spanned by the K lowest eigenstates. Such a failure makes the final results unreliable. Some attempts have been proposed to mitigate the convergence issue, for instance, by relaxing the use of different \hat{U}({\bm{\theta}}) per circuit and imposing the orthonormality constraint explicitly in the cost function rather than implicitly in the unitary ansatz, at the expense of performing Hadamard tests for each cost function evaluation Bierman et al. 2022 . Alternatively, a particular limit of the ensemble variational principle in Eq. ( 1 ) is the equi-ensemble one, when w_{j}=w_{j+1} , \forall j Fan 1949 . In such a case, the minimization of Eq. ( 1 ) does not converge toward the individual K lowest eigenstates, but only to the optimal subspace spanned by such K lowest eigenstates. In other words, the optimal states \{\ket{\Psi_j(\bmtheta)}\} at convergence are not expected to be correct variational approximations of the targeted eigenstates of \hat{H} but only mutually rotated versions of them, because E_{C}^{\bf w}({\bm{\theta}}) with equal weights is the Hamiltonian subtrace, which is invariant with respect to any rotation among the subspace states \{\ket{\Psi_j(\bmtheta)}\} . Hence, an additional post-processing step is required (such as a classical diagonalization Parrish et al. 2019 or additional rotations among the many-body states Yalouz et al. 2022 ) if one is interested in eigenproperties beyond the ensemble energy. Nevertheless, in this work, we conclude that one should always prefer the latter approaches, which have a very negligible computational overhead, rather than relying on ordered weights. To assess the aforementioned statement, we will study two different problems: (1) the two-state many-body problem of the formaldimine molecule (SA-2-CAS(4,3)SCF level of theory) that exhibits strong vibronic coupling (around a conical intersection between the ground state and the first excited singlet) Bonačić-Koutecký Vlasta 1985 ; Yalouz et al. 2021 ; Yalouz et al. 2022 , and (2) the eight-state one-body problem corresponding to the eight restricted-Kohn-Sham doubly-occupied spatial-orbitals of a half-filled (16 electrons) linear chain of 16 hydrogen atoms, derived from quantum density functional theory (Q-DFT) Senjean et al. 2023 . To study the convergence towards the targeted eigen-subspace, we compute the normalized trace of the Hamiltonian matrix in the subspace spanned by all the states of the ensemble \{\ket{\Psi_j(\bmtheta)}\}_{j=0,\ldots,K-1} , since the trace is invariant with respect to any rotation among these states, i.e. , \displaystyle E_{T}^{\bf w}({\bm{\theta}}) \displaystyle= \displaystyle\dfrac{1}{K}\sum_{j=0}^{K-1}\bra{\Psi_j(\bmtheta)}\hat{H}\ket{\Psi_j(\bmtheta)} (2) \displaystyle= \displaystyle\dfrac{1}{K}\sum_{j=0}^{K-1}E_{j}({\bm{\theta}}), where the dependence on the weights {\bf w} is implicit and comes from the fact that the states \{\ket{\Psi_j(\bmtheta)}\} are obtained through the optimization of the weight-dependent ensemble energy E_{C}^{\bf w} in Eq. ( 1 ). In the particular case of equi-weights, E_{T}^{\bf w}=E_{C}^{\bf w} Fan 1949 ; Gross et al. 1988a ; Ding et al. 2024 . In this work, the equi-weights satisfy w_{j}=1/K and the optimal weights w_{j}=(2K-1-2j)/K^{2} from Ref. 84 are used in the context of ensemble VQE, i.e. , using Eq. ( 1 ) as a cost function and preparing \{\ket{\Psi_j(\bmtheta)}=\hat{U}({\bm{\theta}})\ket{\Phi_j}\}_{j=0,\ldots,K-1} on K different circuits. In the following, we replace the numerical notation by the alphabetical notation to avoid any confusion, as in practice the ordering of the energies of the prepared states may not match the ordering of the weights. Hence, \{j=0,\ldots,K-1\}\rightarrow\{j=A,\ldots,K\} where any alphabetical state can possibly be associated with the ground state denoted by 0. Figure 1: Ground and first-excited singlet-state potential energy surfaces (PESs) of the formaldimine molecule with respect to \alpha at \phi=89^{\circ} . Top panel: w_{A}>w_{B} with w_{A}=3/4 and w_{B}=1/4 . Middle panel: w_{A}w_{B} ) and on the left part of the middle panel ( w_{A}w_{B}\leftrightarrow\langle\Phi_{A}|\Psi_{0}\rangle>\langle\Phi_{B}|\Psi_{0}\rangle and \langle\Phi_{B}|\Psi_{1}\rangle>\langle\Phi_{A}|\Psi_{1}\rangle ) as well as the energy order of the final states after optimization with respect to the targeted eigenstates ( E_{A}\sim E_{0}w_{B} . Curves are smoothened using a Gaussian filter. Horizontal lines (shaded colors) show the value of the last iteration of each curve (converged asymptote). Middle-top panel: error in E_{C}^{\bf w} and E_{T}^{\bf w} using 1-GUCCSD (dashed lines) and 2-GUCCSD (dotted lines) in the weighted-ensemble (purple and green) and equi-ensemble (black) cases. Middle-bottom and bottom panels: same as top and middle top panels but for w_{A}w_{B} (first two top panels) and w_{A}w_{B} ) and to 1400 with the incorrect ordering ( w_{A}2 Å. More importantly, the error does not seem dominated by a given state and remains democratic, which is a better feature. Besides, the number of iterations required to reach convergence is usually twice as lower as in the weighted-ensemble case (see Appendix B.3 ). Hence, it is clear that the equi-ensemble case is always performing much more accurately and efficiently than the weighted-ensemble one to achieve its target. Regarding Q-DFT, one could argue that the number of states in the ensemble can be very large (as it corresponds to the number of occupied orbitals), and that the post-processing classical diagonalization to get the final eigenvalue will lead to a significant overhead, in contrast to the many-body electronic structure problem that usually focuses on a few low-lying excited states. This is true if one wants to have access to the Kohn–Sham orbitals and Kohn–Sham orbital energies. However, the total energy in DFT does not require the latter, but only the ensemble energy E_{T}^{\bf w} of the occupied subspace, as well as the electronic density obtained from it. Hence, the equi-ensemble VQE can be used without any post-processing at all in the context of Q-DFT (see Appendix B.2 ). To summarize, we have shown that the equi-ensemble VQE performs much better than the weighted-ensemble VQE to reach the proper low-lying excited-state eigensubspace. It leads to more robust and unbiased optimization, and always provides the correct eigen-subspace in contrast to the latter. This has been shown on the many-body electronic structure problem exhibiting an avoided crossing, as well as on the non-interacting Kohn–Sham system in quantum density functional theory, both representatives of typical systems for which quantum computers are expected to be advantageous in the future. Despite the fact that using an equi-ensemble does not allow one to extract the eigenstates and associated energies directly, so that additional post-processing classical diagonalization Parrish et al. 2019 or post-variational rotations Yalouz et al. 2022 are required, our results highlight that these post-processing methods should always be preferred to weighted-ensemble VQE. Besides, some cases do not even require the eigenstates, for instance when quasi-diabatic states are required Illésová et al. 2025 or when only a given eigen-subspace is targeted Senjean et al. 2023 . Appendix A The many-body electronic structure problem of the Formaldimine molecule A.1 The frozen-core Hamiltonian Within the Born–Oppenheimer approximation, the time-independent and non-relativistic electronic structure Hamiltonian reads, under second quantization, \displaystyle\hat{H}=\sum_{pq}h_{pq}\hat{E}_{pq}+\dfrac{1}{2}\sum_{pqrs}g_{pqrs}\hat{e}_{pqrs}, (3) where the one- and two-electron integrals are defined as (in real algebra) \displaystyle h_{pq}=\int\,{\rm d}{\bf r}\phi_{p}({\bf r})\left(-\dfrac{1}{2}\gradient^{2}_{\bf r}+v_{\textrm{ne}}({\bf r})\right)\phi_{q}({\bf r}), (4) and \displaystyle g_{pqrs}=\iint{\rm d}{\bf r}_{1}{\rm d}{\bf r}_{2}\,\dfrac{\phi_{p}({\bf r}_{1})\phi_{r}({\bf r}_{2})\phi_{q}({\bf r}_{1})\phi_{s}({\bf r}_{2})}{|{\bf r}_{1}-{\bf r}_{2}|}, (5) respectively, where \{\phi_{p}\} are the spin-restricted spatial molecular orbitals defining the (finite) basis set and v_{\textrm{ne}}({\bf r}) is the nucleus-electron potential. The one- and two-body spin-free excitation operators are defined as \hat{E}_{pq}=\sum_{\sigma}\hat{a}_{p\sigma}^{\dagger}\hat{a}_{q\sigma} and \hat{e}_{pqrs}=\sum_{\sigma,\tau}\hat{a}_{p\sigma}^{\dagger}\hat{a}_{r\tau}^{\dagger}\hat{a}_{s\tau}\hat{a}_{q\sigma} , where \hat{a}_{p\sigma}^{\dagger} ( \hat{a}_{p\sigma} ) is the creation (annihilation) operator of an electron with spin \sigma in spatial orbital p . The formaldimine molecule has 16 electrons and a minimal basis of 13 core and valence atomic orbitals forming two core and six valence doubly-occupied spatial molecular orbitals, as well as five valence unoccupied spatial molecular orbitals as regards the spin-restricted closed-shell Hartree-Fock wavefunction. For the larger cc-pVDZ basis considered in this work, the number of spatial molecular orbitals is 43 (which would require 86 qubits using the Jordan–Wigner mapping if one were to try a full CI description). Due to the exponential increase of the size of the configuration space with respect to the number of molecular orbitals, it is of common use to select only a restricted but relevant part of it by considering the active-space (or frozen-core) approximation where the orbital space is separated into a set of frozen (doubly-occupied), active (varyingly-occupied), and virtual (unoccupied) orbitals. Hence, every Slater determinant |\Phi\rangle will always take the following antisymmetric form, |\Phi\rangle=|\Phi_{\text{core}}\Phi_{\text{active}}\rangle, (6) where \Phi_{\rm core} represents the part of the determinant encoding the frozen-core orbitals of the system (always doubly-occupied) whereas \Phi_{\rm active} is the part encoding the occupancy of the additional electrons in the active orbitals of the system. The remaining virtual orbitals are always left unoccupied. Using this definition, we can write the Hamiltonian into an effective form, \displaystyle\bra{\Phi}\hat{H}\ket{\Phi}\equiv\bra{\Phi_{\rm active}}\hat{H}^{\rm FC}\ket{\Phi_{\rm active}}, (7) with \hat{H}^{\rm FC} the so-called “frozen-core Hamiltonian” defined as follows, \displaystyle\hat{H}^{\rm FC}=\hat{H}_{\text{active}}+E_{\text{frozen}}^{\text{MF}}+\mathcal{\hat{V}}. (8) Here, \hat{H}_{\text{active}} is the Hamiltonian encoding the one- and two- body terms only acting in the active space, \hat{H}_{\text{active}}=\sum_{tu}^{\text{active}}h_{tu}\hat{E}_{tu}+\sum_{tuvw}^{\text{active}}g_{tuvw}\hat{e}_{tuvw}, (9) where t,u,v,w denote active space orbitals. The second term E_{\rm frozen}^{\rm MF} is a scalar representing the mean-field-like energy obtained from the frozen orbitals, E_{\text{frozen}}^{\text{MF}}=2\sum_{i}^{\text{frozen}}h_{ii}+\sum_{ij}^{\text{frozen}}(2g_{iijj}-g_{ijji}), (10) and the third term \mathcal{\hat{V}}=\sum_{tu}^{\text{active}}\mathcal{V}_{tu}\hat{E}_{tu}\text{, with }\mathcal{V}_{tu}=\sum_{i}^{\text{frozen}}(2g_{tuii}-g_{tiiu}) (11) represents an effective one-body potential, which encodes the interaction of the electrons of the active orbitals with the ones of the frozen doubly-occupied orbitals. Note that in a reduced configuration space, the configuration-interaction method is no longer invariant under orbital rotations and the orbitals need to be re-optimized (see Refs. Helgaker et al. 2014 ; Yalouz et al. 2021 ). In this Letter, we employ \hat{H}^{\rm FC} using the converged orbitals of the SA-MCSCF method implemented in Psi4 Smith et al. 2020 , using the equi-ensemble for S_{0} and S_{1} and the active-orbital subset (\pi,n,\pi^{*}) within a CAS(4,3) description (complete active space with four electrons in three spin-restricted spatial orbitals), which accounts for the relevant excitations and minimal static correlation of the system. A.2 The state-average variational quantum eigensolver Around the ground-state equilibrium geometry of formaldimine, the ground state is essentially a closed-shell Slater determinant of Hartree–Fock-type, while the first-excited singlet state is dominated by a singlet open-shell configuration-state function (CSF) of n\pi^{*} -type Illésová et al. 2025 . These are exactly the initial states considered in this work. While the Hartree–Fock state \ket{\Phi_A} is easy to prepare within the Jordan–Wigner mapping, the singlet open-shell CSF \ket{\Phi_B} is slightly more complicated; its circuit is provided in Ref. Yalouz et al. 2022 . Note, however, that the corresponding circuit depth is completely negligible in comparison to the ansatz. Indeed, having prepared the two initial states, we now apply the generalized unitary coupled-cluster ansatz with single and double fermionic excitations Romero et al. 2018b , \displaystyle\hat{U}({\bm{\theta}})=e^{\hat{T}({\bm{\theta}})-\hat{T}^{\dagger}({\bm{\theta}})} (12) where \displaystyle\hat{T}({\bm{\theta}})=\sum_{pq}\theta_{q}^{p}\hat{a}_{p}^{\dagger}\hat{a}_{q}+\sum_{pqrs}\theta_{rs}^{pq}\hat{a}_{q}^{\dagger}\hat{a}_{p}^{\dagger}\hat{a}_{s}\hat{a}_{r}, (13) and the indices run over every active orbitals, hence the prefix ‘generalized’. After the Jordan–Wigner encoding, this ansatz reads \displaystyle\hat{U}({\bm{\theta}})=e^{\sum_{k}\theta_{k}\hat{P}_{k}}, (14) where \hat{P}_{k} are Pauli words, the relation of which to Eq. ( 13 ) can be found in Ref. Romero et al. 2018b . As such, an exponential operator is too complicated to implement, and it is of common use to consider the ‘disentangled’ (or Trotterized) version of the ansatz, \displaystyle\hat{U}({\bm{\theta}})\approx\prod_{k}e^{\theta_{k}\hat{P}_{k}}, (15) which is what is considered in this work. Finally, once the states are prepared (ideally on a quantum computer), the expectation values of the one- and two-body fermionic operators are measured and gathered to compute the {\bf w} -weighted cost function, \displaystyle E_{C}^{\bf w}({\bm{\theta}}) \displaystyle= \displaystyle w_{A}\bra{\Phi_A}\hat{U}^{\dagger}({\bm{\theta}})\hat{H}^{\rm FC}\hat{U}({\bm{\theta}})\ket{\Phi_A} (16) \displaystyle+w_{B}\bra{\Phi_B}\hat{U}^{\dagger}({\bm{\theta}})\hat{H}^{\rm FC}\hat{U}({\bm{\theta}})\ket{\Phi_B}, which upon minimization leads to the converged GUCCSD {\bm{\theta}} -parameters. Note that the expectation value of the spin operator \hat{S}^{2} was further added as a penalty term to Eq. ( 16 ) in order to favor singlet states ( \langle\hat{S}^{2}\rangle=0 ), following the constrained VQE algorithm Ryabinkin et al. 2018 . A.3 More examples on the formaldimine molecule Figure 4: Potential energy surfaces of the formaldimine molecule with respect to \alpha at \phi=89^{\circ} from the equi-ensemble VQE ( w_{A}=w_{B} ). Before presenting more results to corroborate the discussion of the Letter, we show in Fig. 4 the potential energy surfaces obtained using the equi-ensemble VQE. As readily seen in Fig. 4 , the 1-GUCCSD energies are indistinguishable from the 2-GUCCSD ones, in contrast to previously discussed results using the weighted-ensemble VQE. Interestingly, even though the equi-ensemble energy is invariant with respect to any rotation among the states \{\ket{\Psi_j(\bmtheta)}\} , the fact that they both converge to the exact same values that seem to correspond to quasi-diabatic energies is not fortuitous and certainly due to the least-action principle Illésová et al. 2025 . The 1-GUCCSD weighted-ensemble VQE energies in the middle panel of Fig. 1 of the Letter are almost on top (although with a less accurate trace, i.e. , subspace) of the equi-ensemble ones, but for wrong reasons as discussed in the Letter. Note that diabatic orbitals were not used here to reach quasi-diabatic states, in contrast to Ref. Illésová et al. 2025 , but they are essential for robustness and to provide diabatic states for any value of the dihedral angle \phi (only \phi=89^{\circ} is considered here). Figure 5: Top panel: E_{A} and E_{B} with respect to the number of VQE iterations for \alpha=99^{\circ} with w_{A}>w_{B} (wrong initial order). Middle-top panel: errors in E_{T}^{\bf w} and E_{C}^{\bf w} using 1-GUCCSD (dashed lines) and 2-GUCCSD (dotted lines) in the weighted-ensemble (purple and green) and equi-ensemble (black) case. Middle-bottom and bottom panels: same as top and middle top panels but for w_{A}w_{B} (top panels) corresponds to the incorrect order, meaning that \langle\Phi_{A}|\Psi_{0}\rangle<\langle\Phi_{A}|\Psi_{1}\rangle and \langle\Phi_{B}|\Psi_{1}\rangle<\langle\Phi_{B}|\Psi_{0}\rangle . Hence, while the equi-ensemble VQE converges really fast in 300 iterations, the weighted-ensemble VQE takes almost 3000 iterations to converge only to 10^{-6} Hartree. Note that in these cases, 1-GUCCSD finally manages to switch the states in contrast to the case shown in the Letter ( \alpha=138^{\circ} ), which explains why the number of iterations is so high. The swapping occurs at the same time for 2-GUCCSD, but then converges much faster to 10^{-9} Hartree, in around 1500 iterations. When the correct ordering is restored (bottom panels), every method manages to reach 10^{-9} Hartree of accuracy relatively fast (less than 1000 iterations) although the convergence of the equi-ensemble is at least twice faster. Figure 7: Same as Fig. 5 for \alpha=113^{\circ} . Turning to the most problematic point at \alpha=113^{\circ} in Fig. 7 (top panels), the error on the trace E_{T}^{\bf w} is around 10^{-4} Hartree and 10^{-2} Hartree for the cost function E_{C}^{\bf w} using 1-GUCCSD, because the states have not been reordered accordingly during the optimization. Looking at the middle-top panel of Fig. 7 (violet dashed line), we can see that the trace was better converged during the optimization ( i.e. , around 10^{-5} Hartree error at iteration 500) than at convergence. Hence, minimizing slightly the cost function here (but not sufficiently to reorder the states) has been done at the expense of increasing the trace and thus deteriorating the target subspace. This behavior is a striking signature of what can badly happen with the weighted-ensemble VQE when ordered weights are not properly assigned to the initial states (which cannot be predicted in advance in general). Again, within the correct ordering (bottom panels), everything converges as expected, although 2-GUCCSD is, once more, converging faster than 1-GUCCSD for the weighted-ensemble VQE. Figure 8: Same as Fig. 5 for \alpha=121^{\circ} . Another particular point one can look at is the one corresponding to the avoided crossing, see Fig. 8 . In such a case, no particular changes are detected between the top panels and the bottom panels. Indeed, while the equi-ensemble VQE still converges as easily as in any other case, the weighted-ensemble VQE does not manage to reorder the states when using 1-GUCCSD, and seems to have difficulty ( i.e. , requires many iterations) to do so using 2-GUCCSD. This is because the avoided crossing corresponds to a geometry exhibiting strong intrastate mixing, and where the overlap between the eigenstates and the initial states are almost equal, i.e. , \langle\Phi_{A}|\Psi_{0}\rangle\sim\langle\Phi_{A}|\Psi_{1}\rangle and \langle\Phi_{B}|\Psi_{0}\rangle\sim\langle\Phi_{B}|\Psi_{1}\rangle (see Fig. 2 of the Letter). Figure 9: Same as Fig. 5 for \alpha=160^{\circ} . Figure 10: Same as Fig. 5 for \alpha=180^{\circ} . For \alpha=160^{\circ} in Fig. 9 , the exact same discussion as for \alpha=138^{\circ} holds. Finally, for \alpha=180^{\circ} in Fig. 10 , no reordering of the states occurs regardless of the ordering of the weights. In any case, the trace E_{T}^{\bf w} converges with an error of 10^{-10} Hartree, showing that the proper eigenstates are actually obtained, even though the correct ordering is sometimes not fulfilled (see bottom panel with the error of 10^{-2} Hartree on E_{C}^{\bf w} ). This can again be rationalized with the very high overlap values \langle\Phi_{A}|\Psi_{0}\rangle and \langle\Phi_{B}|\Psi_{1}\rangle , while the crossed ones are zero there due to symmetry, and because having the ensemble energy of the wrongly-ordered eigenenergies also corresponds to an extremum of the cost function. Appendix B The one-body non-interacting Kohn–Sham problem for the 16-hydrogen chain B.1 The non-interacting Kohn–Sham Hamiltonian Kohn–Sham (KS) density functional theory relies on the transformation of the complex many-body electronic structure problem into a non-interacting electronic density-dependent one-body effective problem Hohenberg and Kohn 1964 ; Kohn and Sham 1965 . More precisely, the ground-state energy and ground-state electronic density of a given complex system can be obtained exactly by solving the KS equation Kohn and Sham 1965 : \displaystyle\left(\hat{T}+\hat{v}^{\rm KS}[n]\right)\ket{\Phi^{\rm KS}}=\mathcal{E}^{\rm KS}\ket{\Phi^{\rm KS}}, (17) where \hat{T} is the kinetic energy operator, \ket{\Phi^{\rm KS}} is a single Slater determinant and \hat{v}^{\rm KS}[n]=\hat{v}^{\rm ext}+\hat{v}^{\rm H}[n]+\hat{v}^{\rm xc}[n] is the density-dependent KS potential operator. It contains the external potential \hat{v}^{\rm ext}({\bf r}) , i.e. , the ion-electron interaction, the trivial Hartree potential \hat{v}^{\rm H}[n]({\bf r}) , and finally the so-called exchange and correlation (XC) potential \hat{v}^{\rm xc}[n]({\bf r}) , which implicitly contains all non-trivial contributions arising from the electron-electron interaction. The KS equation ( 17 ) is solved self-consistently by plugging the newly calculated electronic density back into the KS potential, iteratively until convergence is reached. At convergence, provided that the exact XC functional is known, the non-interacting auxiliary KS system density is equal to the ground-state density of the physical system. The total energy, functional of the density, is also recovered according to the following expression, \displaystyle E_{0} \displaystyle= \displaystyle\mathcal{E}^{\rm KS}+E_{\rm Hxc}[n^{\Phi^{\rm KS}}]-\int{\bf v}^{\rm Hxc}[n^{\Phi^{\rm KS}}]({\bf r})\,n^{\Phi^{\rm KS}}({\bf r})\,{\rm d}{\bf r}, where \displaystyle n^{\Phi^{\rm KS}}({\bf r}) \displaystyle= \displaystyle 2\sum_{k=1}^{N_{\rm occ}}|\varphi_{k}^{\rm KS}({\bf r})|^{2} (19) \displaystyle= \displaystyle 2\sum_{k=1}^{N_{\rm occ}}\langle{\bf r}|\varphi_{k}^{\rm KS}\rangle\langle\varphi_{k}^{\rm KS}|{\bf r}\rangle, and \displaystyle\mathcal{E}^{\rm KS}=2\sum_{k=1}^{N_{\rm occ}}\varepsilon_{k}^{\rm KS}, (20) with \ket{\varphi_k^{\rm KS}} denoting the k -th KS spatial-orbital in \ket{\Phi^{\rm KS}} and \varepsilon_{k}^{\rm KS} its associated energy. N_{\rm occ} corresponds to the number of occupied spatial orbitals that is equal to half the number of electrons. In this work, we do not aim at achieving self-consistency, and we simply extract the KS Hamiltonian at first iteration, i.e. , using the sum of atomic densities for n({\bf r}) and the local spin density functional SVWN for \hat{v}^{\rm xc}[n] . B.2 The state-average variational quantum eigensolver Considering the non-interacting KS Hamiltonian (Eq. 17 ) projected onto a finite computational basis set \left\{\chi_{i}({\bf r})\right\} composed of N spatial-orbitals, \displaystyle\hat{h}^{\rm KS} \displaystyle= \displaystyle\sum_{i=1,j=1}^{N}h_{ij}^{\rm KS}\sum_{\sigma}\left(\hat{c}^{\dagger}_{i\sigma}\hat{c}_{j\sigma}+\textrm{h.c.}\right), (21) where \hat{c}^{\dagger}_{i\sigma} ( \hat{c}_{i\sigma} ) refers to the creation (annihilation) operator of an electron of spin \sigma={\uparrow,\downarrow} in the spatial-orbital \chi_{i}({\bf r}) , respectively. The h_{ij}^{\rm KS} matrix elements (integrals) involve both the kinetic contributions and the KS potential. We then map the matrix representation of \hat{h}^{\rm KS} , of dimension N\times N , onto M=\log_{2}(N) qubits following the binary mapping as suggested in Ref. 91 , i.e. , each spatial-orbital is encoded as a given bitstring of the \log_{2}(N) -qubit system. The operators are also transformed into Pauli strings following Refs. 91 or 99 , such that one can solve Eq. 17 on a quantum computer to extract the KS orbital and orbital energies \{\ket{\varphi^{\rm KS}_k}\} and \{\varepsilon_{k}^{\rm KS}\} , respectively. We refer to this method as Quantum Density Functional Theory (QDFT) Senjean et al. 2023 . We employ the ensemble VQE algorithm to extract the first k=1,\ldots,N_{\rm occ} excited states and excited-state energies \ket{\varphi^{\rm KS}_k} and \varepsilon_{k}^{\rm KS} , respectively. Hence, an ensemble of N_{\rm occ}=8 states are required for the hydrogen chain composed of 16 hydrogen atoms (16 electrons). The hardware efficient ansatz, the R_{y} CNOT ansatz, is used for \hat{U}({\bm{\theta}}) and reads Kandala et al. 2017 \displaystyle\hat{U}({\bm{\theta}}) \displaystyle= \displaystyle\prod_{m=1}^{M}R_{y,m}(\theta_{m_{y}}^{0})\prod_{n=1}^{{N_{L}}}\hat{U}_{n}^{\rm ENT}({\bm{\theta}}^{n}) (22) for a number of layers {N_{L}} and a number of qubits M , with the entanglement unitary blocks \displaystyle\hat{U}_{n}^{\rm ENT}({\bm{\theta}}^{n})=\prod_{m=1}^{M-1}{\rm CNOT}_{m(m+1)}\prod_{m=1}^{M}R_{y,m}(\theta_{m}^{n}). (23) 10 layers are considered in this Letter. Just as for the formaldimine molecule, one has to choose initial states on which the transformation \hat{U}({\bm{\theta}}) is applied. According to Ref. 91 , we choose the first states of the computational basis, i.e. , \{\ket{ \phi_k}\}=\{\ket{0000},\ket{0001},\ket{0010},\ket{0011},\ket{0100},\ket{0101},\ket{0110},\ket{0111}\} , that are very easy to prepare using maximum three X gates. Interestingly, the key quantities to be computed within QDFT are Eqs. 19 and ( 20 ), which are both invariant with respect to any rotation between the KS orbitals within the occupied subspace. Indeed, Eq. ( 20 ) is the trace of the Hamiltonian matrix, equivalent to E_{T}^{\bf w} defined in the Letter. For the density in Eq. ( 19 ), applying a unitary matrix transformation {\bf U} to the occupied orbitals of the KS Slater determinant does not change the determinant (up to the sign of the determinant of {\bf U} ). The associated idempotent one-body reduced density matrix {\bm{\gamma}}^{\rm KS} is the identity in the occupied KS orbital subspace (with a pre-factor 2 as we work with doubly-occupied spatial molecular orbitals, {\bm{\gamma}}^{\rm KS}_{\rm occ}=2{\bm{I}} ) and 0 elsewhere, so that applying the unitary {\bf U} to rotate the occupied orbitals leads to the new density matrix \displaystyle{\bm{\lambda}}_{\rm occ} \displaystyle= \displaystyle{\bf U}^{\dagger}{\bm{\gamma}}^{\rm KS}_{\rm occ}{\bf U} (24) \displaystyle= \displaystyle 2{\bf U}^{\dagger}{\bm{I}}{\bf U} \displaystyle= \displaystyle 2{\bm{I}} \displaystyle= \displaystyle{\bm{\gamma}}^{\rm KS}_{\rm occ}, where {\bf U}^{\dagger}{\bf U}={\bm{I}} . Hence, the equi-ensemble VQE is sufficient to solve the non-interacting KS problem, and there is no interest in considering a weighted ensemble. B.3 More results on Quantum Density Functional Theory A detailed statistical analysis was performed, aiming to decide whether the improvements of equi-ensemble VQE are significant, i.e., whether the improvement can be expected in general or is only present occasionally. For this conclusion, we checked the normality of differences between E_{T}^{\bf w} of equi-ensemble and weighted ensemble via the Shapiro-Wilk test Shapiro and Wilk 1965 with p -value equal to 0.05, same as for all the following tests. As can be seen from Tab. 1 , we are not sure about the normality of the 3 differences (in bold). Thus, we chose the non-parametric Wilcoxon Signed-rank test Conover 1999 for comparison of the errors in the rest of this paper. For the comparison itself, we proceeded to compare both approaches via a) area under the curve (AUC) as summary statistics and b) point-wise. In the former case, with AUCs listed in Tab. 2 , the Wilcoxon test’s statistics is equal to 0 and its p -value to 0.001953125, thus deciding that the difference is significant and moreover, that all the differences are in the same direction, i.e., that the weighted ensemble demonstrates higher errors every time, when summarized via AUC. For the latter, point-wise analysis, we can see the results in Tab. 3 . Due to a large number of comparisons, we also adopted Benjamini-Hochberg correction Benjamini and Hochberg 2018 to account for possible false discovery rate . After this procedure, it can be observed that in 24 out of 26 values of R the difference is significant, favoring the equi-ensemble approach again. Moreover, based on the listed statistics value, in 23 cases all the differences were in the same direction. Figure 11: 10 trials per value of R were considered, using randomly sampled initial values of the variational \bm{\theta} -parameters. Lines correspond to the mean values over the 10 trials, and shaded areas represent the corresponding standard deviations. Top panel: error in the trace E_{T}^{\bf w}({\bm{\theta}}) . Middle panel: Visualization of mean difference (between E_{T}^{\bf w}({\bm{\theta}}) of equi-ensemble and weighted ensemble) and the bootstrap confidence band. Bottom panel: number of ensemble VQE iterations to convergence. For illustration purposes, the plot of both equi-ensemble and weighted ensemble errors is provided in Fig. 11 , together with their standard deviations and marks of the points, where the difference between both approaches was point-wise insignificant. It is joined together with the plot of VQE iterations necessary until convergence and with the plot of both mean difference between both approaches and the bootstrap confidence band Hall and Horowitz 2013 computed at 95% confidence level and with 2000 samples, showing us the area, where 95% of curves would be positioned, having made more runs. In terms of computational efficiency, for small interatomic distances 0.5-1.2 Å, the equi-ensemble VQE requires more iterations than the weighted-ensemble, which is unusual and differs from what we have seen for the formaldimine molecule previously. However, this range corresponds to where the use of ordered weights gives the largest error of around 10^{-1} Hartree on E_{T}^{\bf w} , thus possibly ending in a local minimum that does not affect the equi-ensemble case, which achieves much better accuracy albeit with more iterations. Beyond this range, the equi-ensemble VQE converges around twice as fast as the weighted-ensemble VQE together with better accuracy. R p -value R p -value R p -value R p -value 0.5 2.99e-04 0.6 2.26e-05 0.7 2.34e-02 0.8 2.53e-02 0.9 3.61e-02 1.0 8.26e-03 1.1 6.20e-03 1.2 2.82e-04 1.3 1.22e-04 1.4 6.82e-05 1.5 2.40e-02 1.6 4.60e-01 1.7 1.12e-01 1.8 8.06e-03 1.9 3.44e-04 2.0 5.09e-07 2.1 4.11e-07 2.2 1.23e-04 2.3 1.27e-04 2.4 4.54e-07 2.5 6.72e-03 2.6 2.19e-01 2.7 2.68e-07 2.8 2.47e-03 2.9 3.73e-06 3.0 3.27e-03 Table 1: Results of the Shapiro-Wilk test of differences between equi-ensemble and weighted-ensemble applied per value of R (Å). Trial Equi-ensemble Weighted-ensemble 1 0.0154 0.890 2 0.00593 0.962 3 0.00916 0.953 4 0.00661 1.016 5 0.0133 0.922 6 0.0130 0.945 7 0.00669 0.929 8 0.0111 0.918 9 0.0111 1.029 10 0.00565 0.924 Table 2: AUC values of each trial for both equi-ensemble and weighted-ensemble VQE. R Stat. p -value BH R Stat. p -value BH 0.5 0 0.00195 0.00221 1.8 0 0.00195 0.00221 0.6 0 0.00195 0.00221 1.9 0 0.00195 0.00221 0.7 0 0.00195 0.00221 2.0 0 0.00195 0.00221 0.8 0 0.00195 0.00221 2.1 10 0.08398 0.08398 0.9 0 0.00195 0.00221 2.2 0 0.00195 0.00221 1.0 0 0.00195 0.00221 2.3 0 0.00195 0.00221 1.1 0 0.00195 0.00221 2.4 0 0.00195 0.00221 1.2 0 0.00195 0.00221 2.5 0 0.00195 0.00221 1.3 0 0.00195 0.00221 2.6 5 0.01953 0.0212 1.4 0 0.00195 0.00221 2.7 0 0.00195 0.00221 1.5 0 0.00195 0.00221 2.8 0 0.00195 0.00221 1.6 0 0.00195 0.00221 2.9 0 0.00195 0.00221 1.7 0 0.00195 0.00221 3.0 9 0.06445 0.0670 Table 3: Results of the Wilcoxon signed-rank test for point-wise comparison of equi-ensemble and weighted ensemble VQE, listing the statistics’ values, raw p -values, and the p -values corrected via the Benjamini-Hochberg approach.