IQMTarget#

Module: iqm.qiskit_iqm.iqm_target

class iqm.qiskit_iqm.iqm_target.IQMTarget(description: str | None = None, num_qubits: int = 0, dt: float | None = None, granularity: int = 1, min_length: int = 1, pulse_alignment: int = 1, acquire_alignment: int = 1, qubit_properties: list | None = None, concurrent_measurements: list | None = None, *args, **kwargs)#

Bases: Target

Transpilation target for an IQM architecture.

Contains the mapping of physical qubit name on the device to qubit index in the Target.

Parameters:
  • architecture (DynamicQuantumArchitecture) – Quantum architecture that defines the target.

  • component_to_idx (dict[str, int]) – Mapping from QPU component names to integer indices used by Qiskit to refer to them.

  • include_resonators (bool) – Whether to include computational resonators (and MOVE gates) in the target, if present in architecture.

  • include_fictional_czs (bool) – Whether to include “fictional” CZs that are not natively supported, but could be routed using MOVE.

  • metrics (ObservationFinder | None) – Optional calibration data and related quality metrics to improve the transpilation.

Attributes

physical_qubits

Return the ordered list of physical qubits in the target.

Methods

locus_to_idx

Map the given locus to use component indices instead of component names.

restrict_to_qubits

Generate a restricted transpilation target from this Target that only contains the given qubits.

locus_to_idx(locus: tuple[str, ...]) tuple[int, ...]#

Map the given locus to use component indices instead of component names.

Parameters:

locus (tuple[str, ...])

Return type:

tuple[int, …]

property physical_qubits: list[str]#

Return the ordered list of physical qubits in the target.

restrict_to_qubits(qubits: list[int] | list[str]) IQMTarget#

Generate a restricted transpilation target from this Target that only contains the given qubits.

Parameters:

qubits (list[int] | list[str]) – Qubits to restrict the target to. Can be either a list of qubit indices or qubit names.

Returns:

restricted target

Return type:

IQMTarget

Inheritance

Inheritance diagram of iqm.qiskit_iqm.iqm_target.IQMTarget