This is the 'WQE' paper version.