Quantum NOT Operation and Integrability in Two-Level Systems