From topological to quantum entanglement