Update condition for swapping iterators in PauliWord._matmul
#5301
+47
−23
PauliWord._matmul
#5301