eradiate.data.convert.aer_v1_to_aer_core_v2

eradiate.data.convert.aer_v1_to_aer_core_v2(ds, phase_scale=1.0, dtype=None, update_history=True, normalize=True, check='full')

Convert a dataset in the Aer v1 format to Aer-Core v2.

Parameters:
  • ds (Dataset) – A dataset in the Aer v1 format.

  • phase_scale (float, default: 1.0) – A scaling factor that is applied to change the normalization of phase function values.

  • dtype (dtype-like, optional) – Dtype of floating-point variables. If unset, the origin dtype is preserved.

  • update_history (bool, default: True) – If True, update the history attribute of the dataset with a new entry mentioning the conversion timestamp.

  • normalize (bool, default: True) – If True, rescale the phase matrix so that p₁₁ integrates to 2 over μ ∈ [-1, 1]. Passed to make_aer_core_v2(); see that function for details.

  • check ({"none", "fast", "full"}, default: "full") – Apply validation checks to the output.

Returns:

Dataset