Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

entanglement_of_formation

entanglement_of_formation(state, d0, d1=None)

GitHub

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.