exa.core.util.dut_field_decoder.decode_dut_field

exa.core.util.dut_field_decoder.decode_dut_field#

decode_dut_field(dut_field, chip_topology=None)#

Decode a DUT field into component and parameter names for QPUPlots and GBC.

DUT fields must follow the convention {prefix}.{locus_str}.{suffix}, where prefix is optional and can have more than one . separated entry and suffix can have more than one . separated entry Optionally the chip topology can be provided rather than using hardcoded string comparison. The locus_str must be resolvable into a component on the chip, that is, a qubit, a tunable coupler, a computational resonator, or a probe line. Couplers can be deducted from qubit-qubit pairs and qubit-computational resonator pairs.

Parameters:
  • dut_field (str) – The DUT field that should contain a component and a quantity to plot.

  • chip_topology (ChipTopology | None) – The chip topology is used to check compatibility of component names and to determine the coupler name from loci.

Returns:

The pair of component and quantity name.

Raises:

ValidationError – DUT field can’t be interpreted.

Return type:

tuple[str, str]