entanglement_of_formation
entanglement_of_formation(state, d0, d1=None)
Compute the entanglement of formation of quantum state.
The input quantum state must be either a bipartite state vector, or a 2-qubit density matrix.
Parameters
- state (array_like) – (N) array_like or (4,4) array_like, a bipartite quantum state.
- d0 (int) – the dimension of the first subsystem.
- d1 (int or None) – the dimension of the second subsystem.
Returns
The entanglement of formation.
Return type
float
Was this page helpful?
Report a bug or request content on GitHub.