Quantum mechanical coupled channels code for Coulomb excitation