There's a large proliferation of functions here.  How about we inline this one in the one place where it is used?  I.e. just use the ``np.sqrt(0.5) * ...`` statement.