Entanglement and Quantum Logical Gates. Part I