qat.model.loaders.converted module

class EchoModelLoader(qubit_count=4, connectivity=None, error_mitigation=None)

Bases: BasePhysicalModelLoader

load()

Load and return the Hardware Model.

Returns:

A loaded Hardware Model

Return type:

LegacyHardwareModel | LogicalHardwareModel

class JaggedEchoModelLoader(qubit_count=4, qubit_indices=None, connectivity=None, error_mitigation=None, random_seed=None)

Bases: BasePhysicalModelLoader

Load a converted Echo hardware model with non-sequential physical qubit indices.

Parameters:
  • qubit_count (int) – Number of physical qubits to select.

  • qubit_indices (Optional[list[int]]) – Specific indices to select from, if used in combination with connectivity these indices must all be in the connectivity keys. Defaults to a selection of qubit_count indices in connectivity if provided else selected from a generated random_connectivity().

  • connectivity (Optional[list[int, int]]) – List of tuples representing the qubit connections. Defaults to a genetared random_connectivity() including qubit_indices if provided.

  • error_mitigation (Optional[ErrorMitigation]) – Error mitigation settings to apply to the model.

  • random_seed (Optional[int]) – Seed for random connectivity and quality map generation.

load()

Load and return the Hardware Model.

Returns:

A loaded Hardware Model

Return type:

LegacyHardwareModel | LogicalHardwareModel

PydEchoModelLoader

alias of EchoModelLoader