exa.core.plotting.qpu_core.utils.get_unit

Contents

exa.core.plotting.qpu_core.utils.get_unit#

get_unit(units, components)#

Return the unit for the data for the given component.

The comp should be either ‘QB’, ‘TC’ or ‘COMP’.

Parameters:
  • units (dict[str, str]) – Mapping from component to unit.

  • components (Iterable[str]) – Determines if data is considered.

Returns:

The unit of the given component.

Return type:

str