mqt.bench.targets.gatesets

Handles the available native gatesets.

Submodules

Package Contents

register_gateset(gateset_name: str) Callable[[_GatesetFactory], _GatesetFactory][source]

Decorator to register a gateset factory under a unique gateset_name.

Parameters:

gateset_name – unique identifier for the gateset (e.g., "ibm_falcon").

Returns:

The original factory function, unmodified.

Raises:

ValueError – if the chosen name is already present in the registry.

get_available_gateset_names() list[str][source]

Return a list of available gateset names.

get_gateset(gateset_name: str) list[str][source]

Return the basis-gate list for gateset_name.

get_target_for_gateset(name: str, num_qubits: int) Target[source]

Return a deepcopy of a Target object for a given native gateset name.