  Drawing inspiration from the Lyapunov control technique for quantum systems,
feedback-based quantum algorithms have been proposed for calculating the ground
states of Hamiltonians. In this work, we consider extending these algorithms to
tackle calculating excited states. Inspired by the weighted subspace-search
variational quantum eigensolver algorithm, we propose a novel weighted
feedback-based quantum algorithm for excited state calculation. We show that
depending on how we design the weights and the feedback law, we can prepare the
$p$th excited state or lowest energy states up to the $p$th excited state.
Through an application in quantum chemistry, we show the effectiveness of the
proposed algorithm, evaluating its efficacy via numerical simulations.
