Analysis code for my QS talk.