utils

utils#

Full path: exa.core.plotting.qpu_core.utils

Utility functions for QPUPlot, mostly to do with database query.

Functions

change_unit_magnitude(unit, quantity, ...[, ...])

Change the magnitude of units.

check_same_unit(observations)

Check that all units in the observations are the same.

fix_unit_prefixes(exponent, unit, ...)

Identify appropriate prefix to the unit and provides corresponding conversion factor.

get_exponent(val)

Get the exponent of the given value.

get_scaling_from_unit(unit)

Helper function to determine the applied scaling factor from the unit prefix.

get_unit(units, components)

Return the unit for the data for the given component.

logit_mean(x)

Calculates the logit mean.

print_observations(observations)

Print observations list.

shorten_label(quantity)

Provide a shortened unit name for axis labels, given the observation name.

sort_components(unsorted_unique_components)

Given a list of component names, this function attempts to sort them in ascending order.

split_qubits_into_low_high(chad, qpu_type)

Output the high and low frequency qubits of the corresponding qpu type.

split_qubits_into_low_high_frequency(...)

Partition the QPU qubits to a two-coloring of high and low frequency qubits.

Classes

CrystalChipType

Chip type based on a crystal architecture.

QPUPlotObservation

Store component name and gate metric next to observation.

Inheritance

Inheritance diagram of exa.core.plotting.qpu_core.utils