This ensures that P remains idempotent. Using this projection, tracing over the nuclear Hilbert space leads to a generalized quantum master equation that describes the reduced electronic density operator which accounts for both Markovian dynamics generated by the Hamiltonian and non-Markovian dynamics due to coupling between electronic and nuclear degrees of freedom.