exa.core.experiment.utils.circuit_utils.handle_component_without_readout

exa.core.experiment.utils.circuit_utils.handle_component_without_readout#

handle_component_without_readout(group, builder, circuit)#

Handles components without native readout by transferring their state to a helper component.

If a gate component (first two elements in group) does not have a probe line connection, its state is transferred to the helper component (third element in group) via a MOVE operation.

Parameters:
  • group (tuple[str, ...]) – A single group of the run components. The first two are gate components and the optional third is the helper component.

  • builder (ScheduleBuilder) – ScheduleBuilder

  • circuit (TimeBox) – The experiment circuit (without the readout part).

Returns:

The updated circuit with the MOVE operation added in case it is required and a helper component is specified.

Raises:

ValueError – If both gate components do not have a probe line connection.

Return type:

TimeBox