Wavefunction in a numpy array to expectation value
Channel: Steve Spicklemire
Date: 2019-02-05

So you're representing a wavefunction as a numpy array of (possibly) complex numbers. How do you compute expectation values? Here's how!