iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.import_native_gate_cliffords

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.import_native_gate_cliffords#

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.import_native_gate_cliffords(system_size: str | None = None) Dict[str, IQMCircuit] | Tuple[Dict[str, IQMCircuit], Dict[str, IQMCircuit]]#

Import native gate Clifford dictionaries

Parameters:

system_size (str, optional) – System size to load, either “1q” or “2q”. If None, load both dictionaries.

Returns:

If system_size is specified, returns the dictionary for that system size. If system_size is None, returns a tuple of (1q_dict, 2q_dict).

Raises:

ValueError – If system_size is not None, “1q”, or “2q”.

Return type:

Dict[str, IQMCircuit] | Tuple[Dict[str, IQMCircuit], Dict[str, IQMCircuit]]