Potential pedagogical Python exercises

These potential classroom exercises have a variety of origins:

Quantum mechanics

Solutions of time-independent Schrödinger equation -- "shooting method"

Translation of method of PHYS 212 lab to python. I used this as an exercise during a fourth-hour session in PHYS 212E with this handout. In some sense this was redundant with the regular 212 lab they had done, but the method was a bit different, the programming tool was different, we looked at some different systems, and we were more careful about using dimensionless quantities. One other difference was that we started with the infinite square well; the shooting method in this case has to hit a specific point. In the units of the exercise, the energy of the \(n = 1\) state was 1. When students find the energy of the \(n=2\) state to be 4, it's a good starting place for discussion, i.e., "What do you expect this energy to be?"

Solutions of time-independent Schrödinger equation -- "method of finite differences"

Find all bound state energies and wavefunctions "at once" via linear algebra.

Quantum dynamics

These notebooks come from a PHYS 212E exercise in Spring 2018 (with slight updates 12/20).

Scattering

This exercise is designed to introduce students some computer skills that they probably haven't seen much before: reading and parsing of large data files, and binning of data. It is also designed to give students a stronger sense of how the theoretically derived diffential cross-section is connected in a straightorward way to data from scattering experiments. It also is meant to reinforce basic notions of solid angle.

Statistical Mechanics / Quantum statistics