Quantum entanglement and geometry