eradiate.data.convert.aer_v1_to_prt_core_v1#
- eradiate.data.convert.aer_v1_to_prt_core_v1(ds, phase_scale=1.0, dtype=None, update_history=True, normalize=True, check='full')#
Convert a dataset in the Aer v1 format to Prt-Core v1.
- 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) – IfTrue, update thehistoryattribute of the dataset with a new entry mentioning the conversion timestamp.normalize (
bool, default:True) – IfTrue, rescale the phase matrix so thatp₁₁integrates to 2 over μ ∈ [-1, 1]. Passed tomake_prt_core_v1(); see that function for details.check (
{"none", "fast", "full"}, default:"full") – Apply validation checks to the output.
- Returns: