qat.middleend.passes.analysis module

class ActivePulseChannelResults(target_map=<factory>, unassigned=<factory>)

Bases: ResultInfoMixin

Stores the active pulse channels in a task, which is defined by pulse channels that are acted on by a pulse or acquisition.

Results are stored as a map between pulse channels and the qubit they belong to. Rogue pulse channels are stored in the unassigned attribute. Various helper properties and methods can be used to fetch the complete lists of active pulse channels and qubits.

from_qubit(qubit)

Returns the list of pulse channels that belong to a qubit.

Return type:

list[PulseChannel]

property physical_qubit_indices: set[int]

Returns a list of all active physical qubit indices.

property qubits: list[Qubit]

Returns a list of all active qubits.

target_map: dict[str, Qubit]
property targets: list[PulseChannel]

Returns a dictionary of all pulse channels with their full id as a key.

unassigned: list[str]