pygsti.tools.errgenproptools.errgen_coeff_label_to_stim_pauli_strs#
- errgen_coeff_label_to_stim_pauli_strs(err_gen_coeff_label, num_qubits)#
Converts an input GlobalElementaryErrorgenLabel to a tuple of stim.PauliString objects, padded with an appropriate number of identities.
- Parameters:
err_gen_coeff_label (GlobalElementaryErrorgenLabel or LocalElementaryErrorgenLabel) – The error generator coefficient label to construct the tuple of pauli strings for.
num_qubits (int) – Number of total qubits to use for the Pauli strings. Used to determine the number of identities added when padding.
- Returns:
A tuple of either length 1 (for H and S) or length 2 (for C and A) whose entries are stim.PauliString representations of the indices for the input error generator label, padded with an appropriate number of identities given the support of the error generator label.
- Return type:
tuple of stim.PauliString