iqm.benchmarks.utils_shadows.validate_shadow_tomography_params

iqm.benchmarks.utils_shadows.validate_shadow_tomography_params#

iqm.benchmarks.utils_shadows.validate_shadow_tomography_params(clifford_or_haar: Literal['clifford', 'haar'], cliffords_1q: dict[str, IQMCircuit] | None) None#

Validates the parameters for shadow tomography functions.

Parameters:
  • clifford_or_haar (Literal['clifford', 'haar']) – Whether to use Clifford or Haar random 1Q gates.

  • cliffords_1q (dict[str, IQMCircuit] | None) – Dictionary of 1-qubit Cliffords in terms of IQM-native r and CZ gates.

Raises:
  • ValueError – If clifford_or_haar is not “clifford” or “haar”.

  • ValueError – If cliffords_1q is None and clifford_or_haar is “clifford”.

Return type:

None