qit.plot.correlation_simplex

qit.plot.correlation_simplex(ax=None, labels='diagonal')

Plots the correlations simplexes for two-qubit states.

Plots the geometrical representation of the set of allowed correlations in a two-qubit state. For each group of three correlation variables the set is a tetrahedron. The groups are called ‘diagonal’, ‘pos’, ‘neg’. For diagonal correlations the vertices correspond to the four Bell states.

Parameters
  • ax (Axes) – axes in which to plot the simplex. If None, a new figure is created.

  • labels (str) – name of the correlation group whose vertex and axis labels are plotted, in {‘diagonal’, ‘pos’, ‘neg’}

Returns

axes containing the plot, list of the three linear indices denoting the correlations corresponding to the three axes

Return type

Axes, list[int]