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: Literal['1q']) dict[str, IQMCircuit]#
iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.import_native_gate_cliffords(system_size: Literal['2q']) tuple[dict[str, IQMCircuit], dict[str, IQMCircuit]]

Import native gate Clifford dictionaries.

Parameters:

system_size (str | None) – 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]]