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.
The factory runs on every lookup and must return a new basis-gate list that shares no mutable data with other results.
- Parameters:
gateset_name – unique identifier for the gateset (e.g.,
"ibm_heron").- Returns:
The original factory function, unmodified.
- Raises:
ValueError – if the chosen name is already present in the registry.