pygsti.extras.idletomography.idtcore.preferred_signs_from_paulidict

pygsti.extras.idletomography.idtcore.preferred_signs_from_paulidict#

preferred_signs_from_paulidict(pauli_basis_dict)#

Infers what the preferred basis signs are based on the length of gate-name strings in pauli_basis_dict (shorter strings are preferred).

Parameters:

pauli_basis_dict (dict) – A dictionary w/keys like “+X” or “-Y” and values that are tuples of gate names (not labels, which include qubit or other state-space designations), e.g. (“Gx”,”Gx”).

Returns:

A 3-tuple of elements in {“+”, “-“}, exactly the format expected by preferred_*_basis_signs arguments of idle_tomography_fidpairs().

Return type:

tuple