site index according to the sweep direction.
Referenced by create_unitaries(), and ModeTransformation().