paulie.common.pauli_string_factory.get_pauli_string#
- paulie.common.pauli_string_factory.get_pauli_string(o, n=None)#
Get Pauli strings in their current representation.
- Parameters:
o (PauliString|PauliStringCollection) – A Pauli string or a collection of Pauli strings.
n (int, optional) – Length of Pauli strings
- Returns:
If o is a Pauli string, then it is tensored with identities at the end until its length is n. Otherwise a collection of Pauli strings is created. Given n, the collection is expanded as a k-local set where k is the maximum length of a Pauli string in the given collection.
- Return type: