Quantum Entanglement Theory