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:
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:

PauliString|PauliStringLinear|PauliStringCollection