optimization of the Hadamard operators