When a Hamiltonian operator changes instantaneously by a finite potential step, the quantum state is continuous across the switching time. Its coefficients in the new energy eigenbasis are its overlaps with those eigenstates; the Born rule gives their squared moduli as probabilities. The state need not remain an energy eigenstate of the new Hamiltonian.
New to topics? Read the docs here!