Orbital-optimized spin-adapted multistate contracted VQE for excited states and properties on quantum hardware
Extracted source text · arXiv 2606.15489
\documentclass[
aip,
jcp,
amsmath,
amssymb,
]{revtex4-1}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{float}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{braket}
\usepackage[hidelinks]{hyperref}
\bibliographystyle{apsrev4-1}
\begin{document}
\title{Orbital-optimized spin-adapted multistate contracted VQE for excited states and properties on quantum hardware}
\author{Erik Rosendahl Kjellgren}
\email{kjellgren@sdu.dk}
\affiliation{Department of Physics, Chemistry and Pharmacy,
University of Southern Denmark, Campusvej 55, 5230 Odense, Denmark.}
%
\author{Karl Michael Ziems}
\email{k.m.ziems@soton.ac.uk}
\affiliation{School of Chemistry, University of Southampton, Highfield, Southampton SO17 1BJ, United Kingdom}
\affiliation{Department of Chemistry, Technical University of Denmark, Kemitorvet Building 207, DK-2800 Kongens Lyngby, Denmark.}
%
\author{Peter Reinholdt}
\affiliation{Department of Physics, Chemistry and Pharmacy,
University of Southern Denmark, Campusvej 55, 5230 Odense, Denmark.}
%
\author{Stephan P. A. Sauer}
\affiliation{Department of Chemistry, University of Copenhagen, DK-2100 Copenhagen \O, Denmark.}
%
\author{Sonia Coriani}
\affiliation{Department of Chemistry, Technical University of Denmark, Kemitorvet Building 207, DK-2800 Kongens Lyngby, Denmark.}
%
\author{Jacob Kongsted}
\affiliation{Department of Physics, Chemistry and Pharmacy,
University of Southern Denmark, Campusvej 55, 5230 Odense, Denmark.}
%
\date{\today}
\begin{abstract}
We introduce the orbital-optimized multistate contracted variational quantum eigensolver (oo-MC-VQE) method with spin-adapted operators for the computation of ground and excited states, as well as state-specific and transition properties. The use of spin-adapted operators ensures that the spin symmetry of the reference states is conserved throughout the VQE optimization.
In multistate variational approaches, achieving a balanced description of an increasing number of electronic states places growing demands on the expressibility of the underlying ansatz, thereby introducing a fundamental trade-off between accuracy and circuit complexity.
We consider the effects of this trade-off explicitly and find that the number of circuit parameters required to obtain accurate results is reported to scale approximately linearly in the number of states.
We further present an explicit quantum-circuit implementation of the oo-MC-VQE method and demonstrate its integration with quantum error mitigation techniques. Finally, we execute the method on real quantum devices to compute absorption spectra for two benchmark molecular systems.
\end{abstract}
\keywords{}
\maketitle
\section{Introduction}
The prediction of electronically excited states and their associated transition properties is central to the theoretical description of molecular spectroscopy.\cite{Mustroph2015} Excitation energies and transition moments can be connected to experimentally observable quantities such as absorption spectra and play a key role in understanding photochemical processes, energy transfer, and excited-state dynamics.
Electronically excited states and their properties are also key to, for example, the design of photoactive organic materials used for applications such as photovoltaics, photocatalysts for solar fuels, light-emitting diodes, wastewater purification, and photodynamic therapy.\cite{Hamblin2004,Cardone2022,Mohamadpour2024,TAO2025102142}
The efficiency of such materials directly depends on the transition rates between different electronic states, and excited state engineering is a direct strategy to improve their efficiency.\cite{Pham2021}
%Despite their importance, the robust and balanced computation of these quantities remains a significant challenge\cite{FIXME}, especially in situations involving strong electronic reorganization, near-degeneracies, or multiconfigurational character\cite{FIXME}.
Despite their importance, the robust and balanced computation of these quantities remains a significant challenge, especially in situations involving strong electronic reorganization, near-degeneracies, or multiconfigurational character.
Broadly speaking, two distinct routes can be taken to describe electronically excited states. The first is based on response theory, where excitation energies and transition properties are obtained through linear-response\cite{Olsen1985-pg,Christiansen1998-mb,Pawlowski2015-vd} (LR) formalism built on top of a ground-state reference.\cite{helgaker2012}
This approach has been highly successful in many regimes, but they fundamentally treat excited states as perturbations of the reference state.
As a result, they may encounter conceptual and practical limitations in certain regimes, particularly when the excited states involve strong electronic reorganization or near-degeneracies.
The second route is based on variational, state-specific, or multistate approaches, in which ground and excited states are treated on an equal footing by optimizing them explicitly within a common framework.\cite{Ivanov2006, Kossoski2023, Saade2024, Damour2024}
In such approaches, excitation energies are obtained as energy differences between independently or jointly optimized states, and transition properties are evaluated directly from the transition moments between resulting wave functions.
%Such formulations may offer a more balanced description of electronic structure and are particularly well-suited for challenging scenarios such as conical intersections and strongly correlated systems\cite{FIXME}.
Such formulations may offer a more balanced description of electronic structure and are particularly well-suited for challenging scenarios such as conical intersections and strongly correlated systems.
%
%Both of these routes are well-developed within a classical quantum-chemistry context, but there is a growing interest in also adopting quantum computing as a tool for electronic structure theory\cite{FIXME}.
Both of these routes are well-developed within a classical quantum-chemistry context, but there is a growing interest in also adopting quantum computing as a tool for electronic structure theory.
This is motivated by the fact that (ideal) quantum computers naturally and efficiently operate on an exponentially large Hilbert space, and that an exact classical treatment of the many-electron wavefunction similarly requires exponential resources.
This has led to the expectation that quantum algorithms may provide a route to overcoming the exponential bottlenecks inherent in classical approaches to strongly correlated electronic structure problems.
%In the long term, these challenges are expected to be addressed by fault-tolerant quantum algorithms, such as quantum phase estimation\cite{FIXME} and related Hamiltonian simulation approaches\cite{FIXME}.
In the long term, these challenges are expected to be addressed by fault-tolerant quantum algorithms, such as quantum phase estimation and related Hamiltonian simulation approaches.
%However, current and near-term quantum hardware remains limited by noise and decoherence\cite{FIXME}, which restricts the depth and complexity of circuits that can be reliably executed, thereby precluding the practical realization of such fault-tolerant algorithms.
However, current and near-term quantum hardware remains limited by noise and decoherence, which restricts the depth and complexity of circuits that can be reliably executed, thereby precluding the practical realization of such fault-tolerant algorithms.
Thus, in quantum chemistry, this potential has so far been explored primarily through variational hybrid quantum–classical algorithms, or at least using that as a subroutine, most notably the variational quantum eigensolver (VQE)\cite{Peruzzo2014-rx}.
In these approaches, a parameterized quantum circuit is used to prepare a trial wave function, while a classical optimizer iteratively updates the parameters to minimize the measured energy.
LR and equation of motion (EOM) formulations for excited states have been extensively explored in the quantum computing context, including in previous work by some of the present authors\cite{Ollitrault2020-jd,Kumar2023-nf,Asthana2023-eu,Ziems2024-ew,Ziems2024-mt,Jensen2024-hs}.
Although these methods overall appear as a promising direction, LR/EOM methods have been shown to exhibit several limitations in certain regimes, notably from noise sensitivity when the parameterization introduces a metric matrix,\cite{Kjellgren2024-nm,Kwao2026-gd}.
Even for parameterizations that avoid an explicit metric, the resulting excitation energies may depend on parameters that are redundant with respect to the ground-state wave function.\cite{Kjellgren2025-cj}
Furthermore, it is well known that linear-response approaches become inadequate in the vicinity of conical intersections.\cite{Ziems2024-ew,Taylor2024-ji,Taylor2023-tg}
Thus, it is worthwhile to consider the performance of alternative, explicitly state-targeting methods.
Excited states can be targeted through the variance-VQE\cite{Zhang2022-cw} or different formulations of state-averaged VQE, with the two most common approaches being subspace-search VQE (SS-VQE)\cite{Nakanishi2019-ng} and multistate contracted VQE (MC-VQE)\cite{Parrish2019-fi}.
Grimsley and Evangelista found the MC-VQE approach to be a promising alternative to self-consistent EOM.\cite{Grimsley2025-ie}
The state-averaged VQE approaches have also been extended to orbital-optimized versions.\cite{yalouz2021state,Yalouz2022-xz}
In this work, we build upon these developments by extending the orbital-optimized state-averaged VQE framework to a spin-adapted formulation, thereby ensuring the correct spin symmetry of all included states. We focus on the multistate contracted state-resolution,\cite{Parrish2019-fi}, which reduces circuit complexity at the expense of an increased number of measured expectation values during state resolution and subsequent property evaluations.
Importantly, assessing the practical viability of such approaches requires going beyond noiseless simulations and demonstrating their performance under realistic device conditions. To this end, we consider key implementation aspects, including explicit circuit constructions and the incorporation of quantum error mitigation techniques, and perform absorption spectra calculations within the MC-VQE framework on real quantum hardware.
\section{Theory}
\subsection{Multistate Contracted VQE}
In the multistate contracted VQE (MC-VQE)\cite{Parrish2019-fi} model, multiple electronic states are optimized at once using the VQE algorithm.
In the MC-VQE framework, each state is constructed using a two-part circuit: a fixed, parameter-free state-preparation circuit that initializes one of the orthogonal basis states, followed by a parameterized correlator circuit that introduces electron correlation through a set of variational parameters shared across all states.
The optimization procedure targets the state-averaged energy, which is given as
%
\begin{align}
E^\text{SA}_0 &= \min_{\boldsymbol{\theta}}\frac{1}{N_\text{states}}\sum_IE_I(\boldsymbol{\theta})\\
&= \min_{\boldsymbol{\theta}}\frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{H}\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>
\label{eq:ESA}
\end{align}
%
Here, $\left|I\right>$ are the reference states, which are taken to be orthogonal and to transform according to a definite spin symmetry.
Under a unitary parameterization, the optimization of the state-averaged energy reduces to minimizing the trace of the Hamiltonian within the subspace, and does not by itself provide state-resolved eigenstates, necessitating a subsequent diagonalization within the subspace.
This inter-multistate optimization (also termed \textit{state-resolution)} can be performed using a variety of approaches and differentiates the methods mentioned above. We focus on the approach by Parrish et al.\cite{Parrish2019-fi} using a classical diagonalization of the multistate Hamiltonian,
%
\begin{equation}
\boldsymbol{H}^\text{MS}\boldsymbol{V}_{\!\!I} = E_I\boldsymbol{V}_{\!\!I}
\end{equation}
%
where the multistate Hamiltonian matrix elements are defined as,
%
\begin{equation}
H^\text{MS}_{IJ} = \left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta}^\text{opt})\hat{H}\boldsymbol{U}(\boldsymbol{\theta}^\text{opt})\right|J\right>
\label{eq:HAM_MS}.
\end{equation}
%
Here, $\boldsymbol{\theta}^\text{opt}$ are the parameters found using Eq. (\ref{eq:ESA}).
It should be noted that the Hamiltonian is hermitian ($H^\text{MS}_{IJ}=\left(H^\text{MS}_{JI}\right)^*$), such that only the upper (or lower) triangular part of the matrix needs to be evaluated.
After performing the classical diagonalization of the multistate Hamiltonian matrix, we obtain the vectors $\boldsymbol{V}_{\!\!I}$, which contain the expansion coefficients of the eigenstates in the reference-state basis.
These are used to express the final wave functions in the form,
%
\begin{equation}
\left|\Psi_I\right> = \boldsymbol{U}(\boldsymbol{\theta}^\text{opt})\sum_JV_{JI}\left|J\right>
\end{equation}
%
With $V_{JI}$ being the column vectors of $\boldsymbol{V}_I$.
\subsection{Unitary Product State}
In variational quantum algorithms, a variety of ansätze have been proposed for state preparation, including hardware-efficient ansätze (HEA)\cite{Kandala2017-nj}, unitary coupled cluster (UCC)\cite{Taube2006-dv,Peruzzo2014-rx} approaches, or tiled unitary product states ansätze\cite{Burton2024-pn,Anselmetti2021-ra}.
When targeting quantum hardware, a unitary product state can parameterize the MC-VQE.
In this work, we restrict ourselves to UPS-type wave functions, which are written in the following form,
%
\begin{equation}
\left|\text{UPS}\right> = \prod_i\boldsymbol{U}_i(\theta_i)\left|I\right>
\end{equation}
%
with $\boldsymbol{U}_i(\theta_i)$ being a parameterized unitary operator.
The exact eigenstates are eigenfunctions of the total spin operator $S^2$. Maintaining this symmetry can be achieved either by introducing spin penalty terms or by constructing a spin-adapted operator pool. In this work, we take the latter approach and restrict ourselves to operators that preserve this symmetry.
Recent advances have made spin-adapted double excitation operators possible for both state-vector simulators\cite{Kjellgren2025-pb, Magoulas2025-wb} and circuit representations.\cite{Magoulas2025-nf,Jain2026-tt}
This allows for spin-adapted versions of ans\"atze like factorized UCC, ADAPT\cite{Grimsley2019-yc}, etc.
There also exist spin-adapted ans\"atze that utilize a pool of excitation operators that avoid these more complicated spin-adapted double excitations.
These ans\"atze make use of only singlet spin-adapted single excitation operators and pair-double excitation operators.
%
These types of excitations are enough to construct the ans\"atze tUPS\cite{Burton2024-pn} and k-UpCCGSD.\cite{Lee2019-ka}
A spin-adapted fermionic ADAPT ansatz can also be constructed using singles and pair-doubles, but this type of ADAPT is difficult to converge\cite{Burton2023-zq} and will not be considered in this work.
Having described the functional form of the quantum circuit, we next turn to the problem of determining the optimal variational parameters.
One possible strategy for optimizing the circuit parameters is to use gradient-based methods, which use gradient information to guide efficient parameter updates during the optimization. The gradient of a UPS wave function can be found using the parameter-shift rule\cite{Wierichs2022-ta}. Since the total energy is the average energy of all of the states, the total gradient is the average gradient over all states.
%
\begin{align}
\frac{\partial E^\text{SA}}{\partial \theta_{i}} &= \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\frac{\partial E_I}{\partial\theta_i}\\
&= \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\frac{\partial\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{H}\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>}{\partial\theta_{i}}
\end{align}
%
Thus, the parameter-shift rule can be used $N_\text{states}$ times to get the gradient of the multistate contracted UPS wave function.
Equivalent considerations can be made to use the gradient-free RotoSolve\cite{Nakanishi2020-mg,Ostaszewski2021-oj,Jager2025-vo,Rossi2026-sd} type optimizers for the multistate contracted UPS wave function.
\subsection{Orbital Optimized MC-VQE}
The MC-VQE can be extended to include orbital optimization, which can be used in combination with the active-space approximation or simply optimize the orbital rotation together with the circuit parameterization.
The orbital rotation parameterization itself can be rewritten as an integral transformation,\cite{Helgaker2013-xk}
%
\begin{align}
h_{pq}\left(\boldsymbol{\kappa}\right) &= \sum_{p'q'} \left[\mathrm{e}^{\boldsymbol{\kappa}}\right]_{q'q}h_{p'q'}\left[\mathrm{e}^{-\boldsymbol{\kappa}}\right]_{p'p}\label{eq:int1e_kappa}\\
g_{pqrs}\left(\boldsymbol{\kappa}\right) &= \sum_{p'q'r's'}\left[\mathrm{e}^{\boldsymbol{\kappa}}\right]_{s's}\left[\mathrm{e}^{\boldsymbol{\kappa}}\right]_{q'q}g_{p'q'r's'}\left[\mathrm{e}^{-\boldsymbol{\kappa}}\right]_{p'p}\left[\mathrm{e}^{-\boldsymbol{\kappa}}\right]_{r'r}\label{eq:int2e_kappa}
\end{align}
%
making it a purely classic cost.
The minimization of the energy is now over the circuit parameters, $\boldsymbol{\theta}$, and orbital rotation parameters, $\boldsymbol{\kappa}$,
%
\begin{equation}
E^\text{SA}_0 = \min_{\boldsymbol{\theta},\boldsymbol{\kappa}}\frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{H}(\boldsymbol{\kappa})\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>
\label{eq:ESA_orb}
\end{equation}
%
For gradient-based solvers, the gradient of the energy is needed,
%
\begin{equation}
\frac{\partial E^\text{SA}}{\partial \kappa_{mn}} = \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\frac{\partial\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{H}(\boldsymbol{\kappa})\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>}{\partial\kappa_{mn}}
\end{equation}
%
For the state-specific case, the orbital rotation gradient is given as,
%
\begin{align}
\frac{\partial\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{H}(\boldsymbol{\kappa})\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>}{\partial\kappa_{mn}} &= 2\sum_p \left(h_{np}D^{[1]}_{mp} + h_{pm}D^{[1]}_{pn}\right)\\
&\nonumber\quad+ \sum_{pqr}\left(g_{npqr}D^{[2]}_{mpqr} - g_{pmqr}D^{[2]}_{pnqr} - g_{mpqr}D^{[2]}_{npqr} + g_{pnqr}D^{[2]}_{pmqr}\right)
\end{align}
%
Hence, the state-averaged orbital gradient takes the form,
%
\begin{align}
\frac{\partial E^\text{SA}}{\partial \kappa_{mn}} &= 2\sum_p \left(h_{np}D^{\text{SA},[1]}_{mp} + h_{pm}D^{\text{SA},[1]}_{pn}\right)\\
&\nonumber\quad+ \sum_{pqr}\left(g_{npqr}D^{\text{SA},[2]}_{mpqr} - g_{pmqr}D^{\text{SA},[2]}_{pnqr} - g_{mpqr}D^{\text{SA},[2]}_{npqr} + g_{pnqr}D^{\text{SA},[2]}_{pmqr}\right)
\end{align}
%
with $D^{\text{SA},[1]}_{pq}$ and $D^{\text{SA},[2]}_{pqrs}$ being the state-averaged 1-RDM and 2-RDM respectively,
%
\begin{align}
D^{\text{SA},[1]}_{pq} &= \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{E}_{pq}\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>\\
&= \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}D^{I,[1]}_{pq}\\
D^{\text{SA},[2]}_{pqrs} &= \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}\left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\hat{e}_{pqrs}\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>\\
&= \frac{1}{N_\text{states}}\sum_I^{N_\text{states}}D^{I,[2]}_{pqrs}
\end{align}
%
For full-space calculations, adding orbital rotations corresponds to applying generalized singles just before the Hamiltonian,
%
\begin{equation}
E(\boldsymbol{\theta},\boldsymbol{\kappa}) = \left<I\left|\boldsymbol{U}^\dagger(\boldsymbol{\theta})\boldsymbol{U}^\dagger(\boldsymbol{\kappa})\hat{H}\boldsymbol{U}(\boldsymbol{\kappa})\boldsymbol{U}(\boldsymbol{\theta})\right|I\right>
\end{equation}
%
with
%
\begin{equation}
\boldsymbol{U}(\boldsymbol{\kappa}) = \exp\left(\sum_{p>q}\kappa_{pq}\hat{\sigma}_{pq}^\text{SA}\right)~.
\end{equation}
%
Multiplying the orbital rotations and the generalised singles together gives,
%
\begin{align}
\boldsymbol{U}(\boldsymbol{\kappa})\boldsymbol{U}(\theta_{rs}) &= \exp\left(\sum_{p>q}\kappa_{pq}\hat{\sigma}_{pq}^\text{SA}\right)\exp\left(\theta_{rs}\hat{\sigma}_{rs}^\text{SA}\right)\\
&= \exp\left(\sum_{p>q}\kappa_{pq}\hat{\sigma}_{pq}^\text{SA} + \theta_{rs}\hat{\sigma}_{rs}^\text{SA} + \left[\sum_{p>q}\kappa_{pq}\hat{\sigma}_{pq}^\text{SA},\theta_{rs}\hat{\sigma}_{rs}^\text{SA}\right] + ...\right)
\end{align}
%
Since commutators between single excitation operators can only give new single excitation operators, this reduces to
%
\begin{equation}
\boldsymbol{U}(\boldsymbol{\kappa})\boldsymbol{U}(\theta_{rs}) = \exp\left(\sum_{p>q}\kappa'_{pq}\hat{\sigma}_{pq}^\text{SA}\right) = \boldsymbol{U}(\boldsymbol{\kappa}')~.
\end{equation}
%
Thus, any single excitation circuit parameter next to the orbital parameterization is redundant and can be removed from the circuit.
\subsection{Excitation Energies and Oscillator Strengths}
Since in the SA-VQE framework we obtain explicit circuits for each state, any state-specific or inter-state property can be readily obtained. Here, we focus on the excitation energy and oscialltor strength.
The excitation energies can be determined as the energy difference between two states,
%
\begin{equation}
\varepsilon_{KL} = \left<\Psi_L\left|\hat{H}\right|\Psi_L\right> - \left<\Psi_K\left|\hat{H}\right|\Psi_K\right>
\label{eq:exc_energy}
\end{equation}
%
The oscillator strengths in the length gauge can be determined as,
%
\begin{equation}
f_{KL} = \frac{2}{3} \frac{m_e}{\hbar^2} \varepsilon_{LK}\left|\left<\Psi_L\left|\hat{\boldsymbol{\mu}}\right|\Psi_K\right>\right|^2
\label{eq:osc_str}
\end{equation}
%
To obtain a simulated absorption spectrum, the discrete excitation lines are broadened using a Gaussian convolution\cite{Barone2011-eo},
%
\begin{equation}
S_L(\omega) =
\frac{e^2 \pi N_A}{2 \ln(10)\,\epsilon_0 m_e c}
\sum_K f_{KL} \frac{\omega}{\varepsilon_{LK}}
g(\omega - \varepsilon_{LK}; \sigma),
\label{eq:spectrum}
\end{equation}%
where $\sigma$ is a phenomenological broadening parameter and
\begin{equation}
g(\Delta\omega; \sigma)
=
\frac{1}{\sigma\sqrt{2\pi}}
\exp\!\left(-\frac{\Delta\omega^2}{2\sigma^2}\right).
\end{equation}
\subsection{Matrix Elements}
In the construction of the multistate Hamiltonian, Eq. (\ref{eq:HAM_MS}) and the excitation energies, Eq. (\ref{eq:exc_energy}), matrix elements of the following type need to be evaluated,
%
\begin{equation}
M_{IJ}=\left<I\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|J\right>\label{eq:MIJ},
\end{equation}
%
where $\hat{O}_\text{H}$ is some Hermitian operator.
To evaluate these matrix elements, we use the technique proposed by Parrish et al\cite{Parrish2019-fi} and Nakanishi et al\cite{Nakanishi2019-ng},
using a superposition decomposition of $\left<I\right|$ and $\left|J\right>$,
%
\begin{align}
\Re(M_{IJ}) &= \left<\frac{1}{\sqrt{2}}\left(I+J\right)\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|\frac{1}{\sqrt{2}}\left(I+J\right)\right>\\
&\nonumber\quad-\frac{1}{2}\left<I\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|I\right> - \frac{1}{2}\left<J\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|J\right>\label{eq:MIJ}
\end{align}
%
As written, Eq. \eqref{eq:MIJ} may require relatively complicated state-preparation circuits in cases where $\left|I\right>$ and $\left|J\right>$ contain multiple determinants.
Suppose that the states are expanded as a linear combination of determinants as
%
\begin{equation}
\left|I\right> = \sum_i c_i \left|\text{det}_i\right> \label{eq:csf}
\end{equation}
%
with $c_i$ being the weight of uncontracted determinants $\left|\text{det}_i\right>$ in the state $\left|I\right>$.
Inserting Eq.~\ref{eq:csf} in Eq.~\ref{eq:MIJ} we find
%
\begin{equation}
M_{IJ} = \sum_{ij} c_ic_j\left<\text{det}_i\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|\text{det}_j\right>\label{eq:exp_val}.
\end{equation}
%
Thus, we can, as an alternative to creating deep state preparation circuits, consider instead making many, but much simpler, state preparation circuits. In this case, each term is evaluated as
%
\begin{align}
\Re\left(\left<\text{det}_i\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|\text{det}_j\right>\right) &= \left<\frac{1}{\sqrt{2}}\left(\text{det}_i+\text{det}_j\right)\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|\frac{1}{\sqrt{2}}\left(\text{det}_i+\text{det}_j\right)\right>\\
&\nonumber\quad - \frac{1}{2}\left<\text{det}_i\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|\text{det}_i\right> - \frac{1}{2}\left<\text{det}_j\left|\boldsymbol{U}^\dagger\hat{O}_\text{H}\boldsymbol{U}\right|\text{det}_j\right> \label{eq:exp_val_trick}
\end{align}
%
With this approach, the most complicated state-preparation circuits are a superposition between two determinants, which reduces the number of needed CNOT gates and thus reduces the impact of hardware noise.
We note that this reduction of CNOT gates comes with the downside of more expectation value measurements.
In this work, we prioritize hardware noise reduction over the increase in the number of expectation values, as hardware noise is a limiting factor for current quantum devices.
In the calculation of the oscillator strength, Eq. (\ref{eq:osc_str}), matrix elements calculated over the state-resolved wavefunctions are needed.
These matrix elements take the form,
%
\begin{align}
M_{\Psi_I\Psi_J} &= \left<\Psi_I\left|\hat{O}_{\mathrm{H}}\right|\Psi_J\right>\\
&= \sum_{KL}V_{KI}V_{LJ}\left<K\left|\boldsymbol{U}^\dagger\hat{O}_{\mathrm{H}}\boldsymbol{U} \right|L\right> \\
&= \sum_{KL}\sum_{kl} V_{KI}V_{LJ} c_k c_l \left<\mathrm{det}_k\left|\boldsymbol{U}^\dagger\hat{O}_{\mathrm{H}}\boldsymbol{U}\right|\mathrm{det}_l\right>
\end{align}
%
thus requiring the calculation of the full-subspace matrix representation of the operator.
We note that the evaluation of some matrix elements can be screened out by considering the magnitude of the coefficients $|V_{KI}V_{LJ}c_kc_l|$ -- when these are smaller than a user-defined threshold, the terms can safely be neglected.
\section{Computational Details}
All calculations were run using the \texttt{SlowQuant}\cite{slowquant} package.
Ideal state-vector simulations were carried out with the internal simulator from \texttt{SlowQuant}, whereas calculations including shot noise and simulated quantum device noise were performed using \texttt{Qiskit Aer}, and runs on real quantum hardware used \texttt{Qiskit}\cite{qiskit2024} as a backend.
The wave function optimizations were performed using BFGS through the \texttt{SciPy}\cite{2020SciPy-NMeth} library.
All states included in the state-averaged wavefunction were picked on the basis of the diagonal elements of the singlet CSF basis CISD Hamiltonian.
The chosen states were those that resulted in the lowest diagonal elements.
Initial Hartree-Fock calculations were performed using \texttt{PySCF}.\cite{Sun2015-pg,Sun2018-ih,Sun2020-cl}
We carried out full-space ADAPT\cite{Grimsley2025-ie,Grimsley2019-yc} and oo-ADAPT\cite{Fitzpatrick2024-ar} calculations on LiH ($R_\text{LiH}=1.671$ Å), H$_2$O ($R_\text{OH}=0.977$ Å, $\theta_\text{HOH}=109.00^\mathrm{o}$) and NH$_3$ ($R_\text{NH}=1.012$ Å, $\theta_\text{HNH}=106.67^\mathrm{o}$) with the STO-3G\cite{Hehre1969-gq,Hehre1970-qw} basis set.
The reference CSFs for the different states can be seen in Appendix Table \ref{tab:lih_ref}-\ref{tab:nh3_ref}.
The operator pool was generalised spin-adapted singles and doubles for the ADAPT calculations and generalised spin-adapted doubles for the oo-ADAPT calculations.
For these calculations, we also obtained reference state-averaged FCI energies using \texttt{SlowQuant}.
Finally, we carried out a series of calculations on formaldehyde/cc-pVDZ\cite{Dunning1989-uj} ($R_\text{CO}=1.202$ Å, $R_\text{CH}=1.298$ Å, $\theta_\text{HCH}=116.44^\mathrm{o}$) and H$_3^+$/aug-cc-pVTZ\cite{Dunning1989-uj,De_Jong2001-bw,Kendall1992-lx} ($R_\text{HH}=0.900$ Å), both targeting real quantum hardware.
In these calculations, we adopted a oo-tUPS ansatz with 1 layer, with the last layer of singles removed, and used a (2e, 3o) active space.
For the calculations on formaldehyde, four states were included in the state-averaging, and the quantum device \texttt{ibm\_marrakesh} was used as the hardware backend.
For the calculations on H$_3^+$, three states were included in the state-averaging, and the quantum device \texttt{ibm\_aachen} was used as the hardware backend.
For both formaldehyde and H$_3^+$, calculations used 50000 shots per measured Pauli-string, and the number of Pauli-strings was reduced using qubit-wise commutativity and using Pauli-saving. The latter was extended from its previous implementation\cite{Ziems2024-mt} to save Pauli strings per unique reference for single and multi-determinant reference states.
\subsection{Error Mitigation}
The presence of noise on real quantum devices introduces systematic errors in measured quantities, making error mitigation necessary to obtain useful results.
In this work, we have considered the ansatz-based readout and gate error mitigation, $M_\text{ansatz0}$, as introduced in Ziems et al.\cite{Ziems2024-mt}, where mitigated probability vectors, $\boldsymbol{p}_\text{mitigated}$, are obtained from raw probability vectors, $\boldsymbol{p}_\text{raw}$, as,
%
\begin{equation}
\boldsymbol{p}_\text{mitigated}=\boldsymbol{M}_0^{-1}\boldsymbol{p}_\text{raw}
\end{equation}
%
The $M_\text{ansatz0}$ technique can be seen as an extension of the Readout Error Mitigation (REM) technique that corrects for some amount of circuit errors in addition to read-out errors.
Similar to REM, the methods build a confusion matrix ($\boldsymbol{M}_0$), whose elements $[\boldsymbol{M}_0]_{ij}$ represent the probability of measuring bitstring $i$ given that bitstring $j$ was prepared.
In the $M_\text{ansatz0}$ approach, this construction is extended by prepending the ansatz circuit before the application of the $X$ gates used to prepare the computational basis states, with the ansatz parameters chosen such that it ideally executes an identity operation. For the ansatze we consider, this condition is achieved by setting all $\theta=0$.
In this way, the resulting confusion matrix captures not only readout errors but also a subset of gate-level errors introduced by the ansatz circuit, allowing these effects to be partially mitigated in the corrected probability distributions.
This error mitigation has so far only been employed for single-reference calculations. However, for oo-MC-VQE, expectation values can have different reference states, Eq. (\ref{eq:exp_val}), and crucially superposition of reference states, Eq. (\ref{eq:exp_val_trick}). The latter needs entangling gates to be constructed and thus incur additional errors.
This presents two options for employing the $M_0$ error-mitigation.
The first option is to make the error-mitigation matrix for only the ansatz circuit, and ignore the error from the state-preparation circuit, which we will refer to as $M_0$ in this work.
The second option is to include the entangler of the multi-determinant reference state in the error characterisation, meaning to calculate an error-mitigation matrix for all the possible unique multi-determinant reference states.
We refer to this extension of the method as $M_{0^+}$.
Although the employed error-mitigation in this work scales exponentially in the number of qubits, we note that a scalable version of the $M_0$ error-mitigation has been developed for tiled ans\"atze.\cite{Rasmussen2025-zu}
All calculations on quantum hardware and simulated quantum hardware also employed post-selection for the correct number of $\alpha$ and $\beta$ electrons for Pauli strings in the computational basis.
\section{Results}
\subsection{Ansatz size\label{sec:ansatz_size}}
When targeting multiple states simultaneously in the VQE optimization, one may expect that the expressability of the ansatz would need to be larger than the expressability of an ansatz targeting just the ground state.
To investigate how the ansatz size increases with the number of states, we consider three model systems: LiH (4e, 6o), H$_2$O (10e, 7o), and NH$_3$ (10e, 8o).
%
\begin{figure}[H]
\centering
\includegraphics[width=1.0\linewidth]{all_adapt.png}
\caption{State-averaged ADAPT (top row) and state-averaged oo-ADAPT (bottom row) calculations for LiH H$_2$O and NH$_3$ with different number of states.
The blue area signifies error below $1.6$ mH.}
\label{fig:adapt}
\end{figure}
%
Fig. \ref{fig:adapt} shows the error in the energy with respect to the state-averaged FCI energy for state-averaged ADAPT (top row) and oo-ADAPT (bottom row) for selected systems.
It is evident that the number of required parameters in the circuit increases with the number of states being included in the state-averaged wavefunction.
Specifically, we find that the number of required parameters is roughly linear in the number of states.
For example, requiring an error of at most $10^{-4}$ Hatree with ADAPT, LiH requires 11, 18, 9, and 8 parameters per state for 1, 2, 4, and 8 states, respectively.
H$_2$O requires 27, 32, 24, 30 parameters per state for 1, 2, 3, and 4 states, respectively.
NH$_3$ requires 65, 120, 122, and 132 parameters per state for 1, 2, 3, and 4 states, respectively.
Comparing the number of parameters required between ADAPT and oo-ADAPT, it is apparent that folding the single excitations into the classic orbital optimisation has only a minor effect, or even a detrimental effect, as can be seen for NH$_3$ with 3 (green lines) or 4 (red lines) states.
%
\begin{figure}[H]
\centering
\includegraphics[width=0.5\linewidth]{h2o_zoom.pdf}
\caption{Convergence of state-averaged ADAPT for the first 10 iterations for H$_2$O.
The colors match that of Fig. \ref{fig:adapt}, blue being 1 state, orange being 2 states, green being 3 states, and, red being 4 states.}
\label{fig:h2o_zoom}
\end{figure}
%
The effect of performing orbital-optimization seems to be largest for small expansions, as exemplified in Fig. \ref{fig:h2o_zoom}, which shows the first few iterations of ADAPT and oo-ADAPT for H$_2$O.
Early in the ADAPT procedure, including orbital optimization always leads to smaller energy errors, but as tighter convergence is approached, performing orbital optimization has little effect on the number of parameters in the ADAPT ansatz.
\subsection{Quantum experiments}
To assess the performance of the proposed method under realistic conditions, we now consider its execution on real quantum hardware.
We perform quantum experiments using pre-optimized circuits, meaning the spin-adapted oo-SA-VQE is performed on a noiseless state-vector simulator, and the state-resolution Eq. (\ref{eq:HAM_MS}), the excitation energies Eq. (\ref{eq:exc_energy}), and oscillator strengths Eq. (\ref{eq:osc_str}) are calculated on (emulated) hardware. This corresponds to the standard proof-of-concept VQE approach, where the circuits are optimized classically, and the energy is simulated on the quantum device.
As examples, we consider two systems. The first system being formaldehyde with 2 electrons in 3 spatial orbitals, using four references states, $\left|110000\right>$, $\frac{1}{\sqrt{2}}\left(\left|100100\right> - \left|011000\right>\right)$, $\frac{1}{\sqrt{2}}\left(\left|100001\right> - \left|010010\right>\right)$, and, $\left|001100\right>$.
And, the second system being H$_3^+$, with 2 electrons in 3 spatial orbitals, using three references states, $\left|110000\right>$, $\frac{1}{\sqrt{2}}\left(\left|100100\right> - \left|011000\right>\right)$, $\frac{1}{\sqrt{2}}\left(\left|100001\right> - \left|010010\right>\right)$.
%
\begin{figure}[H]
\centering
\includegraphics[width=0.5\linewidth]{both_sim.pdf}
\caption{Electronic spectrum of formaldehyde (top row) using simulated noise based on \texttt{ibm\_marrakesh}, and electronic spectrum of H$_3^+$ (bottom row) using simulated noise based on \texttt{ibm\_aachen}.}
\label{fig:sim_noise}
\end{figure}
%
First, we perform the simulation on emulated hardware using IBM's noise models. In Fig. \ref{fig:sim_noise}, the calculated spectra for formaldehyde (top plot) and H$_3^+$ (bottom plot) are shown.
The spectra are made by performing a Gaussian convolution with a width of 0.12 eV.
For both of the error mitigation strategies $M_0$ (blue dashed-line) and $M_{0^+}$ (red dashed-line), produce results that are almost identical to the noiseless results (grey line), with $M_{0^+}$ being slightly more accurate, as expected when characterizing both state preparation and ansatz.
When comparing the raw simulated noise results (green lines) between formaldehyde (top plot) and H$_3^+$ (bottom plot), it can be seen that the H$_3^+$ spectrum is much more adversely affected.
For formaldehyde, the peak is shifted $-0.17$ eV ($-6.4$ mHa), whereas for H$_3^+$, it is shifted $-0.70$ eV ($-26$ mHa).
This difference can be explained by considering the condition number of $\boldsymbol{H}^\text{MS}$, as this metric indicates how sensitive the diagonalisation is to noise.
The condition numbers are found to be $\mathrm{cond}\left(\boldsymbol{H}^\text{MS}_\text{formaldehyde}\right)=1.003$ and $\mathrm{cond}\left(\boldsymbol{H}^\text{MS}_{\text{H}_3^+}\right)=1.284$, which aligns with the observation that the H$_3^+$ spectrum is more adversely affected by noise.
%
\begin{figure}[H]
\centering
\includegraphics[width=0.5\linewidth]{both_device.pdf}
\caption{Electronic spectrum of formaldehyde (top row) calculated using the quantum device \texttt{ibm\_marrakesh}, and electronic spectrum of H$_3^+$ (bottom row) using the quantum device \texttt{ibm\_aachen}.
Both plots include three independent runs, with the different line styles indicating each run.}
\label{fig:device_spec}
\end{figure}
%
Finally, we consider the actual quantum hardware experiments.
In these calculations, we resorted to using the regular $M_0$ error-mitigation instead of the $M_{0^+}$ error-mitigation, since the latter would be prohibitively expensive, and the results on simulated device-noise showed only a minor difference.
In Fig. \ref{fig:device_spec}, the calculated adsorption spectrum of formaldehyde (top plot) and H$_3^+$ (bottom plot) using quantum devices is shown.
It is clear that the error mitigated results from the real devices (blue dashed lines) are significantly worse than the error mitigated results using simulated noise (Fig. \ref{fig:sim_noise}, blue dashed lines).
This has also been seen in a previous work.\cite{Rasmussen2025-zu}
The calculations on quantum hardware show the same trends as on the simulated devices; the calculated spectrum for H$_3^+$ is more affected by the noise than the calculated spectrum for formaldehyde.
The discrepancy between simulated and real device performance highlights the limitations of current noise models in fully capturing hardware-specific error sources, such as time-dependent noise, crosstalk, and calibration drift. Despite this, the qualitative agreement in trends between simulated and real devices suggests that the proposed methodology remains robust, with the primary features of the spectra preserved under realistic noise conditions. These results indicate that while quantitative accuracy remains challenging on present-day hardware, meaningful chemical insight may still be extracted when combined with appropriate error mitigation techniques.
\section{Conclusion}
In this work, we extend the oo-SA-VQE formalism to a spin-adapted framework, which guarantees the spin state of the reference wave function to be conserved.
It is investigated through ADAPT state-vector simulations how the circuit expressibility requirements increase with the number of states included in the state-averaging.
It is found that doubling the number of states roughly doubles the length of the required circuit.
Further, it is shown that performing orbital optimization together with the ADAPT has a negligible effect on the number of required circuit parameters.
Molecular spectra are calculated with MC-VQE using real quantum hardware.
It is found that molecular spectra can be calculated for some systems, but error-mitigation techniques are necessary to reduce the noise.
\acknowledgments
We acknowledge the support of the Novo Nordisk Foundation (NNF) for the focused research project ``Hybrid Quantum Chemistry on Hybrid Quantum Computers'' (grant number NNFSA220080996).
K.M.Z. acknowledges financial support from the Royal Society of Chemistry Collaboration grant, C25-1492721325.
\section*{DATA AVAILABILITY}
The data that support the findings of this study are available from the corresponding author upon reasonable request.
\section*{Appendix}
Reference CSFs for LiH, H$_2$O, and NH$_3$.
The energies in the tables are calculated as $\left<\text{CSF}\left|\hat{H}\left(\kappa_\text{HF}\right)\right|\text{CSF}\right>$.
\begin{table}[H]
\centering
\begin{tabular}{c|c}
Energy [Hartree] & CSF\\\hline
-8.80884 & $\left|111100000000\right>$\\
-8.64620 & $\frac{1}{\sqrt{2}}\left(\left|110110000000\right> - \left|111001000000\right>\right)$ \\
-8.58640 & $\frac{1}{\sqrt{2}}\left(\left|110100100000\right> - \left|111000010000\right>\right)$ \\
-8.58640 & $\frac{1}{\sqrt{2}}\left(\left|111000000100\right> - \left|110100001000\right>\right)$ \\
-8.20356 & $\frac{1}{\sqrt{2}}\left(\left|111000000001\right> - \left|110100000010\right>\right)$\\
-8.16494 & $\frac{1}{\sqrt{2}}\left(\left|110000100100\right> - \left|110000011000\right>\right)$ \\
-8.14807 & $\left|110000110000\right>$\\
-8.14807 & $\left|110000001100\right>$
\end{tabular}
\caption{Used reference CSFs for LiH calculations.}
\label{tab:lih_ref}
\end{table}
\begin{table}[H]
\centering
\begin{tabular}{c|c}
Energy [Hartree] & CSF\\\hline
-83.95887 & $\left|111100000000\right>$\\
-83.50262 & $\frac{1}{\sqrt{2}}\left(\left|11111111100100\right> - \left|11111111011000\right>\right)$ \\
-83.41635 & $\frac{1}{\sqrt{2}}\left(\left|11111111100001\right> - \left|11111111010010\right>\right)$ \\
-83.34914 & $\frac{1}{\sqrt{2}}\left(\left|11111110110100\right> - \left|11111101111000\right>\right)$
\end{tabular}
\caption{Used reference CSFs for H$_2$O calculations.}
\label{tab:h2o_ref}
\end{table}
\begin{table}[H]
\centering
\begin{tabular}{c|c}
Energy [Hartree] & CSF\\\hline
-67.40808 & $\left|1111111111000000\right>$\\
-66.83776 & $\frac{1}{\sqrt{2}}\left(\left|1111111110010000\right> - \left|1111111101100000\right>\right)$\\
-66.80493 & $\frac{1}{\sqrt{2}}\left(\left|1111111110000100\right> - \left|1111111101001000\right>\right)$\\
-66.80488 & $\frac{1}{\sqrt{2}}\left(\left|1111111110000001\right> - \left|1111111101000010\right>\right)$
\end{tabular}
\caption{Used reference CSFs for NH$_3$ calculations.}
\label{tab:nh3_ref}
\end{table}
\newpage
\bibliographystyle{unsrt}
\bibliography{literature}
\end{document}