In Adiabatic Quantum Computing, a Hamiltonian $H$ is evolved for time $T$ according to $$H(t) = (1-t/T)H_{0} + (t/T)H_{P} $$ where $H_{0}$ is an initial Hamiltonian, and the ground state of $H_{P}$ encodes the solution to a problem of interest.
If this Hamiltonian is evolved slowly enough, the adiabatic theorem claims the system will always be in the lowest energy state (i.e. for each $t$ with $0 \leq t \leq T$, the qubits will be in the state which minimises $H(t)$). When the ground state is not a superposition state (is a basis state), calculating the energy should be easy. But when in superposition, the system will have no objective energy; its energy state will be something of the form: $$ \sum_{s \in S} \alpha_{s}E_{s}$$ where $S$ denotes the set of all basis states (that we can find the qubits in when measured), $|\alpha_{s}|^{2}$ denotes the probability we measure the system in basis state $s$, while $E_{s}$ denotes the energy of the system when in basis state $s$.
But how do you determine which one of these (superposition) energy states is the ground state; I mean, how do you say that the energy of superposition state $A$ is less than the energy of superposition state $B$ if these energies are not scalars?
I am a computer scientist learning about Quantum Computing btw, so I apologize if there are errors in my argument.