entanglement

entanglement functions added