mutual_information

mutual_information(state, d0, d1=None)[source]

Compute the mutual information of a bipartite state.

Parameters
  • state (array_like) – a bipartite state-vector or density-matrix.

  • d0 (int) – dimension of the first subsystem.

  • d1 (int or None) – dimension of the second subsystem.

Returns

The mutual information S(rho_A) + S(rho_B) - S(rho_AB).

Return type

float